Changeset 8034 for code/branches/usability/data/gui/scripts
- Timestamp:
- Mar 6, 2011, 3:29:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/GraphicsMenu.lua
r8026 r8034 145 145 end 146 146 147 -- m odellod checkbox148 local m odelLodCheckbox = winMgr:getWindow("orxonox/Settings/ModelLodCheckbox")149 local hasM odelLod = orxonox.CommandExecutor:query("getConfig GraphicsSettings enableModelLoD")150 if hasM odelLod == "true" then151 hasM odelLod = true152 elseif hasM odelLod == "false" then153 hasM odelLod = false154 end 155 CEGUI.toCheckbox(m odelLodCheckbox):setSelected(hasModelLod)147 -- mesh lod checkbox 148 local meshLodCheckbox = winMgr:getWindow("orxonox/Settings/MeshLodCheckbox") 149 local hasMeshLod = orxonox.CommandExecutor:query("getConfig GraphicsSettings enableMeshLoD") 150 if hasMeshLod == "true" then 151 hasMeshLod = true 152 elseif hasMeshLod == "false" then 153 hasMeshLod = false 154 end 155 CEGUI.toCheckbox(meshLodCheckbox):setSelected(hasMeshLod) 156 156 157 157 -- motion blur checkbox … … 403 403 end 404 404 405 -- m odellod406 local m odelLodCheckbox = winMgr:getWindow("orxonox/Settings/ModelLodCheckbox")407 orxonox.CommandExecutor:execute("config GraphicsSettings enableM odelLoD " .. tostring(CEGUI.toCheckbox(modelLodCheckbox):isSelected()))405 -- mesh lod 406 local meshLodCheckbox = winMgr:getWindow("orxonox/Settings/MeshLodCheckbox") 407 orxonox.CommandExecutor:execute("config GraphicsSettings enableMeshLoD " .. tostring(CEGUI.toCheckbox(meshLodCheckbox):isSelected())) 408 408 409 409 -- motion blur
Note: See TracChangeset
for help on using the changeset viewer.