- Timestamp:
- May 23, 2009, 9:50:54 AM (16 years ago)
- Location:
- data/media
- Files:
-
- 2 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() -
data/media/levels/pickuptest.oxw
r5528 r5529 17 17 <Jump velocity="0,0,500" jumpsAvailable="1" guiImage="decal.jpg" guiText="TEST" /> 18 18 </Template> 19 <Template name="jumpTest2" baseclass="Jump"> 20 <Jump velocity="0,0,-500" jumpsAvailable="1" guiImage="dish.jpg" guiText="J2" /> 21 </Template> 22 <Template name="jumpTest3" baseclass="Jump"> 23 <Jump velocity="0,0,-500" jumpsAvailable="1" guiImage="sl_organic03.jpg" guiText="J3" /> 24 </Template> 19 25 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 20 26 … … 23 29 <Model mesh="sphere.mesh" scale="3.0" /> 24 30 <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" /> 31 </attached> 32 </PickupSpawner> 33 <PickupSpawner item="jumpTest2" triggerDistance="20" respawnTime="5" position="140, 140, 140"> 34 <attached> 35 <Model mesh="sphere.mesh" scale="3.0" /> 36 <Billboard material="Examples/Flare" colour="1.0, 0.5, 0.3" scale="0.5" /> 37 </attached> 38 </PickupSpawner> 39 <PickupSpawner item="jumpTest3" triggerDistance="20" respawnTime="5" position="180, 180, 180"> 40 <attached> 41 <Model mesh="sphere.mesh" scale="3.0" /> 42 <Billboard material="Examples/Flare" colour="0.5, 0.3, 1.0" scale="0.5" /> 25 43 </attached> 26 44 </PickupSpawner>
Note: See TracChangeset
for help on using the changeset viewer.