You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Java
		
	
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 p_i1041_1_, int p_i1041_2_, int p_i1041_3_)
 | 
						|
    {
 | 
						|
        super(p_i1041_1_, p_i1041_2_, p_i1041_3_, 20, 20, "");
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Draws this button to the screen.
 | 
						|
     */
 | 
						|
    public void drawButton(Minecraft mc, int mouseX, int mouseY)
 | 
						|
    {
 | 
						|
        if (this.visible)
 | 
						|
        {
 | 
						|
            mc.getTextureManager().bindTexture(GuiButton.buttonTextures);
 | 
						|
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
 | 
						|
            boolean flag = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;
 | 
						|
            int k = 106;
 | 
						|
 | 
						|
            if (flag)
 | 
						|
            {
 | 
						|
                k += this.height;
 | 
						|
            }
 | 
						|
 | 
						|
            this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, k, this.width, this.height);
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |