Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mrolas.muchMoney.common.gui;
- import org.lwjgl.opengl.GL11;
- import mrolas.muchMoney.common.gui.container.ContainerShopStop;
- import mrolas.muchMoney.common.lib.Reference;
- import mrolas.muchMoney.common.tileEntities.TileEntityShopStop;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.util.ResourceLocation;
- public class GuiShopStop
- extends GuiContainer
- {
- private static final ResourceLocation texture = new ResourceLocation("muchmoney", "textures/gui/shop_stop.png");
- private TileEntityShopStop shopStop;
- public GuiShopStop (InventoryPlayer inventory, TileEntityShopStop entity)
- {
- super(new ContainerShopStop(inventory, entity));
- this.shopStop = entity;
- xSize = 176;
- ySize = 256;
- }
- @Override
- protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
- {
- GL11.glColor4f(1, 1, 1, 1);
- Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
- drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
- }
- @Override
- protected void drawGuiContainerForegroundLayer (int i, int j)
- {
- fontRenderer.drawString("The Shop Stop", xSize / 2 - fontRenderer.getStringWidth("The Shop Stop") / 2, 6, Reference.HEX_DARK_GREY);
- fontRenderer.drawString("Inventory", 8, 163, Reference.HEX_DARK_GREY);
- fontRenderer.drawString("Coins", 8, 133, Reference.HEX_DARK_GREY);
- fontRenderer.drawString("Item", 133 - fontRenderer.getStringWidth("Item") / 2, 133, Reference.HEX_DARK_GREY);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment