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