content: package thebetweenlands.client.gui.menu;
  
  import net.minecraft.client.Minecraft;
  import net.minecraft.client.gui.FontRenderer;
  import net.minecraft.client.gui.GuiButton;
  import net.minecraft.client.renderer.GlStateManager;
  import net.minecraft.util.ResourceLocation;
  import thebetweenlands.common.lib.ModInfo;
  
  public class GuiButtonMainMenu extends GuiButton {
  	protected static final ResourceLocation BL_BUTTON_TEXTURES = new ResourceLocation(ModInfo.ID, "textures/gui/main_menu_buttons.png");
  
  	public GuiButtonMainMenu(int buttonId, int x, int y, String buttonText) {
  		super(buttonId, x, y, buttonText);
  	}
  
  	public GuiButtonMainMenu(int buttonId, int x, int y, int widthIn, int heightIn, String buttonText) {
  		super(buttonId, x, y, widthIn, heightIn, buttonText);
  	}
  
  	@Override
  	public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
  		if (this.visible) {
  			FontRenderer fontrenderer = mc.fontRenderer;
  			mc.getTextureManager().bindTexture(BL_BUTTON_TEXTURES);
  			GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
  			this.hovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
  			int i = this.getHoverState(this.hovered);
  			GlStateManager.enableBlend();
  			GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
  			GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
  			this.drawTexturedModalRect(this.x, this.y, 0, 46 + i * 20, this.width / 2, this.height);
  			this.drawTexturedModalRect(this.x + this.width / 2, this.y, 200 - this.width / 2, 46 + i * 20, this.width / 2, this.height);
  			this.mouseDragged(mc, mouseX, mouseY);
  			int j = 14737632;
  
  			if (this.packedFGColour != 0) {
  				j = this.packedFGColour;
  			} else if (!this.enabled) {
  				j = 10526880;
  			} else if (this.hovered) {
  				j = 16777120;
  			}
  
  			this.drawCenteredString(fontrenderer, this.displayString, this.x + this.width / 2, this.y + (this.height - 8) / 2, j);
  		}
  	}
  }
  