aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-01-03 20:41:51 +0900
committermiozune <miozune@gmail.com>2023-01-03 20:41:51 +0900
commit89e0788689c2716109c37979002df10eaf4cfee6 (patch)
treeb853c0315a0946d269c0e8dec780fa8c79c9579c /src
parent14249055d0b3871aeee918a8e1f9ee1da01f0541 (diff)
downloadGT5-Unofficial-89e0788689c2716109c37979002df10eaf4cfee6.tar.gz
GT5-Unofficial-89e0788689c2716109c37979002df10eaf4cfee6.tar.bz2
GT5-Unofficial-89e0788689c2716109c37979002df10eaf4cfee6.zip
Add deprecation tooltip to Parametrizers
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Param.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ParamText.java6
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java1
3 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Param.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Param.java
index 7a59e39c6d..bf315e1dfe 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Param.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Param.java
@@ -1,6 +1,5 @@
package com.github.technus.tectech.thing.metaTileEntity.hatch;
-import static net.minecraft.util.StatCollector.translateToLocal;
import static net.minecraft.util.StatCollector.translateToLocalFormatted;
import com.github.technus.tectech.TecTech;
@@ -217,9 +216,8 @@ public class GT_MetaTileEntity_Hatch_Param extends GT_MetaTileEntity_Hatch imple
public String[] getDescription() {
return new String[] {
CommonValues.TEC_MARK_GENERAL,
- translateToLocal("gt.blockmachines.hatch.param.desc.0"), // For parametrization of Multiblocks
- EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD
- + translateToLocal("gt.blockmachines.hatch.param.desc.1") + "\u00b2" // E=mine*craft
+ EnumChatFormatting.DARK_RED + "Deprecated; Now you can set parameter by clicking LED on multiblock GUI.",
+ EnumChatFormatting.DARK_RED + "If it doesn't work, try removing Parametrizer from multiblock structure.",
};
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ParamText.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ParamText.java
index 810c04d861..9b795a0a08 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ParamText.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_ParamText.java
@@ -1,6 +1,5 @@
package com.github.technus.tectech.thing.metaTileEntity.hatch;
-import static net.minecraft.util.StatCollector.translateToLocal;
import static net.minecraft.util.StatCollector.translateToLocalFormatted;
import com.github.technus.tectech.TecTech;
@@ -162,9 +161,8 @@ public class GT_MetaTileEntity_Hatch_ParamText extends GT_MetaTileEntity_Hatch_P
public String[] getDescription() {
return new String[] {
CommonValues.TEC_MARK_GENERAL,
- translateToLocal("gt.blockmachines.hatch.param.desc.0"), // For parametrization of Multiblocks
- EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD
- + translateToLocal("gt.blockmachines.hatch.param.desc.1") + "\u00b2" // E=mine*craft
+ EnumChatFormatting.DARK_RED + "Deprecated; Now you can set parameter by clicking LED on multiblock GUI.",
+ EnumChatFormatting.DARK_RED + "If it doesn't work, try removing Parametrizer from multiblock structure.",
};
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
index 7e8bb045e6..8146414ac8 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
@@ -3143,6 +3143,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
}
})
.setTextAlignment(Alignment.CenterLeft)
+ .setFocusOnGuiOpen(true)
.setBackground(GT_UITextures.BACKGROUND_TEXT_FIELD)
.setPos(5, 20)
.setSize(90, 15))