use of mekanism.client.gui.element.gauge.GuiEnergyGauge in project Mekanism by mekanism.
the class GuiAntiprotonicNucleosynthesizer method addGuiElements.
@Override
protected void addGuiElements() {
super.addGuiElements();
addButton(new GuiInnerScreen(this, 45, 18, 104, 68).jeiCategory(tile));
addButton(new GuiEnergyTab(this, tile.getEnergyContainer(), tile::getEnergyUsed));
addButton(new GuiGasGauge(() -> tile.gasTank, () -> tile.getGasTanks(null), GaugeType.SMALL_MED, this, 5, 18));
addButton(new GuiEnergyGauge(tile.getEnergyContainer(), GaugeType.SMALL_MED, this, 172, 18));
addButton(new GuiDynamicHorizontalRateBar(this, new IBarInfoHandler() {
@Override
public ITextComponent getTooltip() {
return MekanismLang.PROGRESS.translate(TextUtils.getPercent(tile.getScaledProgress()));
}
@Override
public double getLevel() {
return Math.min(1, tile.getScaledProgress());
}
}, 5, 88, 183, ColorFunction.scale(Color.rgbi(60, 45, 74), Color.rgbi(100, 30, 170))));
}
Aggregations