diff --git a/game/engines/default/engine/dialogs/VideoOptions.lua b/game/engines/default/engine/dialogs/VideoOptions.lua index 33dd2c3203057bc8a065ad073e74dd8e7ce28458..a74ed379df2235b3ba65e50f2b15062b9a0fdd39 100644 --- a/game/engines/default/engine/dialogs/VideoOptions.lua +++ b/game/engines/default/engine/dialogs/VideoOptions.lua @@ -75,7 +75,7 @@ function _M:generateList() local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"If you have a very high DPI screen you may want to raise this value. Requires a restart to take effect.#WHITE#"} list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Screen Zoom#WHITE##{normal}#", status=function(item) - return tostring(config.settings.screen_zoom * 100) + return tostring(config.settings.screen_zoom * 100).."%" end, fct=function(item) game:registerDialog(GetQuantitySlider.new("Enter Zoom %", "From 50 to 400", math.floor(config.settings.screen_zoom * 100), 50, 400, 5, function(qty) qty = util.bound(qty, 50, 400) @@ -100,7 +100,7 @@ function _M:generateList() local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Controls the particle effects density.\nThis option allows to change the density of the many particle effects in the game.\nIf the game is slow when displaying spell effects try to lower this setting.#WHITE#"} list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Particle effects density#WHITE##{normal}#", status=function(item) - return tostring(config.settings.particles_density) + return tostring(config.settings.particles_density).."%" end, fct=function(item) game:registerDialog(GetQuantitySlider.new("Enter density", "From 0 to 100", config.settings.particles_density, 0, 100, 1, function(qty) game:saveSettings("particles_density", ("particles_density = %d\n"):format(qty)) @@ -121,7 +121,7 @@ function _M:generateList() local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Apply a global scaling to all fonts.\nApplies after restarting the game"} list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Font Scale#WHITE##{normal}#", status=function(item) - return tostring(config.settings.font_scale) + return tostring(config.settings.font_scale).."%" end, fct=function(item) game:registerDialog(GetQuantity.new("Font Scale %", "From 50 to 300", config.settings.font_scale, 300, function(qty) qty = util.bound(qty, 50, 300)