Fixed fluid rendering bugs out sidebuttons, fixes #447
This commit is contained in:
@@ -138,10 +138,6 @@ public abstract class GuiBase extends GuiContainer {
|
||||
}
|
||||
}
|
||||
|
||||
public GuiButton addButton(int x, int y, int w, int h) {
|
||||
return addButton(x, y, w, h, "");
|
||||
}
|
||||
|
||||
public GuiButton addButton(int x, int y, int w, int h, String text) {
|
||||
return addButton(x, y, w, h, text, true);
|
||||
}
|
||||
@@ -265,12 +261,6 @@ public abstract class GuiBase extends GuiContainer {
|
||||
GlStateManager.enableLighting();
|
||||
}
|
||||
|
||||
public void drawTooltip(int x, int y, ItemStack stack) {
|
||||
GlStateManager.disableLighting();
|
||||
renderToolTip(stack, x, y);
|
||||
GlStateManager.enableLighting();
|
||||
}
|
||||
|
||||
public void drawTexture(int x, int y, int textureX, int textureY, int width, int height) {
|
||||
drawTexturedModalRect(x, y, textureX, textureY, width, height);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ public abstract class SideButton extends GuiButton {
|
||||
|
||||
@Override
|
||||
public void drawButton(Minecraft mc, int mouseX, int mouseY) {
|
||||
GlStateManager.enableAlpha();
|
||||
|
||||
hovered = gui.inBounds(xPosition, yPosition, width, height, mouseX, mouseY);
|
||||
|
||||
gui.bindTexture("icons.png");
|
||||
|
||||
Reference in New Issue
Block a user