Skip to content
Snippets Groups Projects
Commit a8e0265d authored by DarkGod's avatar DarkGod
Browse files

% are %

parent 07b75944
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment