use of me.desht.pneumaticcraft.client.gui.widget.WidgetTank in project pnc-repressurized by TeamPneumatic.
the class GuiGasLift method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTank(-1, guiLeft + 80, guiTop + 15, te.getTank()));
statusStat = addAnimatedStat("gui.tab.status", new ItemStack(Blockss.GAS_LIFT), 0xFFFFAA00, false);
GuiAnimatedStat optionStat = addAnimatedStat("gui.tab.gasLift.mode", new ItemStack(Blockss.PRESSURE_TUBE), 0xFFFFCC00, false);
List<String> text = new ArrayList<String>();
for (int i = 0; i < 4; i++) text.add(" ");
optionStat.setTextWithoutCuttingString(text);
GuiButtonSpecial button = new GuiButtonSpecial(1, 5, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.BUCKET));
button.setTooltipText(I18n.format("gui.tab.gasLift.mode.pumpEmpty"));
optionStat.addWidget(button);
modeButtons[0] = button;
button = new GuiButtonSpecial(2, 30, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.WATER_BUCKET));
button.setTooltipText(I18n.format("gui.tab.gasLift.mode.pumpLeave"));
optionStat.addWidget(button);
modeButtons[1] = button;
button = new GuiButtonSpecial(3, 55, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Blockss.PRESSURE_TUBE));
button.setTooltipText(I18n.format("gui.tab.gasLift.mode.drawIn"));
optionStat.addWidget(button);
modeButtons[2] = button;
}
use of me.desht.pneumaticcraft.client.gui.widget.WidgetTank in project pnc-repressurized by TeamPneumatic.
the class GuiLiquidCompressor method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTank(0, guiLeft + getFluidOffset(), guiTop + 15, te.getTank()));
addAnimatedStat("gui.tab.liquidCompressor.fuel", new ItemStack(Items.LAVA_BUCKET), 0xFFFF6600, true).setTextWithoutCuttingString(getAllFuels());
}
use of me.desht.pneumaticcraft.client.gui.widget.WidgetTank in project pnc-repressurized by TeamPneumatic.
the class GuiLiquidHopper method initGui.
@Override
public void initGui() {
super.initGui();
addWidget(new WidgetTank(0, guiLeft + 116, guiTop + 15, te.getTank()));
statusStat = addAnimatedStat("gui.tab.hopperStatus", new ItemStack(Blockss.LIQUID_HOPPER), 0xFFFFAA00, false);
GuiAnimatedStat optionStat = addAnimatedStat("gui.tab.gasLift.mode", new ItemStack(Blocks.LEVER), 0xFFFFCC00, false);
List<String> text = new ArrayList<String>();
for (int i = 0; i < 4; i++) text.add(" ");
optionStat.setTextWithoutCuttingString(text);
GuiButtonSpecial button = new GuiButtonSpecial(1, 5, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.BUCKET));
button.setTooltipText(I18n.format("gui.tab.liquidHopper.mode.empty"));
optionStat.addWidget(button);
modeButtons[0] = button;
button = new GuiButtonSpecial(2, 30, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.WATER_BUCKET));
button.setTooltipText(I18n.format("gui.tab.liquidHopper.mode.leaveLiquid"));
optionStat.addWidget(button);
modeButtons[1] = button;
}
Aggregations