Changeset 7922 for code/branches/usability/data/gui/scripts/AudioMenu.lua
- Timestamp:
- Feb 20, 2011, 12:47:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/AudioMenu.lua
r7689 r7922 2 2 3 3 local P = createMenuSheet("AudioMenu") 4 5 P.buttonList = {}6 7 function P.onShow()8 P.oldindex = -29 P.index = -110 end11 4 12 5 function P.onLoad() … … 50 43 end 51 44 52 local item = { 45 P:initButtons(1, 1) 46 P:setButton(1, 1, { 53 47 ["button"] = winMgr:getWindow("orxonox/AudioBackButton"), 54 ["function"] = P.AudioBackButton_clicked 55 } 56 P.buttonList[1] = item 48 ["callback"] = P.AudioBackButton_clicked 49 }) 57 50 end 58 51 … … 185 178 end 186 179 187 function P.onKeyPressed()188 buttonIteratorHelper(P.buttonList, code, P, 1, 1)189 end190 191 180 return P 192 181
Note: See TracChangeset
for help on using the changeset viewer.