added some kbm stuff

This commit is contained in:
2026-09-13 19:41:44 -07:00
parent 82e802873f
commit 5023e0a8d6
217 changed files with 3744 additions and 235 deletions
@@ -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 );