commit
b4d3e59fa5
5 changed files with 34 additions and 1 deletions
|
@ -99,6 +99,11 @@ public class GuiChemicalInfuser extends GuiMekanism
|
||||||
|
|
||||||
fontRendererObj.drawString(MekanismUtils.localize("gui.chemicalInfuser.short"), 5, 5, 0x404040);
|
fontRendererObj.drawString(MekanismUtils.localize("gui.chemicalInfuser.short"), 5, 5, 0x404040);
|
||||||
fontRendererObj.drawString(MekanismUtils.localize("container.inventory"), 8, (ySize - 96) + 4, 0x404040);
|
fontRendererObj.drawString(MekanismUtils.localize("container.inventory"), 8, (ySize - 96) + 4, 0x404040);
|
||||||
|
|
||||||
|
if(xAxis >= 116 && xAxis <= 168 && yAxis >= 76 && yAxis <= 80)
|
||||||
|
{
|
||||||
|
drawCreativeTabHoveringText(MekanismUtils.getEnergyDisplay(tileEntity.getEnergy()), xAxis, yAxis);
|
||||||
|
}
|
||||||
|
|
||||||
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,11 @@ public class GuiChemicalOxidizer extends GuiMekanism
|
||||||
|
|
||||||
fontRendererObj.drawString(tileEntity.getInventoryName(), 45, 6, 0x404040);
|
fontRendererObj.drawString(tileEntity.getInventoryName(), 45, 6, 0x404040);
|
||||||
fontRendererObj.drawString(MekanismUtils.localize("container.inventory"), 8, (ySize - 96) + 2, 0x404040);
|
fontRendererObj.drawString(MekanismUtils.localize("container.inventory"), 8, (ySize - 96) + 2, 0x404040);
|
||||||
|
|
||||||
|
if(xAxis >= 116 && xAxis <= 168 && yAxis >= 76 && yAxis <= 80)
|
||||||
|
{
|
||||||
|
drawCreativeTabHoveringText(MekanismUtils.getEnergyDisplay(tileEntity.getEnergy()), xAxis, yAxis);
|
||||||
|
}
|
||||||
|
|
||||||
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
package mekanism.client.gui;
|
package mekanism.client.gui;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import mekanism.api.ListUtils;
|
||||||
import mekanism.api.gas.GasTank;
|
import mekanism.api.gas.GasTank;
|
||||||
|
import mekanism.client.gui.GuiEnergyInfo.IInfoHandler;
|
||||||
import mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler;
|
import mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler;
|
||||||
import mekanism.client.gui.GuiGasGauge.IGasInfoHandler;
|
import mekanism.client.gui.GuiGasGauge.IGasInfoHandler;
|
||||||
import mekanism.client.gui.GuiProgress.IProgressInfoHandler;
|
import mekanism.client.gui.GuiProgress.IProgressInfoHandler;
|
||||||
|
@ -32,6 +36,14 @@ public class GuiPRC extends GuiMekanism
|
||||||
guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
||||||
guiElements.add(new GuiConfigurationTab(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
guiElements.add(new GuiConfigurationTab(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
||||||
guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
|
||||||
|
guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
|
||||||
|
@Override
|
||||||
|
public List<String> getInfo()
|
||||||
|
{
|
||||||
|
String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_PER_TICK));
|
||||||
|
return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
|
||||||
|
}
|
||||||
|
}, this, tileEntity.guiLocation));
|
||||||
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
|
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
|
||||||
@Override
|
@Override
|
||||||
public FluidTank getTank()
|
public FluidTank getTank()
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
package mekanism.client.gui;
|
package mekanism.client.gui;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import mekanism.api.Coord4D;
|
import mekanism.api.Coord4D;
|
||||||
|
import mekanism.api.ListUtils;
|
||||||
import mekanism.api.gas.GasTank;
|
import mekanism.api.gas.GasTank;
|
||||||
|
import mekanism.client.gui.GuiEnergyInfo.IInfoHandler;
|
||||||
import mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler;
|
import mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler;
|
||||||
import mekanism.client.gui.GuiGasGauge.IGasInfoHandler;
|
import mekanism.client.gui.GuiGasGauge.IGasInfoHandler;
|
||||||
import mekanism.client.gui.GuiProgress.IProgressInfoHandler;
|
import mekanism.client.gui.GuiProgress.IProgressInfoHandler;
|
||||||
|
@ -43,7 +46,15 @@ public class GuiRotaryCondensentrator extends GuiMekanism
|
||||||
guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 55));
|
guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 55));
|
||||||
|
|
||||||
guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 4).with(SlotOverlay.POWER));
|
guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 4).with(SlotOverlay.POWER));
|
||||||
|
|
||||||
|
guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
|
||||||
|
@Override
|
||||||
|
public List<String> getInfo()
|
||||||
|
{
|
||||||
|
String multiplier = MekanismUtils.getEnergyDisplay(tileEntity.ENERGY_USAGE);
|
||||||
|
return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
|
||||||
|
}
|
||||||
|
}, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalWasher.png")));
|
||||||
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
|
guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
|
||||||
@Override
|
@Override
|
||||||
public FluidTank getTank()
|
public FluidTank getTank()
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in a new issue