Changeset 8034 for code/branches/usability/data/gui
- Timestamp:
- Mar 6, 2011, 3:29:16 PM (14 years ago)
- Location:
- code/branches/usability/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/layouts/GraphicsMenu.layout
r8019 r8034 181 181 <Property Name="MaxEditTextLength" Value="1073741823" /> 182 182 </Window> 183 <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/M odelLodCheckbox" >184 <Property Name="Text" Value="Enable m odelLOD" />183 <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/MeshLodCheckbox" > 184 <Property Name="Text" Value="Enable mesh LOD" /> 185 185 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 186 186 <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.44,0},{0.5,0},{0.51,0}}" /> -
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.