package blusunrize.immersiveengineering.client.gui.elements;
import blusunrize.immersiveengineering.api.Lib;
import net.minecraft.client.Minecraft;
public class GuiButtonCheckbox extends GuiButtonState
{
public GuiButtonCheckbox(int buttonId, int x, int y, String name, boolean state)
{
super(buttonId, x,y, 8,8, name, state, "immersiveengineering:textures/gui/hudElements.png",0,128, -1);
}
@Override
public void drawButton(Minecraft mc, int mouseX, int mouseY)
{
super.drawButton(mc, mouseX, mouseY);
if(this.visible && state)
this.drawCenteredString( mc.fontRendererObj, "\u2714", xPosition+width/2, yPosition-2, !this.enabled?0xA0A0A0: this.hovered?Lib.COLOUR_I_ImmersiveOrange: 0xE0E0E0);
}
}