Make the stepsize 10 for experience work.

This commit is contained in:
Mark de Wever 2008-08-06 15:19:08 +00:00
parent 5a454f874d
commit 6f4b9e9432
2 changed files with 5 additions and 5 deletions

View file

@ -429,10 +429,9 @@
id = "experience_modifier"
definition = "default"
# the values should all be times 10
minimum_value = 3
maximum_value = 20
step_size = 1
minimum_value = 30
maximum_value = 200
step_size = 10
[/slider]
[/column]

View file

@ -36,7 +36,8 @@ public:
void set_value(const int value);
/** Inherited from tinteger_selector_. */
int get_value() const { return minimum_value_ + get_item_position(); }
int get_value() const
{ return minimum_value_ + get_item_position() * get_step_size(); }
/** Inherited from tinteger_selector_. */
void set_minimum_value(const int minimum_value);