Changeset 11497 for code/branches/HUD_HS16/data/gui/scripts
- Timestamp:
- Oct 23, 2017, 2:22:13 PM (7 years ago)
- Location:
- code/branches/HUD_HS16
- Files:
-
- 5 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16
- Property svn:mergeinfo changed
-
code/branches/HUD_HS16/data/gui/scripts/CampaignMenu.lua
r11052 r11497 9 9 function P.updateButtons() 10 10 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button")) 11 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Text")) 11 12 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button")) 13 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Text")) 12 14 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button")) 15 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Text")) 13 16 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button")) 17 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Text")) 14 18 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button")) 19 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Text")) 15 20 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button")) 21 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Text")) 16 22 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button")) 23 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Text")) 17 24 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button")) 25 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Text")) 18 26 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button")) 27 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Text")) 19 28 20 29 … … 97 106 98 107 function P.loadLevel(level) 99 orxonox.execute(" startGame " .. level:getXMLFilename())108 orxonox.execute("changeGame " .. level:getXMLFilename()) 100 109 hideAllMenuSheets() 101 110 end … … 118 127 119 128 function P.CampaignMenuBackButton_clicked(e) 120 hideMenuSheet(P.name) 129 orxonox.execute("startMainMenu") 130 hideMenuSheet("CampaignMenu") 121 131 end 122 132 -
code/branches/HUD_HS16/data/gui/scripts/MainMenu.lua
r8079 r11497 2 2 3 3 local P = createMenuSheet("MainMenu") 4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", " SettingsMenu", "CreditsMenu" }4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "HighscoreMenu", "SettingsMenu", "CreditsMenu" } 5 5 6 6 function P.onLoad() … … 22 22 23 23 P:setButton(4, 1, { 24 ["button"] = winMgr:getWindow("orxonox/HighscoreButton"), 25 ["callback"] = P.MultiplayerButton_clicked 26 }) 27 28 P:setButton(5, 1, { 24 29 ["button"] = winMgr:getWindow("orxonox/SettingsButton"), 25 30 ["callback"] = P.SettingsButton_clicked 26 31 }) 27 32 28 P:setButton( 5, 1, {33 P:setButton(6, 1, { 29 34 ["button"] = winMgr:getWindow("orxonox/CreditsButton"), 30 35 ["callback"] = P.CreditsButton_clicked 31 36 }) 32 37 33 P:setButton( 6, 1, {38 P:setButton(7, 1, { 34 39 ["button"] = winMgr:getWindow("orxonox/ExitButton"), 35 40 ["callback"] = P.ExitButton_clicked … … 51 56 end 52 57 58 function P.HighscoreButton_clicked(e) 59 showMenuSheet("HighscoreMenu", true) 60 end 61 53 62 function P.SettingsButton_clicked(e) 54 63 showMenuSheet("SettingsMenu", true) -
code/branches/HUD_HS16/data/gui/scripts/MiscConfigMenu.lua
r9977 r11497 18 18 19 19 P.commandList = {} 20 table.insert(P.commandList, "Highscore playerName_") 20 21 table.insert(P.commandList, "KeyBinder mouseSensitivity_") 21 22 table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_") … … 43 44 44 45 P.nameList = {} 46 table.insert(P.nameList, "Playername") 45 47 table.insert(P.nameList, "Mouse sensitivity") 46 48 table.insert(P.nameList, "Mouse acceleration") -
code/branches/HUD_HS16/data/gui/scripts/SingleplayerMenu.lua
r10258 r11497 172 172 173 173 function P.CampaignButton_clicked(e) 174 showMenuSheet("CampaignMenu", true) 174 -- showMenuSheet("CampaignMenu", true) 175 hideAllMenuSheets() 176 orxonox.execute("startGame StoryModeMap.oxw") 175 177 end 176 178
Note: See TracChangeset
for help on using the changeset viewer.