Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit fbb7e64

Browse files
committed
better buttons
1 parent a235fe1 commit fbb7e64

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/net/minecraft/client/gui/GuiButton.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import net.minecraft.client.renderer.GlStateManager;
77
import net.minecraft.util.ResourceLocation;
88

9+
import java.awt.*;
10+
911
public class GuiButton extends Gui
1012
{
1113
protected static final ResourceLocation buttonTextures = new ResourceLocation("textures/gui/widgets.png");
@@ -87,8 +89,10 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY)
8789
GlStateManager.enableBlend();
8890
GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
8991
GlStateManager.blendFunc(770, 771);
90-
this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, 46 + i * 20, this.width / 2, this.height);
91-
this.drawTexturedModalRect(this.xPosition + this.width / 2, this.yPosition, 200 - this.width / 2, 46 + i * 20, this.width / 2, this.height);
92+
// this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, 46 + i * 20, this.width / 2, this.height);
93+
// this.drawTexturedModalRect(this.xPosition + this.width / 2, this.yPosition, 200 - this.width / 2, 46 + i * 20, this.width / 2, this.height);
94+
Gui.drawRect(this.xPosition, this.yPosition, this.xPosition + this.width, this.yPosition + this.height, new Color(100,100,100, 90).getRGB());
95+
Gui.drawRect(this.xPosition + 1, this.yPosition + 1, this.xPosition + this.width - 1, this.yPosition + this.height - 1, new Color(0,0,0).getRGB());
9296
this.mouseDragged(mc, mouseX, mouseY);
9397
int j = 14737632;
9498

0 commit comments

Comments
 (0)