diff options
author | syeyoung <cyoung06@naver.com> | 2023-01-24 16:10:26 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-01-24 16:10:26 +0900 |
commit | f67ead2e0e7c359be8585bf2df12e09bad4fc070 (patch) | |
tree | 44b7561d6cfeaed25122641895e834b620a2c7dc /mod | |
parent | 99a5cfd8d005823c74ac6defb7e42210bb2a9fdb (diff) | |
download | Skyblock-Dungeons-Guide-f67ead2e0e7c359be8585bf2df12e09bad4fc070.tar.gz Skyblock-Dungeons-Guide-f67ead2e0e7c359be8585bf2df12e09bad4fc070.tar.bz2 Skyblock-Dungeons-Guide-f67ead2e0e7c359be8585bf2df12e09bad4fc070.zip |
- lombok error
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod')
3 files changed, 6 insertions, 6 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/MFeature.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/MFeature.java index d318afe2..50e75938 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/MFeature.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/MFeature.java @@ -92,7 +92,7 @@ public class MFeature extends MPanel { @Override public void run() { Minecraft.getMinecraft().displayGuiScreen(new GuiGuiLocationConfig(Minecraft.getMinecraft().currentScreen, abstractFeature)); - button.setClicked(false); + button.setBeingClicked(false); } }); button.setBackground(RenderUtils.blendAlpha(0x141414, 0.07f)); diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/RootConfigPanel.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/RootConfigPanel.java index a9602bb9..0bc16fbb 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/RootConfigPanel.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/config/guiconfig/RootConfigPanel.java @@ -100,7 +100,7 @@ public class RootConfigPanel extends MPanelScaledGUI { guiRelocate.setText("Edit Gui Locations"); guiRelocate.setOnActionPerformed(() -> { Minecraft.getMinecraft().displayGuiScreen(new GuiGuiLocationConfig(gui, null)); - guiRelocate.setClicked(false); + guiRelocate.setBeingClicked(false); }); guiRelocate.setBorder(RenderUtils.blendTwoColors(0xFF141414,0x7702EE67)); add(guiRelocate); diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/gui/elements/MButton.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/gui/elements/MButton.java index a961a323..c204e30c 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/gui/elements/MButton.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/gui/elements/MButton.java @@ -59,7 +59,7 @@ public class MButton extends MPanel { if (!enabled) { bg = disabled; } else if (getTooltipsOpen() > 0) { - } else if (isClicked) { + } else if (isBeingClicked) { bg = clicked; } else if (new Rectangle(new Point(0,0),bounds).contains(relMousex0, relMousey0)) { bg = hover; @@ -91,11 +91,11 @@ public class MButton extends MPanel { renderer.drawString(getText(), x,y, foreground.getRGB()); } - boolean isClicked = false; + boolean isBeingClicked = false; @Override public void mouseClicked(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int mouseButton) { if (lastAbsClip.contains(absMouseX, absMouseY) && getTooltipsOpen() == 0) { - isClicked = true; + isBeingClicked = true; if (onActionPerformed != null) onActionPerformed.run(); Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F)); @@ -104,7 +104,7 @@ public class MButton extends MPanel { @Override public void mouseReleased(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int state) { - isClicked = false; + isBeingClicked = false; } |