Last change
on this file since 7168 was
7109,
checked in by scheusso, 14 years ago
|
radarVisibility gets respected now
hide mainmenu when loading a game
|
-
Property svn:eol-style set to
native
|
File size:
686 bytes
|
Line | |
---|
1 | -- MainMenu.lua |
---|
2 | |
---|
3 | local P = createMenuSheet("MainMenu") |
---|
4 | P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" } |
---|
5 | |
---|
6 | -- events for MainMenu |
---|
7 | function P.QuickGameTestButton_clicked(e) |
---|
8 | hideAllMenuSheets() |
---|
9 | orxonox.execute("startGame") |
---|
10 | end |
---|
11 | |
---|
12 | function P.SingleplayerButton_clicked(e) |
---|
13 | showMenuSheet("SingleplayerMenu", true) |
---|
14 | end |
---|
15 | |
---|
16 | function P.MultiplayerButton_clicked(e) |
---|
17 | showMenuSheet("MultiplayerMenu", true) |
---|
18 | end |
---|
19 | |
---|
20 | function P.SettingsButton_clicked(e) |
---|
21 | showMenuSheet("SettingsMenu", true) |
---|
22 | end |
---|
23 | |
---|
24 | function P.CreditsButton_clicked(e) |
---|
25 | showMenuSheet("CreditsMenu", true) |
---|
26 | end |
---|
27 | |
---|
28 | function P.ExitButton_clicked(e) |
---|
29 | orxonox.execute("exit") |
---|
30 | end |
---|
31 | |
---|
32 | return P |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.