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

    r11795 r11800  
    1515    musicmute = soundMgr:getMute(orxonox.SoundType.Music)
    1616    effectsmute = soundMgr:getMute(orxonox.SoundType.Effects)
    17     masterscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MasterScrollbar"),"CEGUI::Scrollbar")
    18     musicscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/MusicScrollbar"),"CEGUI::Scrollbar")
    19     effectsscrollbarwindow = tolua.cast(winMgr:getWindow("orxonox/EffectsScrollbar"),"CEGUI::Scrollbar")
    20     mastermutewindow = tolua.cast(winMgr:getWindow("orxonox/MasterCheckbox"),"CEGUI::Checkbox")
    21     musicmutewindow = tolua.cast(winMgr:getWindow("orxonox/MusicCheckbox"),"CEGUI::Checkbox")
    22     effectsmutewindow = tolua.cast(winMgr:getWindow("orxonox/EffectsCheckbox"),"CEGUI::Checkbox")
     17    masterscrollbarwindow = tolua.cast(P.window:getChild("AudioWindow/MasterVolume/MasterScrollbar"),"CEGUI::Scrollbar")
     18    musicscrollbarwindow = tolua.cast(P.window:getChild("AudioWindow/MusicVolume/MusicScrollbar"),"CEGUI::Scrollbar")
     19    effectsscrollbarwindow = tolua.cast(P.window:getChild("AudioWindow/EffectsVolume/EffectsScrollbar"),"CEGUI::Scrollbar")
     20    mastermutewindow = tolua.cast(P.window:getChild("AudioWindow/MasterVolume/MasterCheckbox"),"CEGUI::ToggleButton")
     21    musicmutewindow = tolua.cast(P.window:getChild("AudioWindow/MusicVolume/MusicCheckbox"),"CEGUI::ToggleButton")
     22    effectsmutewindow = tolua.cast(P.window:getChild("AudioWindow/EffectsVolume/EffectsCheckbox"),"CEGUI::ToggleButton")
    2323    masterscrollbarwindow:setScrollPosition(mastervolume)
    2424    musicscrollbarwindow:setScrollPosition(musicvolume)
     
    2828    effectsmutewindow:setSelected(effectsmute)
    2929    choice = "Default"
    30     listboxwindow = winMgr:getWindow("orxonox/AudioThemeListbox")
     30    listboxwindow = P.window:getChild("AudioWindow/AudioTheme/AudioThemeListbox")
    3131    local themeList = {}
    3232    table.insert(themeList, "Default")
     
    5353
    5454    P:setButton(1, 1, {
    55             ["button"] = winMgr:getWindow("orxonox/AudioBackButton"),
     55            ["button"] = P.window:getChild("AudioBackButton"),
    5656            ["callback"]  = P.AudioBackButton_clicked
    5757    })
Note: See TracChangeset for help on using the changeset viewer.