Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/SettingsMenu.lua @ 6595

Last change on this file since 6595 was 6595, checked in by rgrieder, 15 years ago

Merged remaining revisions from gamestate to gamestates2.

  • 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.