    001package net.minecraft.client.gui;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import net.minecraft.client.Minecraft;
    006import org.lwjgl.opengl.GL11;
    007
    008@SideOnly(Side.CLIENT)
    009public class GuiButtonLanguage extends GuiButton
    010{
    011    public GuiButtonLanguage(int par1, int par2, int par3)
    012    {
    013        super(par1, par2, par3, 20, 20, "");
    014    }
    015
    016    /**
    017     * Draws this button to the screen.
    018     */
    019    public void drawButton(Minecraft par1Minecraft, int par2, int par3)
    020    {
    021        if (this.drawButton)
    022        {
    023            par1Minecraft.renderEngine.bindTexture("/gui/gui.png");
    024            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    025            boolean flag = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;
    026            int k = 106;
    027
    028            if (flag)
    029            {
    030                k += this.height;
    031            }
    032
    033            this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, k, this.width, this.height);
    034        }
    035    }
    036}