Fixed main menu buttons and skins

This commit is contained in:
PeytonPlayz595 2024-01-26 16:30:35 +00:00
parent 7f3344a266
commit 33f03aff7a
6 changed files with 94688 additions and 94675 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -58,8 +58,13 @@ public class ImageButton extends MainButton {
Minecraft.getMinecraft().getTextureManager().bindTexture(image);
Gui.drawModalRectWithCustomSizedTexture(this.xPosition + 3, this.yPosition + 3, 0, 0, 6, 6, 6, 6);
GlStateManager.disableBlend();
GlStateManager.disableAlpha();
if(!isBlend) {
GlStateManager.disableBlend();
}
if(!isAlpha) {
GlStateManager.disableAlpha();
}
}
protected void drawHoverEffect() {

View File

@ -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();
}
}