Changeset 9045 for code/branches/shipSelection
- Timestamp:
- Mar 16, 2012, 4:54:46 PM (13 years ago)
- Location:
- code/branches/shipSelection
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/shipSelection/data/gui/layouts/ShipSelectionMenu.layout
r9039 r9045 2 2 3 3 <GUILayout > 4 <Window Type="MenuWidgets/StaticImage" Name="orxonox/SingleplayerBackground" > 4 5 <Window Type="MenuWidgets/StaticImage" Name="orxonox/ShipSelectionBackground" > 5 6 <Property Name="FrameEnabled" Value="False" /> 6 7 <Property Name="InheritsAlpha" Value="False" /> … … 8 9 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> 9 10 <Property Name="BackgroundEnabled" Value="False" /> 10 <Window Type="MenuWidgets/StaticText" Name="orxonox/SingleplayerWindow" > 11 <Property Name="Text" Value="Singleplayer" /> 11 <!-- --> 12 <Window Type="MenuWidgets/StaticText" Name="orxonox/ShipSelectionWindow" > 13 <Property Name="Text" Value="ShipSelection" /> 12 14 <Property Name="Alpha" Value="0.8" /> 13 15 <Property Name="InheritsAlpha" Value="False" /> … … 16 18 <Property Name="VertFormatting" Value="TopAligned" /> 17 19 <Property Name="UnifiedAreaRect" Value="{{0.2,0},{0.15,0},{0.8,0},{0.7,0}}" /> 18 <Window Type="MenuWidgets/TabControl" Name="orxonox/SingleplayerTabControl" > 20 <!-- 21 <Window Type="MenuWidgets/TabControl" Name="orxonox/ShipSelectionTabControl" > 19 22 <Property Name="TabHeight" Value="{0,26.4388}" /> 20 23 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> … … 22 25 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.1,0},{0.95,0},{0.925,0}}" /> 23 26 </Window> 24 <Window Type="MenuWidgets/StaticImage" Name="orxonox/SingleplayerLevelImage" > 27 --> 28 <Window Type="MenuWidgets/StaticImage" Name="orxonox/ShipSelectionLevelImage" > 25 29 <Property Name="AlwaysOnTop" Value="True" /> 26 30 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 27 31 <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.25,0},{0.9,0},{0.675,0}}" /> 28 32 </Window> 29 <Window Type="MenuWidgets/StaticText" Name="orxonox/S ingleplayerLevelDescription" >33 <Window Type="MenuWidgets/StaticText" Name="orxonox/ShipSelectionLevelDescription" > 30 34 <Property Name="AlwaysOnTop" Value="True" /> 31 35 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> … … 34 38 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.725,0},{0.9,0},{0.875,0}}" /> 35 39 </Window> 40 36 41 </Window> 37 <Window Type="MenuWidgets/Button" Name="orxonox/SingleplayerStartButton" > 42 <!-- --> 43 <Window Type="MenuWidgets/Button" Name="orxonox/ShipSelectionStartButton" > 38 44 <Property Name="Text" Value="Start" /> 39 45 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 40 46 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.725,0},{0.4,0},{0.775,0}}" /> 41 <Event Name="Clicked" Function="S ingleplayerMenu.SingleplayerStartButton_clicked"/>47 <Event Name="Clicked" Function="ShipSelectionMenu.ShipSelectionStartButton_clicked"/> 42 48 </Window> 43 <Window Type="MenuWidgets/Button" Name="orxonox/S ingleplayerConfigButton" >49 <Window Type="MenuWidgets/Button" Name="orxonox/ShipSelectionConfigButton" > 44 50 <Property Name="Text" Value="Configure" /> 45 51 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 46 52 <Property Name="UnifiedAreaRect" Value="{{0.425,0},{0.725,0},{0.575,0},{0.775,0}}" /> 47 53 <Property Name="Disabled" Value="True" /> 48 <Event Name="Clicked" Function="S ingleplayerMenu.SingleplayerConfigButton_clicked"/>54 <Event Name="Clicked" Function="ShipSelectionMenu.ShipSelectionConfigButton_clicked"/> 49 55 </Window> 50 <Window Type="MenuWidgets/Button" Name="orxonox/S ingleplayerBackButton" >56 <Window Type="MenuWidgets/Button" Name="orxonox/ShipSelectionBackButton" > 51 57 <Property Name="Text" Value="Back" /> 52 58 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 53 59 <Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.725,0},{0.75,0},{0.775,0}}" /> 54 <Event Name="Clicked" Function="S ingleplayerMenu.SingleplayerBackButton_clicked"/>60 <Event Name="Clicked" Function="ShipSelectionMenu.ShipSelectionBackButton_clicked"/> 55 61 </Window> 56 62 </Window> -
code/branches/shipSelection/data/gui/scripts/SingleplayerMenu.lua
r9039 r9045 2 2 3 3 local P = createMenuSheet("SingleplayerMenu") 4 P.loadAlong = { 4 P.loadAlong = {"ShipSelectionMenu"} 5 5 P.levelList = {} 6 6 P.activeTabIndexes = {} … … 143 143 local level = P.SingleplayerGetSelectedLevel() 144 144 if level ~= nil then 145 if level:hasTag("shipselection") then 146 showMenuSheet("ShipSelectionMenu", true) 145 146 if level:hasTag("shipselection") then 147 showMenuSheet("ShipSelectionMenu", true) 148 else 149 orxonox.execute("startGame " .. level:getXMLFilename()) 150 hideAllMenuSheets() 147 151 end 148 orxonox.execute("startGame " .. level:getXMLFilename())149 hideAllMenuSheets()150 152 end 151 153 end -
code/branches/shipSelection/src/orxonox/LevelInfo.cc
r9016 r9045 93 93 LevelInfoItem::possibleTags_s.insert("gametype"); 94 94 LevelInfoItem::possibleTags_s.insert("minigame"); 95 LevelInfoItem::possibleTags_s.insert("shipselection"); 95 96 } 96 97 }
Note: See TracChangeset
for help on using the changeset viewer.