|
6 | 6 | import net.minecraft.client.renderer.GlStateManager; |
7 | 7 | import net.minecraft.util.ResourceLocation; |
8 | 8 |
|
| 9 | +import java.awt.*; |
| 10 | + |
9 | 11 | public class GuiButton extends Gui |
10 | 12 | { |
11 | 13 | protected static final ResourceLocation buttonTextures = new ResourceLocation("textures/gui/widgets.png"); |
@@ -87,8 +89,10 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY) |
87 | 89 | GlStateManager.enableBlend(); |
88 | 90 | GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0); |
89 | 91 | 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()); |
92 | 96 | this.mouseDragged(mc, mouseX, mouseY); |
93 | 97 | int j = 14737632; |
94 | 98 |
|
|
0 commit comments