shift-click in GUI to jump 5 increments
This commit is contained in:
@@ -14,13 +14,13 @@ public class OptionDouble {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public void increment() {
|
||||
value += step;
|
||||
public void increment(int times) {
|
||||
value += times * step;
|
||||
if (value > max) value = max;
|
||||
}
|
||||
|
||||
public void decrement() {
|
||||
value -= step;
|
||||
public void decrement(int times) {
|
||||
value -= times * step;
|
||||
if (value < min) value = min;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,13 +14,13 @@ public class OptionInteger {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public void increment() {
|
||||
value += step;
|
||||
public void increment(int times) {
|
||||
value += times * step;
|
||||
if (value > max) value = max;
|
||||
}
|
||||
|
||||
public void decrement() {
|
||||
value -= step;
|
||||
public void decrement(int times) {
|
||||
value -= times * step;
|
||||
if (value < min) value = min;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user