aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdiel Kavash <19243993+AbdielKavash@users.noreply.github.com>2024-03-09 07:21:32 -0600
committerGitHub <noreply@github.com>2024-03-09 14:21:32 +0100
commitb9fca3bf7df8c0c2046bbefeeb25896cc39eea7b (patch)
tree56be0ea28c680a56ab03332d4c15e7bfa70d63d4
parent3c3b5d730a3d198568665ef8a8f7c5e82328c660 (diff)
downloadGT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.tar.gz
GT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.tar.bz2
GT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.zip
Syncing TextWidget (#34)
* Replaces one instance where a dynamic text field is being communicated between server and client with a purely client-side method. In some cases this allows the client to do localization on these texts correctly. (See https://github.com/GTNewHorizons/ModularUI/pull/69.) This is a part of the series of PRs implementing new ModularUI features, however this mod does not use any numeric text fields or similar, and thus no other changes are needed.
-rw-r--r--dependencies.gradle2
-rw-r--r--settings.gradle2
-rw-r--r--src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/dependencies.gradle b/dependencies.gradle
index 35f6b2df4a..8f28f50856 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -1,7 +1,7 @@
// Add your dependencies here
dependencies {
- api("com.github.GTNewHorizons:GT5-Unofficial:5.09.45.77:dev")
+ api("com.github.GTNewHorizons:GT5-Unofficial:5.09.45.95:dev")
testImplementation(platform('org.junit:junit-bom:5.8.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
diff --git a/settings.gradle b/settings.gradle
index 16a5b4ca7d..b11efb014f 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
- id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.14'
+ id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.16'
}
diff --git a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
index e540bb4562..7bdba48995 100644
--- a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
+++ b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
@@ -540,7 +540,7 @@ public class MTE_AdvAssLine extends GT_MetaTileEntity_ExtendedPowerMultiBlockBas
new TextWidget(Text.localised("ggfab.gui.advassline.shutdown"))
.setEnabled(this::hasAbnormalStopReason));
screenElements.widget(
- TextWidget.dynamicText(() -> Text.localised(lastStopReason)).setSynced(false)
+ new TextWidget().setTextSupplier(() -> Text.localised(lastStopReason))
.attachSyncer(
new FakeSyncWidget.StringSyncer(() -> lastStopReason, r -> this.lastStopReason = r),
screenElements)