Page 1 of 1

[0.15.11] Integer setting with no upper bound

Posted: Wed May 17, 2017 7:28 pm
by Neemys
When using the new mods settings ingame, if a mod set an integer entry with a minimum but no maximum like :

Code: Select all

data:extend({
	{
		type = "int-setting",
		name = ""my-wonderful-setting-name,
		setting_type = "startup",
		minimum_value = 0,
		default_value = 100,
		order = "a-a"
	}
})
And an user set a wrong value, the message in the tooltip say :
Value out of range: valid values are 0 through -1 inclusive.
Shouldn't the message only state the minimum bound when no upper bound are set ? Displaying -1 as upper bound is misleading IMO.

Re: [0.15.11] Integer setting with no upper bound

Posted: Wed May 17, 2017 10:13 pm
by Rseding91
Ah, that's just a case of the message converting the display value wrong. I'll fix it.