aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-08-04 15:27:06 +0900
committersyeyoung <cyong06@naver.com>2021-08-04 15:27:06 +0900
commit708c5d2f75060c17ffc7864c53b6ed7f15df3d7d (patch)
tree1deb00f0bac0e854732a32c42ae8013fb1b4ed6d /src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java
parentecf7ff8db99a178dec09829abcc929a882a6bc01 (diff)
downloadSkyblock-Dungeons-Guide-708c5d2f75060c17ffc7864c53b6ed7f15df3d7d.tar.gz
Skyblock-Dungeons-Guide-708c5d2f75060c17ffc7864c53b6ed7f15df3d7d.tar.bz2
Skyblock-Dungeons-Guide-708c5d2f75060c17ffc7864c53b6ed7f15df3d7d.zip
- Fix Edit not working
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java
index 3c223d84..4d1e6fb7 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java
@@ -75,6 +75,11 @@ public class MToggleButton extends MPanel {
}
@Override
+ public Dimension getPreferredSize() {
+ return new Dimension(40,15);
+ }
+
+ @Override
public void mouseClicked(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int mouseButton) {
if (onToggle != null && lastAbsClip.contains(absMouseX, absMouseY) && getTooltipsOpen() == 0) {
enabled = !enabled;