use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiAdvancedAirCompressor method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiAdvancedLiquidCompressor method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTemperature(0, guiLeft + 92, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiRefinery method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTemperature(-1, guiLeft + 32, guiTop + 20, 273, 673, te.getHeatExchangerLogic(ForgeDirection.UNKNOWN), 373));
addWidget(new WidgetTank(-1, guiLeft + 8, guiTop + 13, te.getOilTank()));
int x = guiLeft + 95;
int y = guiTop + 17;
addWidget(new WidgetTank(-1, x, y, te.getOutputTank()));
refineries = new ArrayList<TileEntityRefinery>();
refineries.add(te);
TileEntityRefinery refinery = te;
while (refinery.getTileCache()[ForgeDirection.UP.ordinal()].getTileEntity() instanceof TileEntityRefinery) {
refinery = (TileEntityRefinery) refinery.getTileCache()[ForgeDirection.UP.ordinal()].getTileEntity();
x += 20;
y -= 4;
if (refineries.size() < 4)
addWidget(new WidgetTank(-1, x, y, refinery.getOutputTank()));
refineries.add(refinery);
}
if (refineries.size() < 2 || refineries.size() > 4) {
problemTab.openWindow();
}
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiFluxCompressor method initGui.
@Override
public void initGui() {
super.initGui();
inputStat = addAnimatedStat("Input", (ItemStack) null, 0xFF555555, false);
addWidget(new WidgetEnergy(guiLeft + 20, guiTop + 20, te));
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiPneumaticGenerator method initGui.
@Override
public void initGui() {
super.initGui();
outputStat = addAnimatedStat("Output", IC2Items.getItem("glassFiberCableItem"), 0xFF555555, false);
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Aggregations