Last change
on this file since 7082 was
6748,
checked in by rgrieder, 15 years ago
|
A GUISheet can assign its field "loadAlong" any strings designating other sheets that have to be loaded as well.
Implemented this for all menus sheets as I see fit (load the whole MainMenu, but don't load MainMenu or Settings for the InGameMenu).
This is just a measure to avoid lags when clicking through the menus.
|
-
Property svn:eol-style set to
native
|
File size:
792 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- SettingsMenu.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("SettingsMenu") |
---|
[6748] | 4 | P.loadAlong = { "ControlsMenu", "AudioMenu", "GraphicsMenu" } |
---|
[6363] | 5 | |
---|
| 6 | function P.SettingsGameplayButton_clicked(e) |
---|
[6746] | 7 | showMenuSheet("GameplayMenu", true) |
---|
[6363] | 8 | end |
---|
| 9 | |
---|
| 10 | function P.SettingsMultiplayerOptionsButton_clicked(e) |
---|
[6746] | 11 | showMenuSheet("MultiplayerOptionsMenu", true) |
---|
[6363] | 12 | end |
---|
| 13 | |
---|
| 14 | function P.SettingsControlsButton_clicked(e) |
---|
[6746] | 15 | showMenuSheet("ControlsMenu", true) |
---|
[6363] | 16 | end |
---|
| 17 | |
---|
| 18 | function P.SettingsGraphicsButton_clicked(e) |
---|
[6746] | 19 | showMenuSheet("GraphicsMenu", true) |
---|
[6363] | 20 | end |
---|
| 21 | |
---|
| 22 | function P.SettingsAudioButton_clicked(e) |
---|
[6746] | 23 | showMenuSheet("AudioMenu", true) |
---|
[6363] | 24 | end |
---|
| 25 | |
---|
| 26 | function P.SettingsResetSettingsButton_clicked(e) |
---|
| 27 | -- reset settings |
---|
[6746] | 28 | logMessage(0, "event: reset settings") |
---|
[6363] | 29 | end |
---|
| 30 | |
---|
| 31 | function P.SettingsBackButton_clicked(e) |
---|
[6746] | 32 | hideMenuSheet(P.name) |
---|
[6363] | 33 | end |
---|
| 34 | |
---|
| 35 | return P |
---|
| 36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.