Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/CreditsMenu.lua @ 7715

Last change on this file since 7715 was 7689, checked in by dafrick, 14 years ago

Merging menu branch to trunk.

  • Property svn:eol-style set to native
File size: 559 bytes
RevLine 
[6363]1-- CreditsMenu.lua
2
[6746]3local P = createMenuSheet("CreditsMenu")
[6363]4
[7689]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
20
[6363]21function P.CreditsBackButton_clicked(e)
[6746]22    hideMenuSheet(P.name)
[6363]23end
24
[7689]25function P.onKeyPressed() 
26    buttonIteratorHelper(P.buttonList, code, P, 1, 1)
27end
28
[6363]29return P
30
Note: See TracBrowser for help on using the repository browser.