Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menu/data/gui/scripts/NewSettingsMenu.lua @ 6336

Last change on this file since 6336 was 6146, checked in by cmueri, 15 years ago

10 new layout- and lua-files for the menues added

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