source:
code/trunk/data/gui/scripts/MainMenu.lua
@
7525
Last change on this file since 7525 was 7163, checked in by dafrick, 14 years ago | |
---|---|
|
|
File size: 686 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) | |
[7163] | 8 | hideAllMenuSheets() |
[6417] | 9 | orxonox.execute("startGame") |
[5491] | 10 | end |
11 | ||
[6417] | 12 | function P.SingleplayerButton_clicked(e) |
[6746] | 13 | showMenuSheet("SingleplayerMenu", true) |
[5491] | 14 | end |
15 | ||
[6417] | 16 | function P.MultiplayerButton_clicked(e) |
[6746] | 17 | showMenuSheet("MultiplayerMenu", true) |
[5491] | 18 | end |
19 | ||
[6417] | 20 | function P.SettingsButton_clicked(e) |
[6746] | 21 | showMenuSheet("SettingsMenu", true) |
[5491] | 22 | end |
23 | ||
[6417] | 24 | function P.CreditsButton_clicked(e) |
[6746] | 25 | showMenuSheet("CreditsMenu", true) |
[5491] | 26 | end |
27 | ||
[6417] | 28 | function P.ExitButton_clicked(e) |
29 | orxonox.execute("exit") | |
[5491] | 30 | end |
31 | ||
[5661] | 32 | return P |
[5491] | 33 |
Note: See TracBrowser
for help on using the repository browser.