diff options
author | syeyoung <cyong06@naver.com> | 2021-08-05 13:57:38 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-05 13:57:38 +0900 |
commit | 4bb44d9d85ad0edbc7df875029560e9c5e7ca459 (patch) | |
tree | 939ee6fdb4638f958bfd91605ffbd80f906a5f34 /src/main/java/kr/syeyoung/dungeonsguide/gui/elements | |
parent | 11f69f60bc6cdacf73784ba2900617a5db38a68e (diff) | |
download | Skyblock-Dungeons-Guide-4bb44d9d85ad0edbc7df875029560e9c5e7ca459.tar.gz Skyblock-Dungeons-Guide-4bb44d9d85ad0edbc7df875029560e9c5e7ca459.tar.bz2 Skyblock-Dungeons-Guide-4bb44d9d85ad0edbc7df875029560e9c5e7ca459.zip |
- Partyfinder now accordingly scales to user's scaledresolution
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPanelScaledGUI.java | 2 | ||||
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTooltipText.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPanelScaledGUI.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPanelScaledGUI.java index a9ce318b..ed84b880 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPanelScaledGUI.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPanelScaledGUI.java @@ -31,7 +31,7 @@ import java.awt.*; public class MPanelScaledGUI extends MPanel { @Getter protected double scale = 1.0; - + @Getter protected double relativeScale; public void setScale(double scale) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTooltipText.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTooltipText.java index fe93d82a..e3d0a3c4 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTooltipText.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTooltipText.java @@ -39,6 +39,6 @@ public class MTooltipText extends MTooltip { @Override public void render(int absMousex, int absMousey, int relMousex0, int relMousey0, float partialTicks, Rectangle scissor) { - GuiUtils.drawHoveringText(tooltipText, relMousex0, relMousey0, Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight, -1, Minecraft.getMinecraft().fontRendererObj); + GuiUtils.drawHoveringText(tooltipText, relMousex0, relMousey0, (int) (Minecraft.getMinecraft().displayWidth/getRelativeScale()), (int) (Minecraft.getMinecraft().displayHeight/getRelativeScale()), -1, Minecraft.getMinecraft().fontRendererObj); } } |