Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/SettingsMenu.lua @ 6746

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

Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.

Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.

  • Property svn:eol-style set to native
File size: 730 bytes
Line 
1-- SettingsMenu.lua
2
3local P = createMenuSheet("SettingsMenu")
4
5function P.SettingsGameplayButton_clicked(e)
6    showMenuSheet("GameplayMenu", true)
7end
8
9function P.SettingsMultiplayerOptionsButton_clicked(e)
10    showMenuSheet("MultiplayerOptionsMenu", true)
11end
12
13function P.SettingsControlsButton_clicked(e)
14    showMenuSheet("ControlsMenu", true)
15end
16
17function P.SettingsGraphicsButton_clicked(e)
18    showMenuSheet("GraphicsMenu", true)
19end
20
21function P.SettingsAudioButton_clicked(e)
22    showMenuSheet("AudioMenu", true)
23end
24
25function P.SettingsResetSettingsButton_clicked(e)
26    -- reset settings
27    logMessage(0, "event: reset settings")
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.