    001package net.minecraft.client.gui;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005
    006@SideOnly(Side.CLIENT)
    007public class GuiScreenConfirmation extends GuiYesNo
    008{
    009    private String field_96288_n;
    010
    011    public GuiScreenConfirmation(GuiScreen par1GuiScreen, String par2Str, String par3Str, String par4Str, int par5)
    012    {
    013        super(par1GuiScreen, par2Str, par3Str, par5);
    014        this.field_96288_n = par4Str;
    015    }
    016
    017    /**
    018     * Adds the buttons (and other controls) to the screen in question.
    019     */
    020    public void initGui()
    021    {
    022        this.buttonList.add(new GuiSmallButton(0, this.width / 2 - 155, this.height / 6 + 112, this.buttonText1));
    023        this.buttonList.add(new GuiSmallButton(1, this.width / 2 - 155 + 160, this.height / 6 + 112, this.buttonText2));
    024    }
    025
    026    /**
    027     * Draws the screen and all the components in it.
    028     */
    029    public void drawScreen(int par1, int par2, float par3)
    030    {
    031        super.drawScreen(par1, par2, par3);
    032        this.drawCenteredString(this.fontRenderer, this.field_96288_n, this.width / 2, 110, 16777215);
    033    }
    034}