Last change
on this file since 7329 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:
396 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- ControlsMenu.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("ControlsMenu") |
---|
[6748] | 4 | P.loadAlong = { "MouseControlsMenu", "KeyBindMenu" } |
---|
[6363] | 5 | |
---|
| 6 | function P.ControlsMouseControlsButton_clicked(e) |
---|
[6746] | 7 | showMenuSheet("MouseControlsMenu", true) |
---|
[6363] | 8 | end |
---|
| 9 | |
---|
| 10 | function P.ControlsKeyboardControlsButton_clicked(e) |
---|
[6746] | 11 | showMenuSheet("KeyBindMenu", true) |
---|
[6363] | 12 | end |
---|
| 13 | |
---|
| 14 | function P.ControlsBackButton_clicked(e) |
---|
[6746] | 15 | hideMenuSheet(P.name) |
---|
[6363] | 16 | end |
---|
| 17 | |
---|
| 18 | return P |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.