Last change
on this file since 6595 was
6595,
checked in by rgrieder, 15 years ago
|
Merged remaining revisions from gamestate to gamestates2.
|
-
Property svn:eol-style set to
native
|
File size:
660 bytes
|
Line | |
---|
1 | -- MainMenu.lua |
---|
2 | |
---|
3 | BasicGUI = require("BasicGUI") |
---|
4 | local P = BasicGUI:new("MainMenu") |
---|
5 | if _REQUIREDNAME == nil then |
---|
6 | MainMenu = P |
---|
7 | else |
---|
8 | _G[_REQUIREDNAME] = P |
---|
9 | end |
---|
10 | |
---|
11 | -- events for MainMenu |
---|
12 | function P.QuickGameTestButton_clicked(e) |
---|
13 | orxonox.execute("startGame") |
---|
14 | end |
---|
15 | |
---|
16 | function P.SingleplayerButton_clicked(e) |
---|
17 | showGUI("SingleplayerMenu", true) |
---|
18 | end |
---|
19 | |
---|
20 | function P.MultiplayerButton_clicked(e) |
---|
21 | showGUI("MultiplayerMenu", true) |
---|
22 | end |
---|
23 | |
---|
24 | function P.SettingsButton_clicked(e) |
---|
25 | showGUI("SettingsMenu", true) |
---|
26 | end |
---|
27 | |
---|
28 | function P.CreditsButton_clicked(e) |
---|
29 | showGUI("CreditsMenu", true) |
---|
30 | end |
---|
31 | |
---|
32 | function P.ExitButton_clicked(e) |
---|
33 | orxonox.execute("exit") |
---|
34 | end |
---|
35 | |
---|
36 | return P |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.