Last change
on this file since 6485 was
6412,
checked in by dafrick, 15 years ago
|
Merged presentation2 branch into pickup2 branch.
|
-
Property svn:eol-style set to
native
|
File size:
899 bytes
|
Line | |
---|
1 | -- SettingsMenu.lua |
---|
2 | |
---|
3 | BasicGUI = require("BasicGUI") |
---|
4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
5 | if _REQUIREDNAME == nil then |
---|
6 | SettingsMenu = P |
---|
7 | else |
---|
8 | _G[_REQUIREDNAME] = P |
---|
9 | end |
---|
10 | |
---|
11 | P.filename = "SettingsMenu" |
---|
12 | P.layoutString = "SettingsMenu.layout" |
---|
13 | |
---|
14 | function P.SettingsGameplayButton_clicked(e) |
---|
15 | showGUI("GameplayMenu", true) |
---|
16 | end |
---|
17 | |
---|
18 | function P.SettingsMultiplayerOptionsButton_clicked(e) |
---|
19 | showGUI("MultiplayerOptionsMenu", true) |
---|
20 | end |
---|
21 | |
---|
22 | function P.SettingsControlsButton_clicked(e) |
---|
23 | showGUI("ControlsMenu", true) |
---|
24 | end |
---|
25 | |
---|
26 | function P.SettingsGraphicsButton_clicked(e) |
---|
27 | showGUI("GraphicsMenu", true) |
---|
28 | end |
---|
29 | |
---|
30 | function P.SettingsAudioButton_clicked(e) |
---|
31 | showGUI("AudioMenu", true) |
---|
32 | end |
---|
33 | |
---|
34 | function P.SettingsResetSettingsButton_clicked(e) |
---|
35 | -- reset settings |
---|
36 | debug("event: reset settings") |
---|
37 | end |
---|
38 | |
---|
39 | function P.SettingsBackButton_clicked(e) |
---|
40 | hideGUI(P.filename) |
---|
41 | end |
---|
42 | |
---|
43 | return P |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.