Last change
on this file since 6518 was
6459,
checked in by rgrieder, 15 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 | |
---|
3 | BasicGUI = require("BasicGUI") |
---|
4 | local P = BasicGUI:new("ControlsMenu") |
---|
5 | if _REQUIREDNAME == nil then |
---|
6 | ControlsMenu = P |
---|
7 | else |
---|
8 | _G[_REQUIREDNAME] = P |
---|
9 | end |
---|
10 | |
---|
11 | function P.ControlsMouseControlsButton_clicked(e) |
---|
12 | showGUI("MouseControlsMenu", true) |
---|
13 | end |
---|
14 | |
---|
15 | function P.ControlsKeyboardControlsButton_clicked(e) |
---|
16 | showGUI("KeyBindMenu", true) |
---|
17 | end |
---|
18 | |
---|
19 | function P.ControlsBackButton_clicked(e) |
---|
20 | hideGUI(P.filename) |
---|
21 | end |
---|
22 | |
---|
23 | return P |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.