Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menu/data/gui/scripts/NewMainMenu.lua @ 6336

Last change on this file since 6336 was 6146, checked in by cmueri, 15 years ago

10 new layout- and lua-files for the menues added

  • Property svn:executable set to *
File size: 970 bytes
Line 
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.