package net.minecraft.client.gui;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.resources.I18n;
@SideOnly(Side.CLIENT)
public class GuiErrorScreen extends GuiScreen
{
private String field_146313_a;
private String field_146312_f;
private static final String __OBFID = "CL_00000696";
public GuiErrorScreen(String p_i1034_1_, String p_i1034_2_)
{
this.field_146313_a = p_i1034_1_;
this.field_146312_f = p_i1034_2_;
}
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
super.initGui();
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, 140, I18n.format("gui.cancel", new Object[0])));
}
/**
* Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks
*/
public void drawScreen(int mouseX, int mouseY, float partialTicks)
{
this.drawGradientRect(0, 0, this.width, this.height, -12574688, -11530224);
this.drawCenteredString(this.fontRendererObj, this.field_146313_a, this.width / 2, 90, 16777215);
this.drawCenteredString(this.fontRendererObj, this.field_146312_f, this.width / 2, 110, 16777215);
super.drawScreen(mouseX, mouseY, partialTicks);
}
/**
* Fired when a key is typed (except F11 who toggle full screen). This is the equivalent of
* KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)
*/
protected void keyTyped(char typedChar, int keyCode) {}
protected void actionPerformed(GuiButton button)
{
this.mc.displayGuiScreen((GuiScreen)null);
}
}