Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/MainMenu.lua @ 6718

Last change on this file since 6718 was 6718, checked in by rgrieder, 14 years ago

Moved BasicGUI.lua to GUISheet.lua and derived MenuSheet.lua as well as HUDSheet.lua from it.
Also, to make a new GUI sheet, use either createHUDSheet or createMenuSheet.
Also removed bShowCursor from the showGUI function. This is now always a value directed by the GUI sheet.

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