- Timestamp:
- Feb 24, 2018, 1:05:32 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cegui0.8_ogre1.9/data/gui/scripts/AudioMenu.lua
r11795 r11800 15 15 musicmute = soundMgr:getMute(orxonox.SoundType.Music) 16 16 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") 23 23 masterscrollbarwindow:setScrollPosition(mastervolume) 24 24 musicscrollbarwindow:setScrollPosition(musicvolume) … … 28 28 effectsmutewindow:setSelected(effectsmute) 29 29 choice = "Default" 30 listboxwindow = winMgr:getWindow("orxonox/AudioThemeListbox")30 listboxwindow = P.window:getChild("AudioWindow/AudioTheme/AudioThemeListbox") 31 31 local themeList = {} 32 32 table.insert(themeList, "Default") … … 53 53 54 54 P:setButton(1, 1, { 55 ["button"] = winMgr:getWindow("orxonox/AudioBackButton"),55 ["button"] = P.window:getChild("AudioBackButton"), 56 56 ["callback"] = P.AudioBackButton_clicked 57 57 })
Note: See TracChangeset
for help on using the changeset viewer.