Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/scripts/SettingsMenu.lua @ 6569

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
Line 
1-- SettingsMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new("SettingsMenu")
5if _REQUIREDNAME == nil then
6    SettingsMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11function P.SettingsGameplayButton_clicked(e)
12    showGUI("GameplayMenu", true)
13end
14
15function P.SettingsMultiplayerOptionsButton_clicked(e)
16    showGUI("MultiplayerOptionsMenu", true)
17end
18
19function P.SettingsControlsButton_clicked(e)
20    showGUI("ControlsMenu", true)
21end
22
23function P.SettingsGraphicsButton_clicked(e)
24    showGUI("GraphicsMenu", true)
25end
26
27function P.SettingsAudioButton_clicked(e)
28    showGUI("AudioMenu", true)
29end
30
31function P.SettingsResetSettingsButton_clicked(e)
32    -- reset settings
33    debug("event: reset settings")
34end
35
36function P.SettingsBackButton_clicked(e)
37    hideGUI(P.filename)
38end
39
40return P
41
Note: See TracBrowser for help on using the repository browser.