aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-07-25 20:37:22 +0900
committersyeyoung <cyong06@naver.com>2021-07-25 20:37:22 +0900
commita6b8e47c879ce5a1c69d0552cdb26a3b3e95e4b6 (patch)
tree2eab5dc84e6dcaf426ef100d7dfd0a2f0dd93771 /src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java
parenta7b6db18ec1471ba604df91652741a04bc436fa2 (diff)
downloadSkyblock-Dungeons-Guide-a6b8e47c879ce5a1c69d0552cdb26a3b3e95e4b6.tar.gz
Skyblock-Dungeons-Guide-a6b8e47c879ce5a1c69d0552cdb26a3b3e95e4b6.tar.bz2
Skyblock-Dungeons-Guide-a6b8e47c879ce5a1c69d0552cdb26a3b3e95e4b6.zip
new config.
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java
index ecd94b07..215c7c6d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MScrollBar.java
@@ -37,6 +37,10 @@ public class MScrollBar extends MPanel {
@Getter
private int current;
+ @Getter
+ @Setter
+ private int width = 10;
+
public void addToCurrent(int dv) {
int current2 = current + dv;
@@ -48,7 +52,7 @@ public class MScrollBar extends MPanel {
@Override
public Dimension getPreferredSize() {
- return new Dimension(axis == Axis.X ? -1 : 20, axis == Axis.Y ? -1 : 20);
+ return new Dimension(axis == Axis.X ? -1 : width, axis == Axis.Y ? -1 : width);
}
@Getter