Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2010, 3:33:26 PM (14 years ago)
Author:
konrad
Message:

key handling in some menu sheets has been added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/menu/data/gui/scripts/CreditsMenu.lua

    r6746 r7663  
    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    P.oldindex = -2
     17    P.index = -1
     18end
    419
    520function P.CreditsBackButton_clicked(e)
     
    722end
    823
     24function P.onKeyPressed()
     25    buttonIteratorHelper(P.buttonList, code, P, 1, 1)
     26end
     27
    928return P
    1029
Note: See TracChangeset for help on using the changeset viewer.