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