From c0122d014cdbb3bb2ea76482e54e8dad99b7dc3b Mon Sep 17 00:00:00 2001 From: Bella Date: Fri, 17 Apr 2020 08:26:28 -0400 Subject: [PATCH] make tooltips even more reliable --- .../kami/gui/kami/theme/kami/RootCheckButtonUI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java index 72910470..d5c2ef69 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java @@ -50,6 +50,8 @@ public class RootCheckButtonUI extends AbstractComponentU Component componentAt = KamiMod.getInstance().guiManager.getComponentAt(DisplayGuiScreen.mouseX, DisplayGuiScreen.mouseY); if (componentAt.getHeight() != 11) return; // PREVENT DRAWING WHEN OUTSIDE THE CONTAINER // 11 is height of the regular module + if (componentAt.getWidth() != component.getWidth()) return; // prevent drawing 2 different categories when overlapped + glDisable(GL_SCISSOR_TEST); // let it draw outside of the container glDepthRange(0, 0.01); // set render priority to the top