Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2011, 3:24:55 AM (14 years ago)
Author:
landauf
Message:

greatly improved keyboard controlled navigation in menus with sparse button tables (deactivated buttons, deactivated rows or columns, holes, randomly placed buttons, …)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/data/gui/scripts/MultiplayerMenu.lua

    r7924 r7926  
    1111
    1212    --button are arranged in a 2x2 matrix, the lower items are both the back button
    13     P:initButtons(2, 2)
     13    P:initButtons(2, 3)
    1414
    1515    P:setButton(1, 1, {
     
    2323    })
    2424
    25     P:setButton(2, 1, {
     25    P:setButton(2, 3, {
    2626            ["button"] = winMgr:getWindow("orxonox/MultiplayerBackButton"),
    2727            ["callback"]  = P.MultiplayerBackButton_clicked
    2828    })
    29 
    30     P:setButton(2, 2, P:getButton(2, 1))
    3129end
    3230
Note: See TracChangeset for help on using the changeset viewer.