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