Compare commits

...
2 Commits
3 changed files with 25 additions and 5 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
+1 -1
View File
@@ -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")
@@ -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"