Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 24, 2018, 1:05:32 AM (6 years ago)
Author:
landauf
Message:

updated Settings.lua and all sub-menus to cegui 0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/data/gui/scripts/SettingsMenu.lua

    r8351 r11800  
    88    --buttons are arranged in a 4x2 matrix.
    99    P:setButton(1, 2, {
    10             ["button"] = winMgr:getWindow("orxonox/SettingsMenu/GraphicsButton"),
     10            ["button"] = P.window:getChild("SettingsWindow/GraphicsButton"),
    1111            ["callback"]  = P.SettingsGraphicsButton_clicked
    1212    })
    1313
    1414    P:setButton(2, 2, {
    15             ["button"] = winMgr:getWindow("orxonox/SettingsMenu/AudioButton"),
     15            ["button"] = P.window:getChild("SettingsWindow/AudioButton"),
    1616            ["callback"]  = P.SettingsAudioButton_clicked
    1717    })
    1818
    1919    P:setButton(3, 1, {
    20             ["button"] = winMgr:getWindow("orxonox/SettingsMenu/ControlsButton"),
     20            ["button"] = P.window:getChild("SettingsWindow/ControlsButton"),
    2121            ["callback"]  = P.SettingsControlsButton_clicked
    2222    })
    2323
    2424    P:setButton(3, 2, {
    25             ["button"] = winMgr:getWindow("orxonox/SettingsMenu/MiscellaneousButton"),
     25            ["button"] = P.window:getChild("SettingsWindow/MiscellaneousButton"),
    2626            ["callback"]  = P.SettingsMiscellaneousButton_clicked
    2727    })
    2828
    2929    P:setButton(4, 1, {
    30             ["button"] = winMgr:getWindow("orxonox/SettingsMenu/SettingsBackButton"),
     30            ["button"] = P.window:getChild("SettingsBackButton"),
    3131            ["callback"]  = P.SettingsBackButton_clicked
    3232    })
     
    3636
    3737function P.onShow()
    38     local window = winMgr:getWindow("orxonox/SettingsMenu/AudioButton")
     38    local window = P.window:getChild("SettingsWindow/AudioButton")
    3939    if not orxonox.SoundManager:exists() then
    4040        window:setProperty("Disabled", "true")
Note: See TracChangeset for help on using the changeset viewer.