Changeset 9348 for code/trunk/data/gui/scripts/PickupInventory.lua
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/data/gui/scripts/PickupInventory.lua
r7504 r9348 108 108 109 109 function P.createPickupEntry(index, pickup) 110 local representation = orxonox.PickupManager:getInstance():get PickupRepresentation(pickup.pickup)110 local representation = orxonox.PickupManager:getInstance():getRepresentation(pickup.representationName) 111 111 112 112 local name = "orxonox/PickupInventory/Box/Pickup" .. index … … 176 176 for k,v in pairs(P.detailsWindows) do 177 177 if v ~= nil then 178 winMgr:destroyWindow(v)178 P.destroyDetailWindow(k) 179 179 end 180 180 end … … 193 193 function P.createDetailsWindow(pickupIndex) 194 194 local pickup = P.pickupsList[pickupIndex] 195 local representation = orxonox.PickupManager:getInstance():get PickupRepresentation(pickup.pickup)195 local representation = orxonox.PickupManager:getInstance():getRepresentation(pickup.representationName) 196 196 197 197 local index = P.getNewDetailNumber() … … 323 323 local detailNr = tonumber(match()) 324 324 325 P.destroyDetailWindow(detailNr) 326 end 327 328 function P.destroyDetailWindow(detailNr) 325 329 local window = P.detailsWindows[detailNr] 326 330 winMgr:destroyWindow(window)
Note: See TracChangeset
for help on using the changeset viewer.