mirror of https://github.com/kami-blue/client
make tooltips even more reliable
This commit is contained in:
parent
8a340ff2b8
commit
c0122d014c
|
@ -50,6 +50,8 @@ public class RootCheckButtonUI<T extends CheckButton> 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue