Code: Select all
data:extend({
{type = "int-setting", name = "Example-1", setting_type = "runtime-per-user", default_value = 6, minimal_value = 1, maximal_value = 40}
})
- minimal value is 1
- maximal value is 40
- Load the game with new setting
- Change the setting in a game
- The setting ignores minimal value, maximal value in the game
- I checked it in single-player only
- Also, the value resets to 0 when I entered a float number
- I didn't check other properties