package net.minecraft.client.gui;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.GL11;

@SideOnly(Side.CLIENT)
public class GuiButtonLanguage extends GuiButton
{
	private static final String __OBFID = "CL_00000672";

	public GuiButtonLanguage(int par1, int par2, int par3)
	{
		super(par1, par2, par3, 20, 20, "");
	}

	public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)
	{
		if (this.visible)
		{
			p_146112_1_.getTextureManager().bindTexture(GuiButton.buttonTextures);
			GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
			boolean flag = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;
			int k = 106;

			if (flag)
			{
				k += this.height;
			}

			this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, k, this.width, this.height);
		}
	}
}