mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-26 06:42:55 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3415dc0b50 | ||
|
|
8e255c3e50 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
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")
|
||||||
implementation("com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev")
|
implementation("com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev")
|
||||||
|
|||||||
+22
-2
@@ -18,10 +18,13 @@ import appeng.api.config.ActionItems;
|
|||||||
import appeng.api.config.Settings;
|
import appeng.api.config.Settings;
|
||||||
import appeng.api.parts.ICraftingTerminal;
|
import appeng.api.parts.ICraftingTerminal;
|
||||||
import appeng.client.gui.implementations.GuiMEMonitorable;
|
import appeng.client.gui.implementations.GuiMEMonitorable;
|
||||||
|
import appeng.client.gui.slots.VirtualMEPinSlot;
|
||||||
import appeng.client.gui.widgets.GuiImgButton;
|
import appeng.client.gui.widgets.GuiImgButton;
|
||||||
import appeng.container.slot.AppEngSlot;
|
import appeng.container.slot.AppEngSlot;
|
||||||
import appeng.container.slot.SlotCraftingMatrix;
|
import appeng.container.slot.SlotCraftingMatrix;
|
||||||
import appeng.container.slot.SlotFakeCraftingMatrix;
|
import appeng.container.slot.SlotFakeCraftingMatrix;
|
||||||
|
import appeng.core.localization.ColorUtils;
|
||||||
|
import appeng.core.localization.GuiText;
|
||||||
import appeng.helpers.InventoryAction;
|
import appeng.helpers.InventoryAction;
|
||||||
|
|
||||||
public class GuiWirelessCraftingTerminal extends GuiMEMonitorable {
|
public class GuiWirelessCraftingTerminal extends GuiMEMonitorable {
|
||||||
@@ -39,11 +42,11 @@ public class GuiWirelessCraftingTerminal extends GuiMEMonitorable {
|
|||||||
private GuiImgButton clearBtn;
|
private GuiImgButton clearBtn;
|
||||||
private GuiTrashButton trashBtn;
|
private GuiTrashButton trashBtn;
|
||||||
|
|
||||||
private int currentMouseX = 0;
|
private final GuiText hostName;
|
||||||
private int currentMouseY = 0;
|
|
||||||
|
|
||||||
public GuiWirelessCraftingTerminal(final InventoryPlayer inventoryPlayer, ICraftingTerminal host) {
|
public GuiWirelessCraftingTerminal(final InventoryPlayer inventoryPlayer, ICraftingTerminal host) {
|
||||||
super(inventoryPlayer, host, new ContainerWirelessCraftingTerminal(inventoryPlayer, host));
|
super(inventoryPlayer, host, new ContainerWirelessCraftingTerminal(inventoryPlayer, host));
|
||||||
|
this.hostName = host.getHostName();
|
||||||
this.setReservedSpace(73);
|
this.setReservedSpace(73);
|
||||||
this.offsetRepoX -= 1;
|
this.offsetRepoX -= 1;
|
||||||
|
|
||||||
@@ -143,6 +146,23 @@ public class GuiWirelessCraftingTerminal extends GuiMEMonitorable {
|
|||||||
return in;
|
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
|
@Override
|
||||||
public void drawBG(final int offsetX, final int offsetY, final int mouseX, final int mouseY) {
|
public void drawBG(final int offsetX, final int offsetY, final int mouseX, final int mouseY) {
|
||||||
// draw "over inventory area"
|
// draw "over inventory area"
|
||||||
|
|||||||
Reference in new issue
Block a user