Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/scripts/ControlsMenu.lua @ 6459

Last change on this file since 6459 was 6459, checked in by rgrieder, 14 years ago

Simplified BasicGUI construction. Just give the name of the GUI as argument. The rest will be deduced.

  • Property svn:eol-style set to native
File size: 442 bytes
Line 
1-- ControlsMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new("ControlsMenu")
5if _REQUIREDNAME == nil then
6    ControlsMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11function P.ControlsMouseControlsButton_clicked(e)
12    showGUI("MouseControlsMenu", true)
13end
14
15function P.ControlsKeyboardControlsButton_clicked(e)
16    showGUI("KeyBindMenu", true)
17end
18
19function P.ControlsBackButton_clicked(e)
20    hideGUI(P.filename)
21end
22
23return P
24
Note: See TracBrowser for help on using the repository browser.