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