add work remaining to wireless transmitter

This commit is contained in:
Raoul Van den Berge
2016-01-28 20:32:24 +01:00
parent 671669bd65
commit 60b3475869

View File

@@ -46,5 +46,12 @@ public class GuiWirelessTransmitter extends GuiBase
{
drawString(7, 7, t("gui.storagecraft:wireless_transmitter"));
drawString(7, 43, t("container.inventory"));
if (inBounds(36, 21, 14, 14, mouseX, mouseY) && wirelessTransmitter.isWorking())
{
int workRemaining = (int) (((float) (TileWirelessTransmitter.TOTAL_PROGRESS - wirelessTransmitter.getProgress())) / (float) TileWirelessTransmitter.TOTAL_PROGRESS * 100f);
drawTooltip(mouseX, mouseY, workRemaining + "%");
}
}
}