use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiPlasticMixer method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTemperature(0, guiLeft + 55, guiTop + 25, 295, 500, te.getLogic(0)));
addWidget(new WidgetTemperature(1, guiLeft + 82, guiTop + 25, 295, 500, te.getLogic(1), PneumaticValues.PLASTIC_MIXER_MELTING_TEMP));
addWidget(new WidgetTank(3, guiLeft + 152, guiTop + 14, te.getFluidTank()));
GuiAnimatedStat stat = addAnimatedStat("gui.tab.plasticMixer.plasticSelection", new ItemStack(Itemss.plastic, 1, 1), 0xFF005500, false);
List<String> text = new ArrayList<String>();
for (int i = 0; i < 12; i++) {
text.add(" ");
}
stat.setTextWithoutCuttingString(text);
buttons = new GuiButtonSpecial[16];
for (int x = 0; x < 4; x++) {
for (int y = 0; y < 4; y++) {
int index = y * 4 + x;
ItemStack plastic = new ItemStack(Itemss.plastic, 1, index);
buttons[index] = new GuiButtonSpecial(index + 1, x * 21 + 4, y * 21 + 30, 20, 20, "").setRenderStacks(plastic).setTooltipText(plastic.getDisplayName());
stat.addWidget(buttons[index]);
}
}
stat.addWidget(lockSelection = new GuiCheckBox(17, 4, 18, 0xFF000000, "gui.plasticMixer.lockSelection").setChecked(te.lockSelection).setTooltip(I18n.format("gui.plasticMixer.lockSelection.tooltip")));
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiThermopneumaticProcessingPlant method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTank(-1, guiLeft + 13, guiTop + 15, te.getInputTank()));
addWidget(new WidgetTank(-1, guiLeft + 79, guiTop + 15, te.getOutputTank()));
addWidget(tempWidget = new WidgetTemperature(-1, guiLeft + 98, guiTop + 15, 273, 673, te.getHeatExchangerLogic(ForgeDirection.UNKNOWN), (int) te.requiredTemperature));
}
use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.
the class GuiPneumaticDynamo method initGui.
@Override
public void initGui() {
super.initGui();
inputStat = addAnimatedStat("Output", (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 GuiElectricCompressor method initGui.
@Override
public void initGui() {
super.initGui();
inputStat = addAnimatedStat("Input", IC2Items.getItem("glassFiberCableItem"), 0xFF555555, false);
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Aggregations