Search in sources :

Example 6 with WidgetTank

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;
}
Also used : ArrayList(java.util.ArrayList) WidgetTank(me.desht.pneumaticcraft.client.gui.widget.WidgetTank) ItemStack(net.minecraft.item.ItemStack) GuiAnimatedStat(me.desht.pneumaticcraft.client.gui.widget.GuiAnimatedStat)

Example 7 with WidgetTank

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());
}
Also used : WidgetTank(me.desht.pneumaticcraft.client.gui.widget.WidgetTank) ItemStack(net.minecraft.item.ItemStack)

Example 8 with WidgetTank

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;
}
Also used : ArrayList(java.util.ArrayList) WidgetTank(me.desht.pneumaticcraft.client.gui.widget.WidgetTank) ItemStack(net.minecraft.item.ItemStack) GuiAnimatedStat(me.desht.pneumaticcraft.client.gui.widget.GuiAnimatedStat)

Aggregations

WidgetTank (me.desht.pneumaticcraft.client.gui.widget.WidgetTank)8 ItemStack (net.minecraft.item.ItemStack)4 ArrayList (java.util.ArrayList)3 GuiAnimatedStat (me.desht.pneumaticcraft.client.gui.widget.GuiAnimatedStat)3 WidgetTemperature (me.desht.pneumaticcraft.client.gui.widget.WidgetTemperature)3 GuiCheckBox (me.desht.pneumaticcraft.client.gui.widget.GuiCheckBox)1 WidgetLabel (me.desht.pneumaticcraft.client.gui.widget.WidgetLabel)1 WidgetTextFieldNumber (me.desht.pneumaticcraft.client.gui.widget.WidgetTextFieldNumber)1 TileEntityRefinery (me.desht.pneumaticcraft.common.tileentity.TileEntityRefinery)1