- 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/SettingsMenu.lua
r8351 r11800 8 8 --buttons are arranged in a 4x2 matrix. 9 9 P:setButton(1, 2, { 10 ["button"] = winMgr:getWindow("orxonox/SettingsMenu/GraphicsButton"),10 ["button"] = P.window:getChild("SettingsWindow/GraphicsButton"), 11 11 ["callback"] = P.SettingsGraphicsButton_clicked 12 12 }) 13 13 14 14 P:setButton(2, 2, { 15 ["button"] = winMgr:getWindow("orxonox/SettingsMenu/AudioButton"),15 ["button"] = P.window:getChild("SettingsWindow/AudioButton"), 16 16 ["callback"] = P.SettingsAudioButton_clicked 17 17 }) 18 18 19 19 P:setButton(3, 1, { 20 ["button"] = winMgr:getWindow("orxonox/SettingsMenu/ControlsButton"),20 ["button"] = P.window:getChild("SettingsWindow/ControlsButton"), 21 21 ["callback"] = P.SettingsControlsButton_clicked 22 22 }) 23 23 24 24 P:setButton(3, 2, { 25 ["button"] = winMgr:getWindow("orxonox/SettingsMenu/MiscellaneousButton"),25 ["button"] = P.window:getChild("SettingsWindow/MiscellaneousButton"), 26 26 ["callback"] = P.SettingsMiscellaneousButton_clicked 27 27 }) 28 28 29 29 P:setButton(4, 1, { 30 ["button"] = winMgr:getWindow("orxonox/SettingsMenu/SettingsBackButton"),30 ["button"] = P.window:getChild("SettingsBackButton"), 31 31 ["callback"] = P.SettingsBackButton_clicked 32 32 }) … … 36 36 37 37 function P.onShow() 38 local window = winMgr:getWindow("orxonox/SettingsMenu/AudioButton")38 local window = P.window:getChild("SettingsWindow/AudioButton") 39 39 if not orxonox.SoundManager:exists() then 40 40 window:setProperty("Disabled", "true")
Note: See TracChangeset
for help on using the changeset viewer.