Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua @ 6217

Last change on this file since 6217 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
RevLine 
[6206]1-- MouseControlsMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    MouseControlsMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "MouseControlsMenu"
12P.layoutString = "MouseControlsMenu.layout"
13
14local scrollbar_active = false
15
16function P.MouseControlsMouseScrollbar_changed(e)
17    if scrollbar_active == false then
18        -- mouse sensitivity
19        debug("event: mouse sensitivity")
20    end
21end
22
23function P.MouseControlsMouseScrollbar_started(e)
24    scrollbar_active = true
25end
26
27function P.MouseControlsMouseScrollbar_ended(e)
28    -- mouse sensitivity
29    debug("event: mouse sensitivity")
30    scrollbar_active = false
31end
32
33function P.MouseControlsDefaultButton_clicked(e)
34    -- default control mode
35    debug("event: default control mode")
36end
37
38function P.MouseControls_______Button_clicked(e)
39    -- .......
40    debug("event: .......")
41end
42
43function P.MouseControlsBackButton_clicked(e)
44    hideGUI(P.filename)
45end
46
47return P
48
Note: See TracBrowser for help on using the repository browser.