Changeset 10970 for code/branches/presentationHS15/data/gui/scripts
- Timestamp:
- Dec 11, 2015, 3:26:20 PM (9 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/data/gui/scripts/CampaignMenu.lua
r10262 r10970 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.