Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2011, 1:10:38 AM (14 years ago)
Author:
landauf
Message:
  • the "back" button of MultiplayerMenu and SettingsMenu now fills the whole row at the bottom, so it can be accessed from both columns by pressing 'down'
  • added keyboard support for KeyBindMenu, MiscConfigMenu, and MouseControlsMenu
Location:
code/branches/usability/data/gui/scripts
Files:
5 edited

Legend:

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

    r7403 r7924  
    100100    local funct = luaState:createLuaFunctor("KeyBindMenu.callback()")
    101101    orxonox.KeyBinderManager:getInstance():registerKeybindCallback(funct)
     102
     103    P:initButtons(1, 1)
     104    P:setButton(1, 1, {
     105            ["button"] = winMgr:getWindow("orxonox/KeyBindBackButton"),
     106            ["callback"]  = P.KeyBindBackButton_clicked
     107    })
    102108end
    103109
  • code/branches/usability/data/gui/scripts/MiscConfigMenu.lua

    r7403 r7924  
    8585    P.createLines()
    8686
     87    P:initButtons(1, 1)
     88    P:setButton(1, 1, {
     89            ["button"] = winMgr:getWindow("orxonox/MiscConfigMenu/MiscConfigBackButton"),
     90            ["callback"]  = P.MiscConfigBackButton_clicked
     91    })
    8792end
    8893
  • code/branches/usability/data/gui/scripts/MouseControlsMenu.lua

    r6746 r7924  
    3232        invert_active = false
    3333    end
     34
     35    P:initButtons(1, 1)
     36    P:setButton(1, 1, {
     37            ["button"] = winMgr:getWindow("orxonox/MouseControlsBackButton"),
     38            ["callback"]  = P.MouseControlsBackButton_clicked
     39    })
    3440end
    3541
  • code/branches/usability/data/gui/scripts/MultiplayerMenu.lua

    r7922 r7924  
    1010    P.multiplayerMode = "startClient"
    1111
    12     --button are arranged in a 2x2 matrix, the left lower item is nil
     12    --button are arranged in a 2x2 matrix, the lower items are both the back button
    1313    P:initButtons(2, 2)
    1414
     
    2323    })
    2424
    25     P:setButton(2, 2, {
     25    P:setButton(2, 1, {
    2626            ["button"] = winMgr:getWindow("orxonox/MultiplayerBackButton"),
    2727            ["callback"]  = P.MultiplayerBackButton_clicked
    2828    })
     29
     30    P:setButton(2, 2, P:getButton(2, 1))
    2931end
    3032
  • code/branches/usability/data/gui/scripts/SettingsMenu.lua

    r7922 r7924  
    3333            ["callback"]  = P.SettingsBackButton_clicked
    3434    })
     35
     36    P:setButton(4, 2, P:getButton(4, 1))
    3537end
    3638
Note: See TracChangeset for help on using the changeset viewer.