Changeset 6387 for code/branches/presentation2/data
- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- Location:
- code/branches/presentation2/data
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/layouts/PickupInventory.layout
r5781 r6387 15 15 <Property Name="TabPanePosition" Value="Bottom" /> 16 16 <Property Name="UnifiedAreaRect" Value="{{0,10},{0,30},{1,-10},{1,-10}}" /> 17 17 18 18 <Window Type="TaharezLook/ScrollablePane" Name="orxonox/Inventory/TabControl/TabEquipment"> 19 19 <Property Name="Text" Value="Equipment" /> -
code/branches/presentation2/data/gui/scripts/GUITools.lua
r6363 r6387 14 14 function getMinTextSize(window) 15 15 local size = {} 16 16 17 17 local lookAndFeel = CEGUI.WidgetLookManager:getSingleton():getWidgetLook(window:getLookNFeel()) 18 18 local height = window:getFont():getLineSpacing() + window:getUnclippedPixelRect():getHeight() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getHeight() 19 19 local width = window:getFont():getTextExtent(window:getText()) + window:getUnclippedPixelRect():getWidth() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getWidth() 20 20 21 21 table.insert(size, height) 22 22 table.insert(size, width) -
code/branches/presentation2/data/gui/scripts/InitialiseGUI.lua
r6266 r6387 81 81 hideCursor() 82 82 end 83 83 84 84 if find( activeSheets, filename ) ~= nil then 85 85 table.remove( activeSheets, find( activeSheets, filename ) ) … … 96 96 bHidePrevious[filename]=hidePrevious 97 97 cursorVisibility[filename] = bCursorVisible 98 98 99 99 if hidePrevious == true then 100 100 for i=1,nrOfActiveSheets-1 do -
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
r6369 r6387 70 70 sampleWindow = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/SampleWindow") 71 71 sampleWindow:setText("SampleText") 72 72 73 73 local size = getMinTextSize(sampleWindow) 74 74 lineHeight = size[1] 75 75 76 76 commandWidth = 0 77 77 for k,v in pairs(commandList) do … … 86 86 size = getMinTextSize(sampleWindow) 87 87 addWidth = size[2] 88 88 89 89 sampleWindow:setText("X") 90 90 size = getMinTextSize(sampleWindow) … … 92 92 93 93 spaceWidth = math.floor(1/14*commandWidth) 94 94 95 95 buttonWidth = 145 96 96 … … 166 166 167 167 line:setWidth(CEGUI.UDim(0, offset+clearWidth)) 168 168 169 169 return line 170 170 end … … 178 178 window:addChildWindow(line) 179 179 end 180 180 181 181 pane = tolua.cast(window, "CEGUI::ScrollablePane") 182 182 pane:setVerticalStepSize(getScrollingStepSize(window)) … … 216 216 local commandNr = tonumber(match()) 217 217 local buttonNr = tonumber(match()) 218 218 219 219 orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr)) 220 220 -
code/branches/presentation2/data/gui/scripts/PickupInventory.lua
r5781 r6387 20 20 local equipCount = orxonox.PickupInventory:getEquipmentCount() 21 21 local usableCount = orxonox.PickupInventory:getUsableCount() 22 22 23 23 if equipCount ~= self.lastEquipmentCount_ or usableCount ~= self.lastUsableCount_ then 24 24 self:updateTabs() … … 39 39 local t = name:sub(25, 27) 40 40 local i = name:sub(29) 41 41 42 42 if t == "equ" then 43 43 44 44 end 45 45 46 46 if t == "use" then 47 47 if self.currentUsableID_ >= 0 then … … 60 60 orxonox.PickupInventory:getSingleton():clearInventory(winMgr, eqWin, usWin) 61 61 orxonox.PickupInventory:getSingleton():updateTabs(winMgr, eqWin, usWin) 62 62 63 63 self.currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex() 64 64 self.lastEquipmentCount_ = orxonox.PickupInventory:getEquipmentCount() -
code/branches/presentation2/data/gui/scripts/QuestGUI.lua
r5781 r6387 15 15 16 16 local questManager = orxonox.QuestManager:getInstance() 17 17 18 18 local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") 19 19 -
code/branches/presentation2/data/levels/empty_level.oxw
r6107 r6387 30 30 </attached> 31 31 </Rocket--> 32 33 32 33 34 34 <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" /> 35 35 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> -
code/branches/presentation2/data/levels/events.oxw
r6119 r6387 45 45 works with all amounts of objects from zero to infinity. In the examples I used two objects each. 46 46 --> 47 47 48 48 49 49 <!-- red --> -
code/branches/presentation2/data/levels/old/spaceshiptemplates_physics.oxw
r5781 r6387 10 10 auxilaryThrust = 30; 11 11 rotationThrust = 10; 12 12 13 13 collisionType = "dynamic" 14 14 mass = 100 -
code/branches/presentation2/data/levels/presentation09.oxw
r5781 r6387 34 34 j = math.random() 35 35 ?> 36 36 37 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 38 38 <attached> … … 48 48 <?lua end ?> 49 49 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 50 50 51 51 </Scene> 52 52 </Level> -
code/branches/presentation2/data/levels/presentation09b.oxw
r5929 r6387 86 86 </controller> 87 87 </SpaceShip> 88 88 89 89 <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500"> 90 90 <attached> … … 93 93 </attached> 94 94 </PickupSpawner> 95 95 96 96 <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550"> 97 97 <attached> … … 100 100 </attached> 101 101 </PickupSpawner> 102 102 103 103 <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400"> 104 104 <attached> … … 347 347 s = math.random() * 60 + 30 348 348 ?> 349 349 350 350 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 351 351 <attached> … … 370 370 e = math.floor(math.random()*elements.length()+1) 371 371 ?> 372 372 373 373 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 374 374 <attached> … … 379 379 end 380 380 ?> 381 381 382 382 </Scene> 383 383 </Level> -
code/branches/presentation2/data/levels/presentationHS09.oxw
r6363 r6387 28 28 <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" /> 29 29 </Template> 30 30 31 31 <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> 32 32 … … 98 98 </attached> 99 99 </PickupSpawner> 100 100 101 101 <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550"> 102 102 <attached> … … 105 105 </attached> 106 106 </PickupSpawner> 107 107 108 108 <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400"> 109 109 <attached> … … 357 357 e = math.floor(math.random()*elements.length()+1) 358 358 ?> 359 359 360 360 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 361 361 <attached> … … 395 395 e = math.floor(math.random()*elements.length()+1) 396 396 ?> 397 397 398 398 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 399 399 <attached> -
code/branches/presentation2/data/levels/presentation_dm.oxw
r5781 r6387 39 39 j = math.random() 40 40 ?> 41 41 42 42 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 43 43 <attached> -
code/branches/presentation2/data/levels/questsystem2.oxw
r6119 r6387 225 225 j = math.random() 226 226 ?> 227 227 228 228 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 229 229 <attached> … … 239 239 <?lua end ?> 240 240 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 241 241 242 242 </Scene> 243 243 </Level> -
code/branches/presentation2/data/levels/sound.oxw
r6382 r6387 41 41 </events> 42 42 </AmbientSound> 43 43 44 44 45 45 <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" /> -
code/branches/presentation2/data/levels/test_ghost.oxw
r6119 r6387 34 34 j = math.random() 35 35 ?> 36 36 37 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 38 38 <attached> … … 48 48 <?lua end ?> 49 49 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 50 50 51 51 </Scene> 52 52 </Level> -
code/branches/presentation2/data/overlays/debug.oxo
r5781 r6387 35 35 textsize = 0.03 36 36 /> 37 37 38 38 </OverlayGroup> 39 39 -
code/branches/presentation2/data/overlays/stats.oxo
r6120 r6387 12 12 textsize = 0.04 13 13 /--> 14 14 15 15 <OverlayText 16 16 name = "descr1" … … 40 40 textsize = 0.04 41 41 /> 42 42 43 43 <!--Stats 44 44 name = "Statistics"
Note: See TracChangeset
for help on using the changeset viewer.