Last change
on this file since 6235 was
6206,
checked in by cmueri, 15 years ago
|
The new menus (but not all functions of the menu) are now available.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6206] | 1 | -- MouseControlsMenu.lua |
---|
| 2 | |
---|
| 3 | BasicGUI = require("BasicGUI") |
---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
| 5 | if _REQUIREDNAME == nil then |
---|
| 6 | MouseControlsMenu = P |
---|
| 7 | else |
---|
| 8 | _G[_REQUIREDNAME] = P |
---|
| 9 | end |
---|
| 10 | |
---|
| 11 | P.filename = "MouseControlsMenu" |
---|
| 12 | P.layoutString = "MouseControlsMenu.layout" |
---|
| 13 | |
---|
| 14 | local scrollbar_active = false |
---|
| 15 | |
---|
| 16 | function P.MouseControlsMouseScrollbar_changed(e) |
---|
| 17 | if scrollbar_active == false then |
---|
| 18 | -- mouse sensitivity |
---|
| 19 | debug("event: mouse sensitivity") |
---|
| 20 | end |
---|
| 21 | end |
---|
| 22 | |
---|
| 23 | function P.MouseControlsMouseScrollbar_started(e) |
---|
| 24 | scrollbar_active = true |
---|
| 25 | end |
---|
| 26 | |
---|
| 27 | function P.MouseControlsMouseScrollbar_ended(e) |
---|
| 28 | -- mouse sensitivity |
---|
| 29 | debug("event: mouse sensitivity") |
---|
| 30 | scrollbar_active = false |
---|
| 31 | end |
---|
| 32 | |
---|
| 33 | function P.MouseControlsDefaultButton_clicked(e) |
---|
| 34 | -- default control mode |
---|
| 35 | debug("event: default control mode") |
---|
| 36 | end |
---|
| 37 | |
---|
| 38 | function P.MouseControls_______Button_clicked(e) |
---|
| 39 | -- ....... |
---|
| 40 | debug("event: .......") |
---|
| 41 | end |
---|
| 42 | |
---|
| 43 | function P.MouseControlsBackButton_clicked(e) |
---|
| 44 | hideGUI(P.filename) |
---|
| 45 | end |
---|
| 46 | |
---|
| 47 | return P |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.