shift-click in GUI to jump 5 increments
This commit is contained in:
@@ -43,8 +43,8 @@ public class OptionIntegerWidget implements IOptionWidget {
|
||||
screen.drawCenteredString(fontRenderer, Integer.toString(option.value), xOffset + x + width - 20 - numWidth / 2, yOffset + y + 5, numColor);
|
||||
}
|
||||
|
||||
public void onAction(int buttonId) {
|
||||
if (buttonId == idDecrement) option.decrement();
|
||||
if (buttonId == idIncrement) option.increment();
|
||||
public void onAction(int buttonId, boolean shiftPressed) {
|
||||
if (buttonId == idDecrement) option.decrement(shiftPressed ? 5 :1);
|
||||
if (buttonId == idIncrement) option.increment(shiftPressed ? 5 :1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user