Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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