Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/gui/scripts/SettingsMenu.lua @ 7083

Last change on this file since 7083 was 7006, checked in by dafrick, 15 years ago

Added Menu to display and edit config values.
But the list of available config values has still to be populated and editing doesn't work yet.

  • Property svn:eol-style set to native
File size: 769 bytes
Line 
1-- SettingsMenu.lua
2
3local P = createMenuSheet("SettingsMenu")
4P.loadAlong = { "ControlsMenu", "AudioMenu", "GraphicsMenu" }
5
6function P.SettingsGameplayButton_clicked(e)
7    showMenuSheet("GameplayMenu", true)
8end
9
10function P.SettingsMultiplayerOptionsButton_clicked(e)
11    showMenuSheet("MultiplayerOptionsMenu", true)
12end
13
14function P.SettingsControlsButton_clicked(e)
15    showMenuSheet("ControlsMenu", true)
16end
17
18function P.SettingsGraphicsButton_clicked(e)
19    showMenuSheet("GraphicsMenu", true)
20end
21
22function P.SettingsAudioButton_clicked(e)
23    showMenuSheet("AudioMenu", true)
24end
25
26function P.SettingsMiscellaneousButton_clicked(e)
27    showMenuSheet("MiscConfigMenu", true)
28end
29
30function P.SettingsBackButton_clicked(e)
31    hideMenuSheet(P.name)
32end
33
34return P
35
Note: See TracBrowser for help on using the repository browser.