Changeset 8079 for code/trunk/data/gui/scripts/CreditsMenu.lua
- Timestamp:
- Mar 15, 2011, 9:47:11 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/CreditsMenu.lua
r7732 r8079 3 3 local P = createMenuSheet("CreditsMenu") 4 4 5 P.buttonList = {}6 5 P.scrollbarWidth = 13 7 6 8 7 function P.onLoad() 9 local item ={8 P:setButton(1, 1, { 10 9 ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), 11 ["function"] = P.CreditsBackButton_clicked 12 } 13 P.buttonList[1] = item 10 ["callback"] = P.CreditsBackButton_clicked 11 }) 14 12 end 15 13 16 14 function P.onShow() 17 --indices to iterate through buttonlist18 P.oldindex = -219 P.index = -120 21 15 local description = winMgr:getWindow("orxonox/CreditsText") 22 16 description:setProperty("HorzFormatting", "WordWrapLeftAligned") … … 33 27 end 34 28 35 function P.onKeyPressed()36 buttonIteratorHelper(P.buttonList, code, P, 1, 1)37 end38 39 29 return P 40 30
Note: See TracChangeset
for help on using the changeset viewer.