Changeset 9051 for code/trunk/data
- Timestamp:
- Mar 21, 2012, 9:32:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified code/trunk/data/gui/scripts/GraphicsMenu.lua ¶
r8079 r9051 34 34 35 35 -- resolution combobox 36 local resolutionCombobox = winMgr:getWindow("orxonox/Display/Resolution/Combobox")37 CEGUI.toCombobox(resolutionCombobox):setReadOnly(true)36 local resolutionCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/Resolution/Combobox")) 37 resolutionCombobox:setReadOnly(true) 38 38 39 39 for k,v in pairs(P.resolutionList) do … … 44 44 45 45 -- themes combobox 46 local themeCombobox = winMgr:getWindow("orxonox/Display/Theme/Combobox")47 CEGUI.toCombobox(themeCombobox):setReadOnly(true)46 local themeCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/Theme/Combobox")) 47 themeCombobox:setReadOnly(true) 48 48 49 49 for k,v in pairs(P.schemeList) do … … 54 54 55 55 -- fsaa combobox 56 local fsaaCombobox = winMgr:getWindow("orxonox/Display/More/FSAA")57 CEGUI.toCombobox(fsaaCombobox):setReadOnly(true)56 local fsaaCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/More/FSAA")) 57 fsaaCombobox:setReadOnly(true) 58 58 59 59 for k,v in pairs(P.fsaaList) do … … 64 64 65 65 -- particle lod combobox 66 local particleLodCombobox = winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")67 CEGUI.toCombobox(particleLodCombobox):setReadOnly(true)66 local particleLodCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")) 67 particleLodCombobox:setReadOnly(true) 68 68 69 69 for k,v in pairs(P.particleLodList) do … … 91 91 92 92 -- themes combobox 93 local themeCombobox = winMgr:getWindow("orxonox/Display/Theme/Combobox")93 local themeCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/Theme/Combobox")) 94 94 local currentTheme = orxonox.CommandExecutor:query("getConfig GUIManager guiScheme_") 95 95 … … 105 105 106 106 -- fsaa combobox 107 local fsaaCombobox = winMgr:getWindow("orxonox/Display/More/FSAA")107 local fsaaCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/More/FSAA")) 108 108 local currentFSAAMode = orxonox.GraphicsManager:getInstance():getFSAAMode() 109 109 … … 131 131 132 132 -- particle lod combobox 133 local particleLodCombobox = winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")133 local particleLodCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")) 134 134 local currentParticleLod = orxonox.CommandExecutor:query("getConfig GraphicsSettings particlesDetailLevel") 135 135 … … 173 173 174 174 -- resolution combobox 175 local resolutionCombobox = winMgr:getWindow("orxonox/Display/Resolution/Combobox")175 local resolutionCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/Resolution/Combobox")) 176 176 177 177 local currentWidth = orxonox.GraphicsManager:getInstance():getWindowWidth() … … 202 202 function P.updateResolutionEditboxes() 203 203 -- resolution combobox 204 local resolutionCombobox = winMgr:getWindow("orxonox/Display/Resolution/Combobox")204 local resolutionCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Display/Resolution/Combobox")) 205 205 206 206 local currentWidth = orxonox.GraphicsManager:getInstance():getWindowWidth() … … 397 397 398 398 -- particle lod 399 local particleLodCombobox = winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")399 local particleLodCombobox = CEGUI.toCombobox(winMgr:getWindow("orxonox/Settings/ParticleLodCombobox")) 400 400 local item = particleLodCombobox:getSelectedItem() 401 401 if item then
Note: See TracChangeset
for help on using the changeset viewer.