fix rendering priority and outside box

This commit is contained in:
Bella 2020-04-13 10:50:12 -04:00
parent d59c119ae9
commit 3c150268ab
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ public class RootCheckButtonUI<T extends CheckButton> extends AbstractComponentU
c = (c & GuiC.buttonHoveredN.color.getRGB()) << 1;
if (component.hasDescription()) {
Command.sendChatMessage(component.getName() + ": " + component.getDescription());
RenderHelper.drawFilledRectangle(0, 0, component.getWidth(), component.getHeight());
glDisable(GL_SCISSOR_TEST);
glDepthRange(0, 0.01);
RenderHelper.drawFilledRectangle(component.getWidth() + 14, 0, component.getWidth() * 2, component.getHeight());
glEnable(GL_SCISSOR_TEST);
glDepthRange(0, 1.0);
}
}