GE Lua Documentation

Press F to search!

settingsApplyAll

Definition


-- @/lua/ge/client/postFx.lua:448

M.settingsApplyAll = function()
  -- Apply settings which control if effects are on/off altogether.
  TorqueScriptLua.setVar("$PostFXManager::Settings::EnablePostFX", TorqueScriptLua.getBoolVar("$PostFX::Enabled"))

  -- Apply settings should save the values in the system to the
  -- the preset structure ($PostFXManager::Settings::*)

  -- SSAO Settings
  settingsApplySSAO()
  -- HDR settings
  settingsApplyHDR()
  -- Light rays settings
  settingsApplyLightRays()
  -- DOF
  settingsApplyDOF()

  -- log('I','postfx', '% - PostFX Manager - All Settings applied to $PostFXManager::Settings')
end

Callers

@/lua/ge/client/postFx.lua
    -- Apply the current settings to the preset
    M.settingsApplyAll()
  end