Remove "Inventory" label from Wireless Crafting Terminal GUI (#53)

This commit is contained in:
Ranzu authored and GitHub committed 2026-10-19 20:01:04 +02:00
1 parent a79995a419
commit 8e255c3e50
2 files changed
+23 -3

No files matched your search

@@ -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"