Changeset 7687 for code/branches/menu/data/gui/scripts/GraphicsMenu.lua
- Timestamp:
- Dec 1, 2010, 2:04:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/gui/scripts/GraphicsMenu.lua
r6746 r7687 2 2 3 3 local P = createMenuSheet("GraphicsMenu") 4 5 P.buttonList = {} 6 7 function P.onShow() 8 --indices to iterate through buttonlist (trivial in this menu sheet) 9 P.oldindex = -2 10 P.index = -1 11 end 4 12 5 13 function P.onLoad() … … 83 91 scrollbar_active = false 84 92 block = false 93 94 local item = { 95 ["button"] = winMgr:getWindow("orxonox/GraphicsBackButton"), 96 ["function"] = P.GraphicsBackButton_clicked 97 } 98 P.buttonList[1] = item 85 99 end 86 100 … … 195 209 end 196 210 211 function P.onKeyPressed() 212 buttonIteratorHelper(P.buttonList, code, P, 1, 1) 213 end 214 197 215 return P 198 216
Note: See TracChangeset
for help on using the changeset viewer.