Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8034 for code/branches


Ignore:
Timestamp:
Mar 6, 2011, 3:29:16 PM (14 years ago)
Author:
landauf
Message:

renamed enableModelLoD config value as enableMeshLoD (also renamed it in the graphics menu) because thats technically more accurate (thanks to Oli for pointing this out)

Location:
code/branches/usability
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/data/gui/layouts/GraphicsMenu.layout

    r8019 r8034  
    181181                        <Property Name="MaxEditTextLength" Value="1073741823" />
    182182                    </Window>
    183                     <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/ModelLodCheckbox" >
    184                         <Property Name="Text" Value="Enable model LOD" />
     183                    <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/MeshLodCheckbox" >
     184                        <Property Name="Text" Value="Enable mesh LOD" />
    185185                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    186186                        <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  
    145145    end
    146146
    147     -- model lod checkbox
    148     local modelLodCheckbox = winMgr:getWindow("orxonox/Settings/ModelLodCheckbox")
    149     local hasModelLod = orxonox.CommandExecutor:query("getConfig GraphicsSettings enableModelLoD")
    150     if hasModelLod == "true" then
    151         hasModelLod = true
    152     elseif hasModelLod == "false" then
    153         hasModelLod = false
    154     end
    155     CEGUI.toCheckbox(modelLodCheckbox):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)
    156156
    157157    -- motion blur checkbox
     
    403403    end
    404404
    405     -- model lod
    406     local modelLodCheckbox = winMgr:getWindow("orxonox/Settings/ModelLodCheckbox")
    407     orxonox.CommandExecutor:execute("config GraphicsSettings enableModelLoD " .. 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()))
    408408
    409409    -- motion blur
  • code/branches/usability/src/orxonox/graphics/Model.cc

    r7183 r8034  
    6060    void Model::setConfigValues()
    6161    {
    62         SetConfigValueExternal(bGlobalEnableLod_, "GraphicsSettings", "enableModelLoD", true)
     62        SetConfigValueExternal(bGlobalEnableLod_, "GraphicsSettings", "enableMeshLoD", true)
    6363            .description("Enable level of detail for models");
    6464    }
Note: See TracChangeset for help on using the changeset viewer.