Changeset 5529 for data/media/gui/scripts/PickupInventory.lua
- Timestamp:
- May 23, 2009, 9:50:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/PickupInventory.lua
r5526 r5529 3 3 -- variables 4 4 local winMgr = CEGUI.WindowManager:getSingleton() 5 5 6 local lastEquipmentCount_ = 0 6 7 local lastUsableCount_ = 0 7 8 local currentUsableID_ = -1 9 local lastUsedEquipID_ = 0 10 local lastUsedUsableID_ = 0 8 local currentUsableID_ = 0 11 9 12 10 -- events 13 function tabChanged(e)14 local we = CEGUI.toWindowEventArgs(e)15 orxonox.PickupInventory:tabChanged(we.window)16 end17 11 function frmUpdate(e) 18 12 local equipCount = orxonox.PickupInventory:getEquipmentCount() … … 48 42 local eqWin = winMgr:getWindow("orxonox/Inventory/TabControl/TabEquipment") 49 43 local usWin = winMgr:getWindow("orxonox/Inventory/TabControl/TabUsable") 50 orxonox.PickupInventory: clearInventory(winMgr, lastEquipmentCount_, lastUsableCount_)51 orxonox.PickupInventory: updateTabs(winMgr, eqWin, usWin)44 orxonox.PickupInventory:getSingleton():clearInventory(winMgr, eqWin, usWin) 45 orxonox.PickupInventory:getSingleton():updateTabs(winMgr, eqWin, usWin) 52 46 53 47 currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex()
Note: See TracChangeset
for help on using the changeset viewer.