Index: game/modules/tome/load.lua =================================================================== --- game/modules/tome/load.lua (revision 4706) +++ game/modules/tome/load.lua (working copy) @@ -61,6 +61,7 @@ end if config.settings.tome.gfx.tiles == "mushroom" then config.settings.tome.gfx.tiles="shockbolt" end if type(config.settings.tome.weather_effects) == "nil" then config.settings.tome.weather_effects = true end +if type(config.settings.tome.blur_effects) == "nil" then config.settings.tome.blur_effects = true end if type(config.settings.tome.smooth_fov) == "nil" then config.settings.tome.smooth_fov = true end if type(config.settings.tome.daynight) == "nil" then config.settings.tome.daynight = true end if type(config.settings.tome.hotkey_icons) == "nil" then config.settings.tome.hotkey_icons = true end Index: game/modules/tome/dialogs/GameOptions.lua =================================================================== --- game/modules/tome/dialogs/GameOptions.lua (revision 4706) +++ game/modules/tome/dialogs/GameOptions.lua (working copy) @@ -131,6 +131,15 @@ self.c_list:drawItem(item) end,} + local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Enables or disables effects that blur the screen.\nDisabling it should gain a performance increase while under the effect of confusion, invisibility, etc.#WHITE#"} + list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Blur effects#WHITE##{normal}#", status=function(item) + return tostring(config.settings.tome.blur_effects and "enabled" or "disabled") + end, fct=function(item) + config.settings.tome.blur_effects = not config.settings.tome.blur_effects + game:saveSettings("tome.blur_effects", ("tome.blur_effects = %s\n"):format(tostring(config.settings.tome.blur_effects))) + self.c_list:drawItem(item) + end,} + local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Select the interface look. Metal is the default one. Simple is basic but takes less screen space.\nYou must restart the game for the change to take effect."} list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Interface Style#WHITE##{normal}#", status=function(item) return tostring(config.settings.tome.ui_theme2):capitalize() Index: game/modules/tome/class/Player.lua =================================================================== --- game/modules/tome/class/Player.lua (revision 4706) +++ game/modules/tome/class/Player.lua (working copy) @@ -281,14 +281,14 @@ end -- Blur shader - if self:attr("confused") then game.fbo_shader:setUniform("blur", 2) + if self:attr("confused") and config.settings.tome.blur_effects then game.fbo_shader:setUniform("blur", 2) -- elseif game:hasDialogUp() then game.fbo_shader:setUniform("blur", 3) else game.fbo_shader:setUniform("blur", 0) -- Disable end -- Moving Blur shader - if self:attr("invisible") then game.fbo_shader:setUniform("motionblur", 3) - elseif self:attr("lightning_speed") then game.fbo_shader:setUniform("motionblur", 2) + if self:attr("invisible") and config.settings.tome.blur_effects then game.fbo_shader:setUniform("motionblur", 3) + elseif self:attr("lightning_speed") and config.settings.tome.blur_effects then game.fbo_shader:setUniform("motionblur", 2) else game.fbo_shader:setUniform("motionblur", 0) -- Disable end end