mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-28 07:35:51 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c568f2dd29 | ||
|
|
0755a0d5f5 | ||
|
|
4e757686c6 | ||
|
|
4c491ba2cb |
No files matched your search
+5
-5
@@ -1,11 +1,11 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-464-GTNH:dev")
|
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-608-GTNH:dev")
|
||||||
|
|
||||||
implementation("com.github.GTNewHorizons:Baubles:1.0.4:dev")
|
implementation("com.github.GTNewHorizons:Baubles-Expanded:2.1.7-GTNH:dev")
|
||||||
compileOnly("curse.maven:cofh-core-69162:2388751")
|
compileOnly("curse.maven:cofh-core-69162:2388751")
|
||||||
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.6.39-GTNH:dev")
|
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.7.44-GTNH:dev")
|
||||||
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.17-GTNH:dev") { transitive = false }
|
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.20-GTNH:dev") { transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:EnderIO:2.8.18:dev") { transitive = false }
|
compileOnly("com.github.GTNewHorizons:EnderIO:2.9.12:dev") { transitive = false }
|
||||||
}
|
}
|
||||||
+1
-1
@@ -14,7 +14,7 @@ modId = ae2wct
|
|||||||
modGroup = net.p455w0rd.wirelesscraftingterminal
|
modGroup = net.p455w0rd.wirelesscraftingterminal
|
||||||
|
|
||||||
# Whether to use modGroup as the maven publishing group.
|
# Whether to use modGroup as the maven publishing group.
|
||||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
# When false, com.github.GTNewHorizons is used.
|
||||||
useModGroupForPublishing = false
|
useModGroupForPublishing = false
|
||||||
|
|
||||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -86,8 +86,7 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
' "$PWD" ) || exit
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@@ -206,7 +205,7 @@ fi
|
|||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command:
|
# Collect all arguments for the java command:
|
||||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
# and any embedded shellness will be escaped.
|
# and any embedded shellness will be escaped.
|
||||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
# treated as '${Hostname}' itself on the command line.
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
+14
-1
@@ -37,6 +37,7 @@ import appeng.api.config.TerminalFontSize;
|
|||||||
import appeng.api.config.TerminalStyle;
|
import appeng.api.config.TerminalStyle;
|
||||||
import appeng.api.config.YesNo;
|
import appeng.api.config.YesNo;
|
||||||
import appeng.api.storage.data.IAEItemStack;
|
import appeng.api.storage.data.IAEItemStack;
|
||||||
|
import appeng.api.storage.data.IDisplayRepo;
|
||||||
import appeng.api.util.IConfigManager;
|
import appeng.api.util.IConfigManager;
|
||||||
import appeng.api.util.IConfigurableObject;
|
import appeng.api.util.IConfigurableObject;
|
||||||
import appeng.client.ActionKey;
|
import appeng.client.ActionKey;
|
||||||
@@ -88,7 +89,7 @@ public class GuiWirelessCraftingTerminal extends AEBaseGui
|
|||||||
public static int craftingGridOffsetX = 80;
|
public static int craftingGridOffsetX = 80;
|
||||||
public static int craftingGridOffsetY;
|
public static int craftingGridOffsetY;
|
||||||
private static String memoryText = "";
|
private static String memoryText = "";
|
||||||
private final ItemRepo repo;
|
private final IDisplayRepo repo;
|
||||||
private final int offsetX = 8;
|
private final int offsetX = 8;
|
||||||
private final IConfigManager configSrc;
|
private final IConfigManager configSrc;
|
||||||
private GuiTabButton craftingStatusBtn;
|
private GuiTabButton craftingStatusBtn;
|
||||||
@@ -654,6 +655,18 @@ public class GuiWirelessCraftingTerminal extends AEBaseGui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleKeyboardInput() {
|
||||||
|
super.handleKeyboardInput();
|
||||||
|
|
||||||
|
// Pause the terminal when holding shift
|
||||||
|
this.repo.setPaused(hasShiftDown());
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean hasShiftDown() {
|
||||||
|
return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
|
||||||
|
}
|
||||||
|
|
||||||
protected boolean isPowered() {
|
protected boolean isPowered() {
|
||||||
return this.repo.hasPower();
|
return this.repo.hasPower();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user