Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 9:50:54 AM (15 years ago)
Author:
danielh
Message:

Some changes on pickups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/media/gui/scripts/PickupInventory.lua

    r5526 r5529  
    33-- variables
    44local winMgr = CEGUI.WindowManager:getSingleton()
     5
    56local lastEquipmentCount_ = 0
    67local lastUsableCount_ = 0
    7 
    8 local currentUsableID_ = -1
    9 local lastUsedEquipID_ = 0
    10 local lastUsedUsableID_ = 0
     8local currentUsableID_ = 0
    119
    1210-- events
    13 function tabChanged(e)
    14     local we = CEGUI.toWindowEventArgs(e)
    15     orxonox.PickupInventory:tabChanged(we.window)
    16 end
    1711function frmUpdate(e)
    1812    local equipCount = orxonox.PickupInventory:getEquipmentCount()
     
    4842    local eqWin = winMgr:getWindow("orxonox/Inventory/TabControl/TabEquipment")
    4943    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)
    5246   
    5347    currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex()
Note: See TracChangeset for help on using the changeset viewer.