Changeset 10950 for code/branches
- Timestamp:
- Dec 7, 2015, 4:42:46 PM (9 years ago)
- Location:
- code/branches/campaignHS15/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/data/defaultConfig/orxonox.ini
r10262 r10950 4 4 campaignMissions_[2] = "pirateAttack.oxw" 5 5 campaignMissions_[3] = "iJohnVane_TriptoArea51.oxw" 6 campaignMissions_[4] = "iiJohnVane_Area51UnderFire.oxw" 7 campaignMissions_[5] = "iiiJohnVane_EscapeTheBastards.oxw" 8 campaignMissions_[6] = "expeditionSector.oxw" 9 campaignMissions_[7] = "shuttleAttack.oxw" 10 campaignMissions_[8] = "shuttleRetaliation.oxw" -
code/branches/campaignHS15/data/gui/layouts/CampaignMenu.layout
r10262 r10950 8 8 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1.0,0},{1.0,0}}" /> 9 9 <Property Name="BackgroundEnabled" Value="False" /> 10 <Window Type="MenuWidgets/Button" Name="orxonox/Mission OneButton" >11 <Property Name="Text" Value="Mission 1" />10 <Window Type="MenuWidgets/Button" Name="orxonox/Mission1Button" > 11 <Property Name="Text" Value="Mission One" /> 12 12 <Property Name="Visible" Value="False"/> 13 13 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 14 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.2875,0},{0.6,0},{0.3375,0}}" />15 <Event Name="Clicked" Function="CampaignMenu.Mission OneButton_clicked"/>14 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.1,0},{0.65,0},{0.15,0}}" /> 15 <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/> 16 16 </Window> 17 <Window Type="MenuWidgets/Button" Name="orxonox/Mission TwoButton" >18 <Property Name="Text" Value=" Mission 2" />17 <Window Type="MenuWidgets/Button" Name="orxonox/Mission2Button" > 18 <Property Name="Text" Value="Fight in our Back" /> 19 19 <Property Name="Visible" Value="False"/> 20 20 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 21 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />21 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.18,0},{0.65,0},{0.23,0}}" /> 22 22 <Property Name="Disabled" Value="True" /> 23 <Event Name="Clicked" Function="CampaignMenu.Mission TwoButton_clicked"/>23 <Event Name="Clicked" Function="CampaignMenu.Mission2Button_clicked"/> 24 24 </Window> 25 <Window Type="MenuWidgets/Button" Name="orxonox/Mission ThreeButton" >26 <Property Name="Text" Value=" Mission 3" />25 <Window Type="MenuWidgets/Button" Name="orxonox/Mission3Button" > 26 <Property Name="Text" Value="Pirate Attack" /> 27 27 <Property Name="Visible" Value="False"/> 28 28 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 29 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.4375,0},{0.6,0},{0.4875,0}}" />29 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.26,0},{0.65,0},{0.31,0}}" /> 30 30 <Property Name="Disabled" Value="True" /> 31 <Event Name="Clicked" Function="CampaignMenu.Mission ThreeButton_clicked"/>31 <Event Name="Clicked" Function="CampaignMenu.Mission3Button_clicked"/> 32 32 </Window> 33 <Window Type="MenuWidgets/Button" Name="orxonox/Mission FourButton" >34 <Property Name="Text" Value=" Mission 4" />33 <Window Type="MenuWidgets/Button" Name="orxonox/Mission4Button" > 34 <Property Name="Text" Value="Trip to Area 51" /> 35 35 <Property Name="Visible" Value="False"/> 36 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 37 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.5125,0},{0.6,0},{0.5625,0}}" />37 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.34,0},{0.65,0},{0.39,0}}" /> 38 38 <Property Name="Disabled" Value="True" /> 39 <Event Name="Clicked" Function="CampaignMenu.Mission FourButton_clicked"/>39 <Event Name="Clicked" Function="CampaignMenu.Mission4Button_clicked"/> 40 40 </Window> 41 <Window Type="MenuWidgets/Button" Name="orxonox/Mission5Button" > 42 <Property Name="Text" Value="Area 51 under Fire" /> 43 <Property Name="Visible" Value="False"/> 44 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 45 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.42,0},{0.65,0},{0.47,0}}" /> 46 <Property Name="Disabled" Value="True" /> 47 <Event Name="Clicked" Function="CampaignMenu.Mission5Button_clicked"/> 48 </Window> 49 <Window Type="MenuWidgets/Button" Name="orxonox/Mission6Button" > 50 <Property Name="Text" Value="Escape the Bastards" /> 51 <Property Name="Visible" Value="False"/> 52 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 53 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.50,0},{0.65,0},{0.55,0}}" /> 54 <Property Name="Disabled" Value="True" /> 55 <Event Name="Clicked" Function="CampaignMenu.Mission6Button_clicked"/> 56 </Window> 57 <Window Type="MenuWidgets/Button" Name="orxonox/Mission7Button" > 58 <Property Name="Text" Value="Expedition to Sector 5C" /> 59 <Property Name="Visible" Value="False"/> 60 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 61 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.58,0},{0.65,0},{0.63,0}}" /> 62 <Property Name="Disabled" Value="True" /> 63 <Event Name="Clicked" Function="CampaignMenu.Mission7Button_clicked"/> 64 </Window> 65 <Window Type="MenuWidgets/Button" Name="orxonox/Mission8Button" > 66 <Property Name="Text" Value="Shuttle under Attack" /> 67 <Property Name="Visible" Value="False"/> 68 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 69 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.66,0},{0.65,0},{0.71,0}}" /> 70 <Property Name="Disabled" Value="True" /> 71 <Event Name="Clicked" Function="CampaignMenu.Mission8Button_clicked"/> 72 </Window> 73 <Window Type="MenuWidgets/Button" Name="orxonox/Mission9Button" > 74 <Property Name="Text" Value="Retaliation" /> 75 <Property Name="Visible" Value="False"/> 76 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 77 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.74,0},{0.65,0},{0.79,0}}" /> 78 <Property Name="Disabled" Value="True" /> 79 <Event Name="Clicked" Function="CampaignMenu.Mission9Button_clicked"/> 80 </Window> 81 82 41 83 <Window Type="MenuWidgets/Button" Name="orxonox/CampaignMenuBackButton" > 42 84 <Property Name="Text" Value="Back" /> 43 85 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 44 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.8,0},{0.6,0},{0.85,0}}" />86 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.85,0},{0.65,0},{0.9,0}}" /> 45 87 <Event Name="Clicked" Function="CampaignMenu.CampaignMenuBackButton_clicked"/> 46 88 </Window> -
code/branches/campaignHS15/data/gui/scripts/CampaignMenu.lua
r10262 r10950 8 8 9 9 function P.updateButtons() 10 P.updateButton(0, winMgr:getWindow("orxonox/MissionOneButton")) 11 P.updateButton(1, winMgr:getWindow("orxonox/MissionTwoButton")) 12 P.updateButton(2, winMgr:getWindow("orxonox/MissionThreeButton")) 13 P.updateButton(3, winMgr:getWindow("orxonox/MissionFourButton")) 10 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button")) 11 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button")) 12 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button")) 13 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button")) 14 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button")) 15 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button")) 16 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button")) 17 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button")) 18 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button")) 19 14 20 15 21 if (P.getIndexOfLastFinishedMission() == orxonox.LevelManager:getInstance():getNumberOfCampaignMissions() - 1) then … … 54 60 end 55 61 56 function P.Mission OneButton_clicked(e)62 function P.Mission1Button_clicked(e) 57 63 P.loadLevel(P.FindLevel(0)) 58 64 end 59 65 60 function P.Mission TwoButton_clicked(e)66 function P.Mission2Button_clicked(e) 61 67 P.loadLevel(P.FindLevel(1)) 62 68 end 63 69 64 function P.Mission ThreeButton_clicked(e)70 function P.Mission3Button_clicked(e) 65 71 P.loadLevel(P.FindLevel(2)) 66 72 end 67 73 68 function P.Mission FourButton_clicked(e)74 function P.Mission4Button_clicked(e) 69 75 P.loadLevel(P.FindLevel(3)) 76 end 77 78 function P.Mission5Button_clicked(e) 79 P.loadLevel(P.FindLevel(4)) 80 end 81 82 function P.Mission6Button_clicked(e) 83 P.loadLevel(P.FindLevel(5)) 84 end 85 86 function P.Mission7Button_clicked(e) 87 P.loadLevel(P.FindLevel(6)) 88 end 89 90 function P.Mission8Button_clicked(e) 91 P.loadLevel(P.FindLevel(7)) 92 end 93 94 function P.Mission9Button_clicked(e) 95 P.loadLevel(P.FindLevel(8)) 70 96 end 71 97
Note: See TracChangeset
for help on using the changeset viewer.