use of me.desht.pneumaticcraft.client.gui.widget.WidgetEnergy in project pnc-repressurized by TeamPneumatic.
the class GuiPneumaticDynamo method initGui.
@Override
public void initGui() {
super.initGui();
inputStat = addAnimatedStat("Output", Textures.GUI_BUILDCRAFT_ENERGY, 0xFF555555, false);
IEnergyStorage storage = te.getCapability(CapabilityEnergy.ENERGY, null);
addWidget(new WidgetEnergy(guiLeft + 20, guiTop + 20, storage));
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, te.getHeatExchangerLogic(null), 325, 625));
}
use of me.desht.pneumaticcraft.client.gui.widget.WidgetEnergy in project pnc-repressurized by TeamPneumatic.
the class GuiAerialInterface method initGui.
@Override
public void initGui() {
super.initGui();
if (PneumaticCraftAPIHandler.getInstance().liquidXPs.size() > 0) {
GuiAnimatedStat xpStat = addAnimatedStat("gui.tab.info.aerialInterface.liquidXp.info.title", new ItemStack(Items.EXPERIENCE_BOTTLE), 0xFF55FF55, false);
xpStat.setText(getLiquidXPText());
xpButton = new GuiButtonSpecial(4, 20, 15, 20, 20, "");
xpButton.setListener(this);
setupXPButton();
xpStat.addWidget(xpButton);
}
addAnimatedStat("gui.tab.info.aerialInterface.interfacingRF.info.title", Textures.GUI_BUILDCRAFT_ENERGY, 0xFFc02222, false).setText("gui.tab.info.aerialInterface.interfacingRF.info");
if (te.hasCapability(CapabilityEnergy.ENERGY, null)) {
IEnergyStorage storage = te.getCapability(CapabilityEnergy.ENERGY, null);
addWidget(new WidgetEnergy(guiLeft + 20, guiTop + 20, storage));
}
if (te.getUpgrades(EnumUpgrade.DISPENSER) > 0) {
GuiAnimatedStat optionStat = addAnimatedStat("gui.tab.aerialInterface.feedMode", new ItemStack(Items.BEEF), 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.BEEF));
button.setTooltipText(I18n.format("gui.tab.aerialInterface.feedMode.feedFullyUtilize"));
optionStat.addWidget(button);
modeButtons[0] = button;
button = new GuiButtonSpecial(2, 30, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.APPLE));
button.setTooltipText(I18n.format("gui.tab.aerialInterface.feedMode.feedWhenPossible"));
optionStat.addWidget(button);
modeButtons[1] = button;
button = new GuiButtonSpecial(3, 55, 20, 20, 20, "");
button.setRenderStacks(new ItemStack(Items.GOLDEN_APPLE));
button.setTooltipText(Arrays.asList(WordUtils.wrap(I18n.format("gui.tab.aerialInterface.feedMode.utilizeFullHealthElsePossible"), 40).split(System.getProperty("line.separator"))));
optionStat.addWidget(button);
modeButtons[2] = button;
} else {
for (int i = 0; i < modeButtons.length; i++) modeButtons[i] = null;
}
}
use of me.desht.pneumaticcraft.client.gui.widget.WidgetEnergy in project pnc-repressurized by TeamPneumatic.
the class GuiFluxCompressor method initGui.
@Override
public void initGui() {
super.initGui();
inputStat = addAnimatedStat("Input", Textures.GUI_BUILDCRAFT_ENERGY, 0xFF555555, false);
IEnergyStorage storage = te.getCapability(CapabilityEnergy.ENERGY, null);
addWidget(new WidgetEnergy(guiLeft + 20, guiTop + 20, storage));
addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, te.getHeatExchangerLogic(null), 325, 625));
}
Aggregations