Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2011, 12:42:28 PM (13 years ago)
Author:
landauf
Message:

more improvements for keyboard control of menus:

  • added setSelectionNear(r, c) function which tries to select the button closest to the given row/column
  • no initialization required anymore, the button-table grows dynamically if new buttons are inserted
File:
1 edited

Legend:

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

    r7926 r7928  
    1010    P.multiplayerMode = "startClient"
    1111
    12     --button are arranged in a 2x2 matrix, the lower items are both the back button
    13     P:initButtons(2, 3)
    14 
     12    --button are arranged in a 3x2 matrix, Join and Host buttons are in the upper left and middle, the back button in the lower right of the table
    1513    P:setButton(1, 1, {
    1614            ["button"] = winMgr:getWindow("orxonox/MultiplayerJoinButton"),
Note: See TracChangeset for help on using the changeset viewer.