Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menu/data/gui/scripts/CreditsMenu.lua @ 7670

Last change on this file since 7670 was 7663, checked in by konrad, 14 years ago

key handling in some menu sheets has been added.

  • Property svn:eol-style set to native
File size: 515 bytes
Line 
1-- CreditsMenu.lua
2
3local 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    P.oldindex = -2
17    P.index = -1
18end
19
20function P.CreditsBackButton_clicked(e)
21    hideMenuSheet(P.name)
22end
23
24function P.onKeyPressed() 
25    buttonIteratorHelper(P.buttonList, code, P, 1, 1)
26end
27
28return P
29
Note: See TracBrowser for help on using the repository browser.