Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_osx/data/gui/scripts/MainMenu.lua @ 8703

Last change on this file since 8703 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

  • 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.