2015-04-18 22:24:49 +02:00
|
|
|
package techreborn.pda;
|
2015-04-18 13:13:22 +02:00
|
|
|
|
|
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
|
2015-04-18 22:24:49 +02:00
|
|
|
public class GuiPda extends GuiScreen{
|
2015-04-18 13:13:22 +02:00
|
|
|
|
|
|
|
public final int guiWidth = 256;
|
|
|
|
public final int guiHeight = 180;
|
|
|
|
private int guiLeft, guiTop;
|
|
|
|
|
2015-04-18 22:24:49 +02:00
|
|
|
private static final ResourceLocation pdaGuipages = new ResourceLocation("techreborn:" + "textures/gui/pda.png");
|
2015-04-18 13:13:22 +02:00
|
|
|
|
2015-04-18 22:24:49 +02:00
|
|
|
public GuiPda(EntityPlayer player) {}
|
2015-04-18 13:13:22 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void initGui()
|
|
|
|
{
|
|
|
|
this.guiLeft = this.width / 2 - this.guiWidth / 2;
|
|
|
|
this.guiTop = this.height / 2 - this.guiHeight / 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
|
|
|
{
|
|
|
|
// this.fontRendererObj.setUnicodeFlag(true);
|
2015-04-18 22:24:49 +02:00
|
|
|
this.mc.getTextureManager().bindTexture(pdaGuipages);
|
2015-04-18 13:13:22 +02:00
|
|
|
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.guiWidth, this.guiHeight);
|
2015-04-18 22:24:49 +02:00
|
|
|
|
2015-04-18 13:13:22 +02:00
|
|
|
super.drawScreen(mouseX, mouseY, partialTicks);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean doesGuiPauseGame()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|