Last change
on this file since 6162 was
6150,
checked in by scheusso, 15 years ago
|
merged menu branch to presentation2 branch with some additional fixes and features
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6146] | 1 | -- NewSettingsMenu.lua |
---|
| 2 | |
---|
| 3 | BasicGUI = require("BasicGUI") |
---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
| 5 | if _REQUIREDNAME == nil then |
---|
| 6 | NewSettingsMenu = P |
---|
| 7 | else |
---|
| 8 | _G[_REQUIREDNAME] = P |
---|
| 9 | end |
---|
| 10 | |
---|
| 11 | P.filename = "NewSettingsMenu" |
---|
| 12 | P.layoutString = "NewSettingsMenu.layout" |
---|
| 13 | |
---|
| 14 | function P.SettingsGameplayButton_clicked(e) |
---|
| 15 | showGUI("NewGameplayMenu") |
---|
| 16 | debug("event: GAMEPLAY") |
---|
| 17 | end |
---|
| 18 | |
---|
| 19 | function P.SettingsMultiplayerOptionsButton_clicked(e) |
---|
| 20 | showGUI("NewMultiplayerOptionsMenu") |
---|
| 21 | debug("event: MULTIPLAYER OPTIONS") |
---|
| 22 | end |
---|
| 23 | |
---|
| 24 | function P.SettingsControlsButton_clicked(e) |
---|
| 25 | showGUI("NewControlsMenu") |
---|
| 26 | debug("event: CONTROLS") |
---|
| 27 | end |
---|
| 28 | |
---|
| 29 | function P.SettingsGraphicsButton_clicked(e) |
---|
| 30 | showGUI("NewGraphicsMenu") |
---|
| 31 | debug("event: GRAPHICS") |
---|
| 32 | end |
---|
| 33 | |
---|
| 34 | function P.SettingsAudioButton_clicked(e) |
---|
| 35 | showGUI("NewAudioMenu") |
---|
| 36 | debug("event: AUDIO") |
---|
| 37 | end |
---|
| 38 | |
---|
| 39 | function P.SettingsResetSettingsButton_clicked(e) |
---|
| 40 | -- reset settings |
---|
| 41 | debug("event: reset settings") |
---|
| 42 | end |
---|
| 43 | |
---|
| 44 | function P.SettingsBackButton_clicked(e) |
---|
| 45 | hideGUI("NewSettingsMenu") |
---|
| 46 | debug("event: back") |
---|
| 47 | end |
---|
| 48 | |
---|
| 49 | return P |
---|
| 50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.