    001/*
    002 * Forge Mod Loader
    003 * Copyright (c) 2012-2013 cpw.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the GNU Lesser Public License v2.1
    006 * which accompanies this distribution, and is available at
    007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    008 *
    009 * Contributors:
    010 *     cpw - implementation
    011 */
    012
    013package cpw.mods.fml.client;
    014
    015import net.minecraft.client.gui.GuiErrorScreen;
    016import cpw.mods.fml.common.Loader;
    017import cpw.mods.fml.common.WrongMinecraftVersionException;
    018
    019public class GuiCustomModLoadingErrorScreen extends GuiErrorScreen
    020{
    021    private CustomModLoadingErrorDisplayException customException;
    022    public GuiCustomModLoadingErrorScreen(CustomModLoadingErrorDisplayException customException)
    023    {
    024        this.customException = customException;
    025    }
    026    @Override
    027
    028    /**
    029     * Adds the buttons (and other controls) to the screen in question.
    030     */
    031    public void initGui()
    032    {
    033        super.initGui();
    034        this.customException.initGui(this, fontRenderer);
    035    }
    036    @Override
    037
    038    /**
    039     * Draws the screen and all the components in it.
    040     */
    041    public void drawScreen(int par1, int par2, float par3)
    042    {
    043        this.drawDefaultBackground();
    044        this.customException.drawScreen(this, fontRenderer, par1, par2, par3);
    045    }
    046}