Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/scripts/MainMenu.lua @ 6698

Last change on this file since 6698 was 6621, checked in by rgrieder, 15 years ago

Simplified GUI sheet creation (first lines in the lua file) a lot by exporting it to GUITools.lua

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