Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2011, 3:29:16 PM (13 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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.