Changeset 7689 for code/trunk/data/gui/scripts/CreditsMenu.lua
- Timestamp:
- Dec 1, 2010, 3:00:19 PM (13 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/CreditsMenu.lua
r6746 r7689 2 2 3 3 local P = createMenuSheet("CreditsMenu") 4 5 P.buttonList = {} 6 7 function P.onLoad() 8 local item = { 9 ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), 10 ["function"] = P.CreditsBackButton_clicked 11 } 12 P.buttonList[1] = item 13 end 14 15 function P.onShow() 16 --indices to iterate through buttonlist 17 P.oldindex = -2 18 P.index = -1 19 end 4 20 5 21 function P.CreditsBackButton_clicked(e) … … 7 23 end 8 24 25 function P.onKeyPressed() 26 buttonIteratorHelper(P.buttonList, code, P, 1, 1) 27 end 28 9 29 return P 10 30
Note: See TracChangeset
for help on using the changeset viewer.