Changeset 11052 for code/trunk/data/gui/scripts
- Timestamp:
- Jan 9, 2016, 6:26:20 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/CampaignMenu.lua
r10262 r11052 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 -
code/trunk/data/gui/scripts/InGameMenu.lua
r9016 r11052 7 7 P.multiplayerMode = "startClient" 8 8 9 --button are arranged in a 4x1 matrix, the left lower item is nil9 --button are arranged in a 5x1 matrix, the left lower item is nil 10 10 P:setButton(1, 1, { 11 11 ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReturnButton"), … … 14 14 15 15 P:setButton(2, 1, { 16 ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReloadLevelButton"), 17 ["callback"] = P.button_reloadLevel_clicked 18 }) 19 20 P:setButton(3, 1, { 16 21 ["button"] = winMgr:getWindow("orxonox/InGameMenu_MainMenuButton"), 17 22 ["callback"] = P.button_mainmenu_clicked 18 23 }) 19 24 20 P:setButton( 3, 1, {25 P:setButton(4, 1, { 21 26 ["button"] = winMgr:getWindow("orxonox/InGameMenu_SettingsButton"), 22 27 ["callback"] = P.button_settings_clicked 23 28 }) 24 29 25 P:setButton( 4, 1, {30 P:setButton(5, 1, { 26 31 ["button"] = winMgr:getWindow("orxonox/InGameMenu_QuitButton"), 27 32 ["callback"] = P.button_quit_clicked … … 54 59 end 55 60 61 function P.button_reloadLevel_clicked(e) 62 hideMenuSheet("InGameMenu") 63 orxonox.execute("reloadLevel") 64 end 65 56 66 function P.button_return_clicked(e) 57 67 hideMenuSheet("InGameMenu") -
code/trunk/data/gui/scripts/SheetManager.lua
r8729 r11052 24 24 cursor:show() 25 25 end 26 end 27 28 function getLoadedSheets() 29 local names = "" 30 for name, sheet in pairs(loadedSheets) do 31 names = names .. name 32 names = names .. "," 33 end 34 return names 26 35 end 27 36
Note: See TracChangeset
for help on using the changeset viewer.