Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/gui/scripts/MainMenu.lua @ 7168

Last change on this file since 7168 was 7109, checked in by scheusso, 14 years ago

radarVisibility gets respected now
hide mainmenu when loading a game

  • Property svn:eol-style set to native
File size: 686 bytes
Line 
1-- MainMenu.lua
2
3local P = createMenuSheet("MainMenu")
4P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" }
5
6-- events for MainMenu
7function P.QuickGameTestButton_clicked(e)
8    hideAllMenuSheets()
9    orxonox.execute("startGame")
10end
11
12function P.SingleplayerButton_clicked(e)
13    showMenuSheet("SingleplayerMenu", true)
14end
15
16function P.MultiplayerButton_clicked(e)
17    showMenuSheet("MultiplayerMenu", true)
18end
19
20function P.SettingsButton_clicked(e)
21    showMenuSheet("SettingsMenu", true)
22end
23
24function P.CreditsButton_clicked(e)
25    showMenuSheet("CreditsMenu", true)
26end
27
28function P.ExitButton_clicked(e)
29    orxonox.execute("exit")
30end
31
32return P
33
Note: See TracBrowser for help on using the repository browser.