Changeset 6679
- Timestamp:
- Apr 9, 2010, 8:30:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup4/data/gui/scripts/PickupInventory.lua
r6675 r6679 16 16 17 17 function P.init() 18 18 carrierList = {} 19 19 end 20 20 … … 27 27 28 28 local root = winMgr:getWindow("orxonox/PickupInventory/Inventory") 29 30 P.carrierList = {} 29 31 30 32 P.getCarrierList(carrier) … … 131 133 function P.InventoryUseButton_clicked(e) 132 134 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) 135 136 end 136 137 137 138 function P.InventoryDropButton_clicked(e) 138 local arguments = P.windowToCar ierHelper(e)139 local arguments = P.windowToCarrierHelper(e) 139 140 orxonox.PickupManager:getInstance():dropPickup(arguments[2], P.carrierList[arguments[1]]) 140 141 end
Note: See TracChangeset
for help on using the changeset viewer.