diff --git a/dependencies.gradle b/dependencies.gradle index 961f8da..c8ae52d 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,7 +1,7 @@ // Add your dependencies here dependencies { - api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-900-GTNH:dev") + api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-999-GTNH:dev") implementation("com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev") implementation("com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev") diff --git a/src/main/java/net/p455w0rd/wirelesscraftingterminal/client/gui/GuiWirelessCraftingTerminal.java b/src/main/java/net/p455w0rd/wirelesscraftingterminal/client/gui/GuiWirelessCraftingTerminal.java index d18fe6a..8e54d7c 100644 --- a/src/main/java/net/p455w0rd/wirelesscraftingterminal/client/gui/GuiWirelessCraftingTerminal.java +++ b/src/main/java/net/p455w0rd/wirelesscraftingterminal/client/gui/GuiWirelessCraftingTerminal.java @@ -18,10 +18,13 @@ import appeng.api.config.ActionItems; import appeng.api.config.Settings; import appeng.api.parts.ICraftingTerminal; import appeng.client.gui.implementations.GuiMEMonitorable; +import appeng.client.gui.slots.VirtualMEPinSlot; import appeng.client.gui.widgets.GuiImgButton; import appeng.container.slot.AppEngSlot; import appeng.container.slot.SlotCraftingMatrix; import appeng.container.slot.SlotFakeCraftingMatrix; +import appeng.core.localization.ColorUtils; +import appeng.core.localization.GuiText; import appeng.helpers.InventoryAction; public class GuiWirelessCraftingTerminal extends GuiMEMonitorable { @@ -39,11 +42,11 @@ public class GuiWirelessCraftingTerminal extends GuiMEMonitorable { private GuiImgButton clearBtn; private GuiTrashButton trashBtn; - private int currentMouseX = 0; - private int currentMouseY = 0; + private final GuiText hostName; public GuiWirelessCraftingTerminal(final InventoryPlayer inventoryPlayer, ICraftingTerminal host) { super(inventoryPlayer, host, new ContainerWirelessCraftingTerminal(inventoryPlayer, host)); + this.hostName = host.getHostName(); this.setReservedSpace(73); this.offsetRepoX -= 1; @@ -143,6 +146,23 @@ public class GuiWirelessCraftingTerminal extends GuiMEMonitorable { return in; } + /** + * Same as {@link GuiMEMonitorable#drawFG} but without the "Inventory" label, which overlaps the player model. + */ + @Override + public void drawFG(final int offsetX, final int offsetY, final int mouseX, final int mouseY) { + this.fontRendererObj.drawString( + this.getGuiDisplayName(this.hostName.getLocal()), + 8, + 6, + ColorUtils.guiTextColorGray.getColor()); + + VirtualMEPinSlot.drawSlotsBackground(this.pinSlots, this.mc, this.zLevel); + + this.currentMouseX = mouseX; + this.currentMouseY = mouseY; + } + @Override public void drawBG(final int offsetX, final int offsetY, final int mouseX, final int mouseY) { // draw "over inventory area"