Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/MainMenu.lua @ 7179

Last change on this file since 7179 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
RevLine 
[5661]1-- MainMenu.lua
[5491]2
[6746]3local P = createMenuSheet("MainMenu")
[6748]4P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" }
[5491]5
[6417]6-- events for MainMenu
7function P.QuickGameTestButton_clicked(e)
[7163]8    hideAllMenuSheets()
[6417]9    orxonox.execute("startGame")
[5491]10end
11
[6417]12function P.SingleplayerButton_clicked(e)
[6746]13    showMenuSheet("SingleplayerMenu", true)
[5491]14end
15
[6417]16function P.MultiplayerButton_clicked(e)
[6746]17    showMenuSheet("MultiplayerMenu", true)
[5491]18end
19
[6417]20function P.SettingsButton_clicked(e)
[6746]21    showMenuSheet("SettingsMenu", true)
[5491]22end
23
[6417]24function P.CreditsButton_clicked(e)
[6746]25    showMenuSheet("CreditsMenu", true)
[5491]26end
27
[6417]28function P.ExitButton_clicked(e)
29    orxonox.execute("exit")
[5491]30end
31
[5661]32return P
[5491]33
Note: See TracBrowser for help on using the repository browser.