Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6679 for code


Ignore:
Timestamp:
Apr 9, 2010, 8:30:12 PM (15 years ago)
Author:
dafrick
Message:

Fixed annoying bug in PickupInventory (typos ;) ), use and drop functionality finally working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup4/data/gui/scripts/PickupInventory.lua

    r6675 r6679  
    1616
    1717function P.init()
    18    
     18    carrierList = {}
    1919end
    2020
     
    2727   
    2828    local root = winMgr:getWindow("orxonox/PickupInventory/Inventory")
     29   
     30    P.carrierList = {}
    2931   
    3032    P.getCarrierList(carrier)   
     
    131133function P.InventoryUseButton_clicked(e)
    132134    local arguments = P.windowToCarrierHelper(e)
    133     debug(0, "(Buh: " .. arguments[1] .. "|" .. arguments[2] .. ")")
    134     orxonox.PickupManager:getInstance():usePickup(arguments[2], P.carrierList[arguments[1]], 1)
     135    orxonox.PickupManager:getInstance():usePickup(arguments[2], P.carrierList[arguments[1]], true)
    135136end
    136137
    137138function P.InventoryDropButton_clicked(e)
    138     local arguments = P.windowToCarierHelper(e)
     139    local arguments = P.windowToCarrierHelper(e)
    139140    orxonox.PickupManager:getInstance():dropPickup(arguments[2], P.carrierList[arguments[1]])
    140141end
Note: See TracChangeset for help on using the changeset viewer.