diff options
author | syeyoung <cyoung06@naver.com> | 2021-11-26 14:42:08 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2021-11-26 14:42:08 +0900 |
commit | 66185662891ff423c2cc2c762b780c96e1ad6d35 (patch) | |
tree | 08992ca3acc66b8d6e8aee6ad201fecde95f5058 /src/main/java/kr/syeyoung | |
parent | c61223d4f4d233e14780547393fd4bb9a0efdd4d (diff) | |
download | Skyblock-Dungeons-Guide-66185662891ff423c2cc2c762b780c96e1ad6d35.tar.gz Skyblock-Dungeons-Guide-66185662891ff423c2cc2c762b780c96e1ad6d35.tar.bz2 Skyblock-Dungeons-Guide-66185662891ff423c2cc2c762b780c96e1ad6d35.zip |
- Ctrl press to add or subtract 5
Diffstat (limited to 'src/main/java/kr/syeyoung')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MIntegerSelectionButton.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MIntegerSelectionButton.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MIntegerSelectionButton.java index 9f5ac258..a80b0e7a 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MIntegerSelectionButton.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MIntegerSelectionButton.java @@ -21,6 +21,7 @@ package kr.syeyoung.dungeonsguide.gui.elements; import kr.syeyoung.dungeonsguide.gui.MPanel; import lombok.Getter; import lombok.Setter; +import org.lwjgl.input.Keyboard; import java.awt.*; @@ -56,7 +57,7 @@ public class MIntegerSelectionButton extends MPanel { dec.setOnActionPerformed(new Runnable() { @Override public void run() { - data--; + data -= (Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) ? 5 : 1); updateSelected(); onUpdate.run(); } @@ -64,7 +65,7 @@ public class MIntegerSelectionButton extends MPanel { inc.setOnActionPerformed(new Runnable() { @Override public void run() { - data ++; + data += (Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) ? 5 : 1); updateSelected(); onUpdate.run(); } |