Last change
on this file since 6569 was
6459,
checked in by rgrieder, 15 years ago
|
Simplified BasicGUI construction. Just give the name of the GUI as argument. The rest will be deduced.
|
-
Property svn:eol-style set to
native
|
File size:
803 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- SettingsMenu.lua |
---|
| 2 | |
---|
| 3 | BasicGUI = require("BasicGUI") |
---|
[6459] | 4 | local P = BasicGUI:new("SettingsMenu") |
---|
[6363] | 5 | if _REQUIREDNAME == nil then |
---|
| 6 | SettingsMenu = P |
---|
| 7 | else |
---|
| 8 | _G[_REQUIREDNAME] = P |
---|
| 9 | end |
---|
| 10 | |
---|
| 11 | function P.SettingsGameplayButton_clicked(e) |
---|
| 12 | showGUI("GameplayMenu", true) |
---|
| 13 | end |
---|
| 14 | |
---|
| 15 | function P.SettingsMultiplayerOptionsButton_clicked(e) |
---|
| 16 | showGUI("MultiplayerOptionsMenu", true) |
---|
| 17 | end |
---|
| 18 | |
---|
| 19 | function P.SettingsControlsButton_clicked(e) |
---|
| 20 | showGUI("ControlsMenu", true) |
---|
| 21 | end |
---|
| 22 | |
---|
| 23 | function P.SettingsGraphicsButton_clicked(e) |
---|
| 24 | showGUI("GraphicsMenu", true) |
---|
| 25 | end |
---|
| 26 | |
---|
| 27 | function P.SettingsAudioButton_clicked(e) |
---|
| 28 | showGUI("AudioMenu", true) |
---|
| 29 | end |
---|
| 30 | |
---|
| 31 | function P.SettingsResetSettingsButton_clicked(e) |
---|
| 32 | -- reset settings |
---|
| 33 | debug("event: reset settings") |
---|
| 34 | end |
---|
| 35 | |
---|
| 36 | function P.SettingsBackButton_clicked(e) |
---|
| 37 | hideGUI(P.filename) |
---|
| 38 | end |
---|
| 39 | |
---|
| 40 | return P |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.