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/MultiplayerMenu.lua

    r7663 r7687  
    88    P.multiplayerMode = "startClient"
    99
     10    --button are arranged in a 2x2 matrix, the left lower item is nil
    1011    local item = {
    1112            ["button"] = winMgr:getWindow("orxonox/MultiplayerJoinButton2"),
    12             ["function"]  = P.MultiplayerJoinButton_clicked
     13            ["function"]  = P.MultiplayerJoinButton2_clicked
    1314    }
    1415    P.buttonList[1] = item
     
    1617    local item = {
    1718            ["button"] = winMgr:getWindow("orxonox/MultiplayerHostButton2"),
    18             ["function"]  = P.MultiplayerHostButton_clicked
     19            ["function"]  = P.MultiplayerHostButton2_clicked
    1920    }
    2021    P.buttonList[2] = item
     
    3031function P.onShow()
    3132    P.showServerList()
     33
     34    --indices to iterate through buttonlist
    3235    P.oldindex = -2
    3336    P.index = -1
     
    133136
    134137function P.onKeyPressed()
    135     cout(0,code)
    136138    buttonIteratorHelper(P.buttonList, code, P, 2, 2)
    137     --indexTester(P.buttonList,code,P,2,3)
    138139end
    139140
Note: See TracChangeset for help on using the changeset viewer.