From f67ead2e0e7c359be8585bf2df12e09bad4fc070 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 24 Jan 2023 16:10:26 +0900 Subject: - lombok error Signed-off-by: syeyoung --- .../kr/syeyoung/dungeonsguide/mod/config/guiconfig/MFeature.java | 2 +- .../dungeonsguide/mod/config/guiconfig/RootConfigPanel.java | 2 +- .../java/kr/syeyoung/dungeonsguide/mod/gui/elements/MButton.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'mod') 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; } -- cgit