Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/ControlsMenu.lua @ 6778

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