2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.client.gui;
|
2012-08-17 03:46:21 +02:00
|
|
|
|
2013-04-13 16:33:37 +02:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2013-03-11 18:49:01 +01:00
|
|
|
import mekanism.api.EnumColor;
|
2013-08-27 00:49:32 +02:00
|
|
|
import mekanism.common.tileentity.TileEntityTheoreticalElementizer;
|
2013-08-27 00:57:08 +02:00
|
|
|
import mekanism.common.util.MekanismUtils;
|
2012-12-20 22:53:39 +01:00
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
2012-08-17 03:46:21 +02:00
|
|
|
|
2013-04-13 16:33:37 +02:00
|
|
|
@SideOnly(Side.CLIENT)
|
2012-10-17 20:46:27 +02:00
|
|
|
public class GuiTheoreticalElementizer extends GuiAdvancedElectricMachine
|
2012-08-17 03:46:21 +02:00
|
|
|
{
|
2012-10-03 21:12:17 +02:00
|
|
|
public GuiTheoreticalElementizer(InventoryPlayer inventory, TileEntityTheoreticalElementizer tentity)
|
2012-08-17 03:46:21 +02:00
|
|
|
{
|
2012-10-17 20:46:27 +02:00
|
|
|
super(inventory, tentity);
|
2012-08-17 03:46:21 +02:00
|
|
|
}
|
|
|
|
|
2012-11-06 16:44:14 +01:00
|
|
|
@Override
|
2012-10-28 23:18:23 +01:00
|
|
|
protected void drawGuiContainerForegroundLayer(int par1, int par2)
|
2012-08-17 03:46:21 +02:00
|
|
|
{
|
2012-10-28 23:18:23 +01:00
|
|
|
super.drawGuiContainerForegroundLayer(par1, par2);
|
2012-08-26 15:48:42 +02:00
|
|
|
String displayText = "";
|
2013-04-01 01:12:10 +02:00
|
|
|
|
2012-10-03 21:12:17 +02:00
|
|
|
if(tileEntity.isActive)
|
2012-08-26 15:48:42 +02:00
|
|
|
{
|
2013-08-25 03:22:45 +02:00
|
|
|
displayText = "Status: " + (int)(((float)tileEntity.operatingTicks/MekanismUtils.getTicks(tileEntity.getSpeedMultiplier(), tileEntity.TICKS_REQUIRED))*100) + "%";
|
2012-08-26 15:48:42 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-11-05 16:52:56 +01:00
|
|
|
displayText = "Status: " + EnumColor.DARK_RED + "Off";
|
2012-08-26 15:48:42 +02:00
|
|
|
}
|
2013-08-25 03:22:45 +02:00
|
|
|
|
2012-08-26 15:48:42 +02:00
|
|
|
fontRenderer.drawString(displayText, 80, 60, 0x404040);
|
2012-08-17 03:46:21 +02:00
|
|
|
}
|
|
|
|
}
|