|
Last change
on this file since 6203 was
6146,
checked in by cmueri, 16 years ago
|
|
10 new layout- and lua-files for the menues added
|
-
Property svn:executable set to
*
|
|
File size:
658 bytes
|
| Line | |
|---|
| 1 | -- NewControlsMenu.lua |
|---|
| 2 | |
|---|
| 3 | BasicGUI = require("BasicGUI") |
|---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
|---|
| 5 | if _REQUIREDNAME == nil then |
|---|
| 6 | NewControlsMenu = P |
|---|
| 7 | else |
|---|
| 8 | _G[_REQUIREDNAME] = P |
|---|
| 9 | end |
|---|
| 10 | |
|---|
| 11 | P.filename = "NewControlsMenu" |
|---|
| 12 | P.layoutString = "NewControlsMenu.layout" |
|---|
| 13 | |
|---|
| 14 | function P.ControlsMouseControlsButton_clicked(e) |
|---|
| 15 | showGUI("NewMouseControlsMenu") |
|---|
| 16 | debug("event: MOUSE CONTROLS") |
|---|
| 17 | end |
|---|
| 18 | |
|---|
| 19 | function P.ControlsKeyboardControlsButton_clicked(e) |
|---|
| 20 | showGUI("NewKeyboardControlsMenu") |
|---|
| 21 | debug("event: KEYBOARD CONTROLS") |
|---|
| 22 | end |
|---|
| 23 | |
|---|
| 24 | function P.ControlsBackButton_clicked(e) |
|---|
| 25 | hideGUI("NewControlsMenu") |
|---|
| 26 | debug("event: back") |
|---|
| 27 | end |
|---|
| 28 | |
|---|
| 29 | return P |
|---|
| 30 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.