Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5529 for data


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

Some changes on pickups

Location:
data/media
Files:
2 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()
  • data/media/levels/pickuptest.oxw

    r5528 r5529  
    1717        <Jump velocity="0,0,500" jumpsAvailable="1" guiImage="decal.jpg" guiText="TEST" />
    1818    </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>
    1925    <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" />
    2026
     
    2329            <Model mesh="sphere.mesh" scale="3.0" />
    2430            <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" />
    2543        </attached>
    2644    </PickupSpawner>
Note: See TracChangeset for help on using the changeset viewer.