Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2010, 3:00:19 PM (13 years ago)
Author:
dafrick
Message:

Merging menu branch to trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/gui/scripts/CreditsMenu.lua

    r6746 r7689  
    22
    33local P = createMenuSheet("CreditsMenu")
     4
     5P.buttonList = {}
     6
     7function P.onLoad()
     8    local item = {
     9            ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"),
     10            ["function"]  = P.CreditsBackButton_clicked
     11    }
     12    P.buttonList[1] = item
     13end
     14
     15function P.onShow()
     16    --indices to iterate through buttonlist
     17    P.oldindex = -2
     18    P.index = -1
     19end
    420
    521function P.CreditsBackButton_clicked(e)
     
    723end
    824
     25function P.onKeyPressed()
     26    buttonIteratorHelper(P.buttonList, code, P, 1, 1)
     27end
     28
    929return P
    1030
Note: See TracChangeset for help on using the changeset viewer.