import org.lwjgl.opengl.GL11;
import cpw.mods.fml.common.network.OpenGuiPacket;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.world.World;
public class GuiWithButtonr extends GuiScreen {
public static EntityPlayer player;
public final int xSizeOfTexture = 250;
public final int ySizeOfTexture = 250;
public GuiWithButtonr(EntityPlayer player) {
// TODO Auto-generated constructor stub
}
@Override
public void drawScreen(int x, int y, float f)
{
drawDefaultBackground();
int var4 = this.mc.renderEngine.getTexture("/chewdri/harrypotterv2/client/GUItest.png");
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(var4);
int posX = (150);
int posY = (20);
drawTexturedModalRect(posX, posY, 0, 0, xSizeOfTexture, ySizeOfTexture);
super.drawScreen(x, y, f);
}
public void initGui()
{
this.controlList.clear();
int posX = (150);
int posY = (140);
this.controlList.add(new GuiButton(0, posX+ 40, posY + 40, 100, 20, "Page 1"));
{}
}
public void actionPerformed(GuiButton button)
{
this.mc.displayGuiScreen((GuiScreen)null);
this.controlList.clear();
this.mc.displayGuiScreen(new Guipage2(this.player));
}
}