Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/gui/scripts/NewMainMenu.lua @ 6150

Last change on this file since 6150 was 6150, checked in by scheusso, 15 years ago

merged menu branch to presentation2 branch with some additional fixes and features ;)

  • Property svn:executable set to *
File size: 970 bytes
RevLine 
[6146]1-- NewMainMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    NewMainMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "NewMainMenu"
12P.layoutString = "NewMainMenu.layout"
13
14-- events for NewMainMenu
15function P.QuickGameTestButton_clicked(e)
16    orxonox.CommandExecutor:execute("startGame")
17    debug("event: quick game test")
18end
19
20function P.SingleplayerButton_clicked(e)
21    showGUI("NewSingleplayerMenu")
22    debug("event: SINGLEPLAYER")
23end
24
25function P.MultiplayerButton_clicked(e)
26    showGUI("NewMultiplayerMenu")
27    debug("event: MULTIPLAYER")
28end
29
30function P.SettingsButton_clicked(e)
31    showGUI("NewSettingsMenu")
32    debug("event: SETTINGS")
33end
34
35function P.CreditsButton_clicked(e)
36    showGUI("NewCreditsMenu")
37    debug("event: CREDITS")
38end
39
40function P.ExitButton_clicked(e)
41    orxonox.CommandExecutor:execute("exit")
42    debug("event: exit")
43end
44
45return P
46
Note: See TracBrowser for help on using the repository browser.