- Timestamp:
- Feb 20, 2011, 12:47:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/GraphicsMenu.lua
r7801 r7922 3 3 local P = createMenuSheet("GraphicsMenu") 4 4 5 P.buttonList = {}6 5 P.schemeList = {"TaharezGreen", "Orxonox"} 7 8 function P.onShow()9 --indices to iterate through buttonlist (trivial in this menu sheet)10 P.oldindex = -211 P.index = -112 end13 6 14 7 function P.onLoad() … … 93 86 block = false 94 87 95 local item = { 88 P:initButtons(1, 1) 89 P:setButton(1, 1, { 96 90 ["button"] = winMgr:getWindow("orxonox/GraphicsBackButton"), 97 ["function"] = P.GraphicsBackButton_clicked 98 } 99 P.buttonList[1] = item 91 ["callback"] = P.GraphicsBackButton_clicked 92 }) 100 93 101 94 local dropbox = winMgr:getWindow("orxonox/ThemeDropBox") … … 233 226 end 234 227 235 function P.onKeyPressed()236 buttonIteratorHelper(P.buttonList, code, P, 1, 1)237 end238 239 228 return P 240 229
Note: See TracChangeset
for help on using the changeset viewer.