Changeset 7689 for code/trunk/data/gui/scripts/ControlsMenu.lua
- Timestamp:
- Dec 1, 2010, 3:00:19 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/menu merged: 7587-7588,7594,7607-7608,7649,7663,7670-7671,7687
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/ControlsMenu.lua
r6748 r7689 2 2 3 3 local P = createMenuSheet("ControlsMenu") 4 P.buttonList = {} 4 5 P.loadAlong = { "MouseControlsMenu", "KeyBindMenu" } 6 7 function P.onLoad() 8 P.multiplayerMode = "startClient" 9 10 --buttons are arranged in a 3x1 matrix: 11 local item = { 12 ["button"] = winMgr:getWindow("orxonox/MouseControlsButton"), 13 ["function"] = P.ControlsMouseControlsButton_clicked 14 } 15 P.buttonList[1] = item 16 17 local item = { 18 ["button"] = winMgr:getWindow("orxonox/KeybindingsButton"), 19 ["function"] = P.ControlsKeyboardControlsButton_clicked 20 } 21 P.buttonList[2] = item 22 23 local item = { 24 ["button"] = winMgr:getWindow("orxonox/ControlsBackButton"), 25 ["function"] = P.ControlsBackButton_clicked 26 } 27 P.buttonList[3] = item 28 29 end 30 31 function P.onShow() 32 --indices to iterate through buttonlist 33 P.oldindex = -2 34 P.index = -1 35 end 5 36 6 37 function P.ControlsMouseControlsButton_clicked(e) … … 16 47 end 17 48 49 function P.onKeyPressed() 50 buttonIteratorHelper(P.buttonList, code, P, 3, 1) 51 end 52 18 53 return P 19 54
Note: See TracChangeset
for help on using the changeset viewer.