Last change
on this file since 7817 was
7689,
checked in by dafrick, 14 years ago
|
Merging menu branch to trunk.
|
-
Property svn:eol-style set to
native
|
File size:
696 bytes
|
Line | |
---|
1 | -- InGameMenu.lua |
---|
2 | |
---|
3 | local P = createMenuSheet("InGameMenu") |
---|
4 | P.loadAlong = { "DecisionPopup" } |
---|
5 | |
---|
6 | -- events for ingamemenu |
---|
7 | function P.button_quit_clicked(e) |
---|
8 | openDecisionPopup( "Do you really want to quit the game?", InGameMenu.callback ) |
---|
9 | end |
---|
10 | |
---|
11 | function P.button_mainmenu_clicked(e) |
---|
12 | orxonox.Game:getInstance():popState() |
---|
13 | orxonox.Game:getInstance():popState() |
---|
14 | hideMenuSheet("InGameMenu") |
---|
15 | end |
---|
16 | |
---|
17 | function P.button_settings_clicked(e) |
---|
18 | showMenuSheet("SettingsMenu", true) |
---|
19 | end |
---|
20 | |
---|
21 | function P.button_return_clicked(e) |
---|
22 | hideMenuSheet("InGameMenu") |
---|
23 | end |
---|
24 | |
---|
25 | function P.callback(doExit) |
---|
26 | if doExit then |
---|
27 | hideMenuSheet("InGameMenu") |
---|
28 | orxonox.execute("exit") |
---|
29 | end |
---|
30 | end |
---|
31 | |
---|
32 | return P |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.