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