GUI changes for cobble/smoothstone generators

This commit is contained in:
oitsjustjose 2016-01-26 16:58:20 -05:00
commit a41153b221
8 changed files with 22 additions and 10 deletions

View file

@ -29,8 +29,8 @@ public class ContainerCobblegen extends Container
lastChopTime = 0;
lastFuelTime = 0;
this.addSlotToContainer(new Slot(cobblegen, 0, 56, 17)); // input
this.addSlotToContainer(new Slot(cobblegen, 1, 56, 53)); // catalyst
this.addSlotToContainer(new Slot(cobblegen, 0, 54, 34)); // LAVA
this.addSlotToContainer(new Slot(cobblegen, 1, 26, 34)); // WATER
this.addSlotToContainer(new MachineOutputSlot(player, cobblegen, 2, 116, 35));
this.addInventorySlots();
}

View file

@ -20,18 +20,18 @@ public class ContainerStonegen extends Container
private int lastChopTime;
private int lastFuelTime;
public ContainerStonegen(EntityPlayer player, TileStonegen Stonegen)
public ContainerStonegen(EntityPlayer player, TileStonegen stonegen)
{
this.player = player;
this.Stonegen = Stonegen;
this.Stonegen = stonegen;
lastUseTime = 0;
lastChopTime = 0;
lastFuelTime = 0;
this.addSlotToContainer(new Slot(Stonegen, 0, 56, 17)); // input
this.addSlotToContainer(new Slot(Stonegen, 1, 56, 53)); // catalyst
this.addSlotToContainer(new MachineOutputSlot(player, Stonegen, 2, 116, 35));
this.addSlotToContainer(new Slot(stonegen, 0, 54, 34)); // LAVA
this.addSlotToContainer(new Slot(stonegen, 1, 26, 34)); // WATER
this.addSlotToContainer(new MachineOutputSlot(player, stonegen, 2, 116, 35));
this.addInventorySlots();
}

View file

@ -3,16 +3,19 @@ package com.oitsjustjose.criss_cross.gui;
import org.lwjgl.opengl.GL11;
import com.oitsjustjose.criss_cross.container.ContainerCobblegen;
import com.oitsjustjose.criss_cross.lib.Lib;
import com.oitsjustjose.criss_cross.tileentity.TileCobblegen;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.ForgeModContainer;
public class GUICobblegen extends GuiContainer
{
public static final ResourceLocation texture = new ResourceLocation("crisscross", "textures/gui/cobblegen.png");
public static final ResourceLocation altTexture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/cobblegen_alt.png");
private TileCobblegen cobblegen;
@ -33,7 +36,10 @@ public class GUICobblegen extends GuiContainer
protected void drawGuiContainerBackgroundLayer(float partialTickTime, int mouseX, int mouseY)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(texture);
if (ForgeModContainer.replaceVanillaBucketModel)
this.mc.renderEngine.bindTexture(altTexture);
else
this.mc.renderEngine.bindTexture(texture);
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);

View file

@ -3,16 +3,19 @@ package com.oitsjustjose.criss_cross.gui;
import org.lwjgl.opengl.GL11;
import com.oitsjustjose.criss_cross.container.ContainerStonegen;
import com.oitsjustjose.criss_cross.lib.Lib;
import com.oitsjustjose.criss_cross.tileentity.TileStonegen;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.ForgeModContainer;
public class GUIStonegen extends GuiContainer
{
public static final ResourceLocation texture = new ResourceLocation("crisscross", "textures/gui/stonegen.png");
public static final ResourceLocation texture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/stonegen.png");
public static final ResourceLocation altTexture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/stonegen_alt.png");
private TileStonegen stonegen;
@ -33,7 +36,10 @@ public class GUIStonegen extends GuiContainer
protected void drawGuiContainerBackgroundLayer(float partialTickTime, int mouseX, int mouseY)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(texture);
if (ForgeModContainer.replaceVanillaBucketModel)
this.mc.renderEngine.bindTexture(altTexture);
else
this.mc.renderEngine.bindTexture(texture);
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB