- Timestamp:
- Dec 11, 2018, 2:52:30 PM (6 years ago)
- Location:
- code/branches/Merge_HS18
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Merge_HS18
- Property svn:mergeinfo changed
/code/branches/WorldMap_HS18 (added) merged: 12036,12053-12055,12058-12060,12101,12106,12110,12131,12151-12152,12166
- Property svn:mergeinfo changed
-
code/branches/Merge_HS18/data/gui/scripts/CampaignMenu.lua
r11805 r12180 2 2 3 3 local P = createMenuSheet("CampaignMenu") 4 4 5 5 6 function P:onShow() … … 33 34 end 34 35 end 35 36 --Updated Buttons der levels 36 37 function P.updateButton(index, button) 38 --Wenn genuegend Levels vorhanden sind, wird der Butten angezeigt 37 39 if (P.shouldDisplayButton(index)) then 38 40 button:setProperty("Visible", "True") 39 41 42 --wenn genuegend levels bestanden sind, wird er benutzbar 40 43 if (P.shouldEnableButton(index)) then 41 44 button:setProperty("Disabled", "False") 42 45 end 43 46 end 47 end 48 49 function P.Test(e) 50 orxonox.execute("startMainMenu") 44 51 end 45 52 … … 69 76 end 70 77 78 79 80 71 81 function P.Mission1Button_clicked(e) 82 P.loadLevel(P.FindLevel(0)) 83 end 84 function P.KeyPressed(e) 72 85 P.loadLevel(P.FindLevel(0)) 73 86 end … … 110 123 end 111 124 125 function P.loadMap() 126 orxonox.execute("changeGame dynamicMatch.oxw") 127 hideAllMenuSheets() 128 end 129 112 130 function P.FindLevel(index) 113 131 local filename = orxonox.LevelManager:getInstance():getCampaignMission(index)
Note: See TracChangeset
for help on using the changeset viewer.