Fixed main menu buttons and skins
This commit is contained in:
parent
7f3344a266
commit
33f03aff7a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
63115
javascript/classes.js
63115
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -58,9 +58,14 @@ public class ImageButton extends MainButton {
|
|||
Minecraft.getMinecraft().getTextureManager().bindTexture(image);
|
||||
Gui.drawModalRectWithCustomSizedTexture(this.xPosition + 3, this.yPosition + 3, 0, 0, 6, 6, 6, 6);
|
||||
|
||||
if(!isBlend) {
|
||||
GlStateManager.disableBlend();
|
||||
}
|
||||
|
||||
if(!isAlpha) {
|
||||
GlStateManager.disableAlpha();
|
||||
}
|
||||
}
|
||||
|
||||
protected void drawHoverEffect() {
|
||||
FontRenderer font = Minecraft.getMinecraft().fontRendererObj;
|
||||
|
|
|
@ -137,5 +137,10 @@ public class MainButton extends GuiButton {
|
|||
if (width != 1.0F) {
|
||||
EaglercraftGPU.glLineWidth(1.0F);
|
||||
}
|
||||
|
||||
GlStateManager.enableCull();
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.disableColorMaterial();
|
||||
GlStateManager.enableTexture2D();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user