Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2010, 2:04:54 PM (14 years ago)
Author:
konrad
Message:

—function to iterate throgh a menusheet by using arrowkeys is added

File:
1 edited

Legend:

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

    r7663 r7687  
    88function P.onLoad()
    99    --"Gameplay" and "Multiplayer Options" are not integrated in the list
    10    
     10    --buttons are arranged in a 4x2 matrix. The lower-right element is not in the matrix!
    1111    local item = {
    1212            ["button"] = winMgr:getWindow("orxonox/SettingsMenu/GraphicsButton"),
     
    4343
    4444function P.onShow()
     45    --indices to iterate through buttonlist
    4546    P.oldindex = 3
    4647    P.index = 2
     
    7677
    7778function P.onKeyPressed()
    78     cout(0,code)
    7979    buttonIteratorHelper(P.buttonList, code, P, 4, 2)
    80     --indexTester(P.buttonList,code,P,4,2)
    8180end
    8281
Note: See TracChangeset for help on using the changeset viewer.