package net.minecraft.client.gui;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.IProgressUpdate;

@SideOnly(Side.CLIENT)
public class GuiScreenWorking extends GuiScreen implements IProgressUpdate
{
	private String field_146591_a = "";
	private String field_146589_f = "";
	private int field_146590_g;
	private boolean field_146592_h;
	private static final String __OBFID = "CL_00000707";

	public void displayProgressMessage(String par1Str)
	{
		this.resetProgressAndMessage(par1Str);
	}

	public void resetProgressAndMessage(String par1Str)
	{
		this.field_146591_a = par1Str;
		this.resetProgresAndWorkingMessage("Working...");
	}

	public void resetProgresAndWorkingMessage(String par1Str)
	{
		this.field_146589_f = par1Str;
		this.setLoadingProgress(0);
	}

	public void setLoadingProgress(int par1)
	{
		this.field_146590_g = par1;
	}

	public void func_146586_a()
	{
		this.field_146592_h = true;
	}

	public void drawScreen(int par1, int par2, float par3)
	{
		if (this.field_146592_h)
		{
			this.mc.displayGuiScreen((GuiScreen)null);
		}
		else
		{
			this.drawDefaultBackground();
			this.drawCenteredString(this.fontRendererObj, this.field_146591_a, this.width / 2, 70, 16777215);
			this.drawCenteredString(this.fontRendererObj, this.field_146589_f + " " + this.field_146590_g + "%", this.width / 2, 90, 16777215);
			super.drawScreen(par1, par2, par3);
		}
	}
}