Last change
on this file since 6747 was
6746,
checked in by rgrieder, 15 years ago
|
Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.
Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.
|
-
Property svn:eol-style set to
native
|
File size:
575 bytes
|
Line | |
---|
1 | -- MainMenu.lua |
---|
2 | |
---|
3 | local P = createMenuSheet("MainMenu") |
---|
4 | |
---|
5 | -- events for MainMenu |
---|
6 | function P.QuickGameTestButton_clicked(e) |
---|
7 | orxonox.execute("startGame") |
---|
8 | end |
---|
9 | |
---|
10 | function P.SingleplayerButton_clicked(e) |
---|
11 | showMenuSheet("SingleplayerMenu", true) |
---|
12 | end |
---|
13 | |
---|
14 | function P.MultiplayerButton_clicked(e) |
---|
15 | showMenuSheet("MultiplayerMenu", true) |
---|
16 | end |
---|
17 | |
---|
18 | function P.SettingsButton_clicked(e) |
---|
19 | showMenuSheet("SettingsMenu", true) |
---|
20 | end |
---|
21 | |
---|
22 | function P.CreditsButton_clicked(e) |
---|
23 | showMenuSheet("CreditsMenu", true) |
---|
24 | end |
---|
25 | |
---|
26 | function P.ExitButton_clicked(e) |
---|
27 | orxonox.execute("exit") |
---|
28 | end |
---|
29 | |
---|
30 | return P |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.