forked from cafeberry/cafeberry
added some kbm stuff
This commit is contained in:
@@ -118,6 +118,13 @@ int UIScene_InventoryMenu::getSectionRows(ESceneSection eSection)
|
||||
return rows;
|
||||
}
|
||||
|
||||
void UIScene_InventoryMenu::RefreshSlotControls()
|
||||
{
|
||||
m_slotListArmor.UpdateControl();
|
||||
m_slotListInventory.UpdateControl();
|
||||
m_slotListHotbar.UpdateControl();
|
||||
}
|
||||
|
||||
void UIScene_InventoryMenu::GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition )
|
||||
{
|
||||
switch( eSection )
|
||||
@@ -149,14 +156,17 @@ void UIScene_InventoryMenu::GetItemScreenData( ESceneSection eSection, int iItem
|
||||
case eSectionInventoryArmor:
|
||||
sectionSize.x = m_slotListArmor.getWidth();
|
||||
sectionSize.y = m_slotListArmor.getHeight();
|
||||
FixSlotGridSize(eSection, m_slotListArmor, sectionSize);
|
||||
break;
|
||||
case eSectionInventoryInventory:
|
||||
sectionSize.x = m_slotListInventory.getWidth();
|
||||
sectionSize.y = m_slotListInventory.getHeight();
|
||||
FixSlotGridSize(eSection, m_slotListInventory, sectionSize);
|
||||
break;
|
||||
case eSectionInventoryUsing:
|
||||
sectionSize.x = m_slotListHotbar.getWidth();
|
||||
sectionSize.y = m_slotListHotbar.getHeight();
|
||||
FixSlotGridSize(eSection, m_slotListHotbar, sectionSize);
|
||||
break;
|
||||
default:
|
||||
assert( false );
|
||||
|
||||
Reference in New Issue
Block a user