Draw hologram button on background
This commit is contained in:
parent
03fdbe49a6
commit
3df454789f
7 changed files with 22 additions and 10 deletions
|
@ -74,6 +74,9 @@ public class GuiBlastFurnace extends GuiBase {
|
||||||
drawOutputSlotBar(92, 36, 2, layer);
|
drawOutputSlotBar(92, 36, 2, layer);
|
||||||
|
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (hasMultiBlock) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -87,7 +90,6 @@ public class GuiBlastFurnace extends GuiBase {
|
||||||
builder.drawBigHeatBar(this, 31, 71, tile.getCachedHeat(), 3230, layer);
|
builder.drawBigHeatBar(this, 31, 71, tile.getCachedHeat(), 3230, layer);
|
||||||
if (hasMultiBlock) {
|
if (hasMultiBlock) {
|
||||||
addHologramButton(4, 4, 212, layer);
|
addHologramButton(4, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
} else {
|
} else {
|
||||||
builder.drawMultiblockMissingBar(this, layer);
|
builder.drawMultiblockMissingBar(this, layer);
|
||||||
addHologramButton(76, 56, 212, layer);
|
addHologramButton(76, 56, 212, layer);
|
||||||
|
|
|
@ -90,6 +90,9 @@ public class GuiFluidReplicator extends GuiBase {
|
||||||
drawSlot(124, 55, layer);
|
drawSlot(124, 55, layer);
|
||||||
// JEI button
|
// JEI button
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (tile.getMultiBlock()) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -101,7 +104,6 @@ public class GuiFluidReplicator extends GuiBase {
|
||||||
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 76, 48, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 76, 48, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
||||||
if (tile.getMultiBlock()) {
|
if (tile.getMultiBlock()) {
|
||||||
addHologramButton(6, 4, 212, layer);
|
addHologramButton(6, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
} else {
|
} else {
|
||||||
builder.drawMultiblockMissingBar(this, layer);
|
builder.drawMultiblockMissingBar(this, layer);
|
||||||
addHologramButton(76, 56, 212, layer);
|
addHologramButton(76, 56, 212, layer);
|
||||||
|
|
|
@ -73,6 +73,9 @@ public class GuiFusionReactor extends GuiBase {
|
||||||
drawOutputSlot(80, 47, layer);
|
drawOutputSlot(80, 47, layer);
|
||||||
|
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (tile.getCoilStatus() > 0) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +88,6 @@ public class GuiFusionReactor extends GuiBase {
|
||||||
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 105, 51, mouseX, mouseY, GuiBuilder.ProgressDirection.LEFT, layer);
|
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 105, 51, mouseX, mouseY, GuiBuilder.ProgressDirection.LEFT, layer);
|
||||||
if (tile.getCoilStatus() > 0) {
|
if (tile.getCoilStatus() > 0) {
|
||||||
addHologramButton(6, 4, 212, layer);
|
addHologramButton(6, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
drawCentredString(tile.getStateString(), 20, Color.BLUE.darker().getRGB(), layer);
|
drawCentredString(tile.getStateString(), 20, Color.BLUE.darker().getRGB(), layer);
|
||||||
if(tile.state == 2){
|
if(tile.state == 2){
|
||||||
drawCentredString( PowerSystem.getLocaliszedPowerFormatted((int) tile.getPowerChange()) + "/t", 30, Color.GREEN.darker().getRGB(), layer);
|
drawCentredString( PowerSystem.getLocaliszedPowerFormatted((int) tile.getPowerChange()) + "/t", 30, Color.GREEN.darker().getRGB(), layer);
|
||||||
|
|
|
@ -78,6 +78,9 @@ public class GuiIndustrialGrinder extends GuiBase {
|
||||||
drawSlot(126, 72, layer);
|
drawSlot(126, 72, layer);
|
||||||
|
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (tile.getMultiBlock()) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -87,9 +90,8 @@ public class GuiIndustrialGrinder extends GuiBase {
|
||||||
|
|
||||||
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 105, 47, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 105, 47, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
||||||
builder.drawTank(this, 53, 25, mouseX, mouseY, tile.tank.getFluid(), tile.tank.getCapacity(), tile.tank.isEmpty(), layer);
|
builder.drawTank(this, 53, 25, mouseX, mouseY, tile.tank.getFluid(), tile.tank.getCapacity(), tile.tank.isEmpty(), layer);
|
||||||
if (tile.getMutliBlock()) {
|
if (tile.getMultiBlock()) {
|
||||||
addHologramButton(6, 4, 212, layer);
|
addHologramButton(6, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
} else {
|
} else {
|
||||||
builder.drawMultiblockMissingBar(this, layer);
|
builder.drawMultiblockMissingBar(this, layer);
|
||||||
addHologramButton(76, 56, 212, layer);
|
addHologramButton(76, 56, 212, layer);
|
||||||
|
|
|
@ -77,6 +77,9 @@ public class GuiIndustrialSawmill extends GuiBase {
|
||||||
drawSlot(126, 61, layer);
|
drawSlot(126, 61, layer);
|
||||||
|
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (tile.getMutliBlock()) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -88,7 +91,6 @@ public class GuiIndustrialSawmill extends GuiBase {
|
||||||
builder.drawTank(this, 53, 25, mouseX, mouseY, tile.tank.getFluid(), tile.tank.getCapacity(), tile.tank.isEmpty(), layer);
|
builder.drawTank(this, 53, 25, mouseX, mouseY, tile.tank.getFluid(), tile.tank.getCapacity(), tile.tank.isEmpty(), layer);
|
||||||
if (tile.getMutliBlock()) {
|
if (tile.getMutliBlock()) {
|
||||||
addHologramButton(6, 4, 212, layer);
|
addHologramButton(6, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
} else {
|
} else {
|
||||||
builder.drawMultiblockMissingBar(this, layer);
|
builder.drawMultiblockMissingBar(this, layer);
|
||||||
addHologramButton(76, 56, 212, layer);
|
addHologramButton(76, 56, 212, layer);
|
||||||
|
|
|
@ -70,6 +70,9 @@ public class GuiVacuumFreezer extends GuiBase {
|
||||||
drawOutputSlot(101, 45, layer);
|
drawOutputSlot(101, 45, layer);
|
||||||
|
|
||||||
builder.drawJEIButton(this, 158, 5, layer);
|
builder.drawJEIButton(this, 158, 5, layer);
|
||||||
|
if (tile.getMultiBlock()) {
|
||||||
|
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -80,7 +83,6 @@ public class GuiVacuumFreezer extends GuiBase {
|
||||||
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 76, 48, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
builder.drawProgressBar(this, tile.getProgressScaled(100), 100, 76, 48, mouseX, mouseY, GuiBuilder.ProgressDirection.RIGHT, layer);
|
||||||
if (tile.getMultiBlock()) {
|
if (tile.getMultiBlock()) {
|
||||||
addHologramButton(6, 4, 212, layer);
|
addHologramButton(6, 4, 212, layer);
|
||||||
builder.drawHologramButton(this, 6, 4, mouseX, mouseY, layer);
|
|
||||||
} else {
|
} else {
|
||||||
builder.drawMultiblockMissingBar(this, layer);
|
builder.drawMultiblockMissingBar(this, layer);
|
||||||
addHologramButton(76, 56, 212, layer);
|
addHologramButton(76, 56, 212, layer);
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class TileIndustrialGrinder extends TileGenericMachine implements IContai
|
||||||
this.ticksSinceLastChange = 0;
|
this.ticksSinceLastChange = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getMutliBlock() {
|
public boolean getMultiBlock() {
|
||||||
if (multiblockChecker == null) {
|
if (multiblockChecker == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ public class TileIndustrialGrinder extends TileGenericMachine implements IContai
|
||||||
ticksSinceLastChange = 0;
|
ticksSinceLastChange = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!world.isRemote && getMutliBlock()) {
|
if (!world.isRemote && getMultiBlock()) {
|
||||||
super.update();
|
super.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ public class TileIndustrialGrinder extends TileGenericMachine implements IContai
|
||||||
// ITileRecipeHandler
|
// ITileRecipeHandler
|
||||||
@Override
|
@Override
|
||||||
public boolean canCraft(final TileEntity tile, final IndustrialGrinderRecipe recipe) {
|
public boolean canCraft(final TileEntity tile, final IndustrialGrinderRecipe recipe) {
|
||||||
if (!getMutliBlock()) {
|
if (!getMultiBlock()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final FluidStack recipeFluid = recipe.fluidStack;
|
final FluidStack recipeFluid = recipe.fluidStack;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue