aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
diff options
context:
space:
mode:
authorAlbi <12825442+Flanisch@users.noreply.github.com>2022-08-15 21:27:24 +0200
committerGitHub <noreply@github.com>2022-08-15 21:27:24 +0200
commit43c014a8db9ad4d44c19190718835a7596dc0a2d (patch)
tree173ca882874af36bde55889ae585dc9111825184 /src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
parented8fb594433346dfd37235c0604851436e0980df (diff)
downloadGT5-Unofficial-43c014a8db9ad4d44c19190718835a7596dc0a2d.tar.gz
GT5-Unofficial-43c014a8db9ad4d44c19190718835a7596dc0a2d.tar.bz2
GT5-Unofficial-43c014a8db9ad4d44c19190718835a7596dc0a2d.zip
Overriding GUI colors with .mcmeta (#1261)
* Implemented gui textcolor override with .mcmeta files * cleanup * Added shared class to reduce code duplication * Moved #drawLine back to GT_NEI_DefaultHandler
Diffstat (limited to 'src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
index a157377315..846e115bd8 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
@@ -4,7 +4,6 @@ import com.google.common.io.ByteArrayDataInput;
import gregtech.api.GregTech_API;
import gregtech.api.enums.GT_Values;
-import gregtech.api.enums.GuiColors;
import gregtech.api.gui.GT_GUICover;
import gregtech.api.gui.widgets.GT_GuiFakeItemButton;
import gregtech.api.gui.widgets.GT_GuiIcon;
@@ -288,7 +287,7 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase<GT_Cover_ItemMeter.
private final String INVERTED = GT_Utility.trans("INVERTED", "Inverted");
private final String NORMAL = GT_Utility.trans("NORMAL", "Normal");
- private final int textColor = GuiColors.coverItemMeter.getColor();
+ private final int textColor = this.getTextColorOrDefault("text", 0xFF555555);
public GUI(byte aSide, int aCoverID, ItemMeterData aCoverVariable, ICoverable aTileEntity) {
super(aTileEntity, 176, 107, GT_Utility.intToStack(aCoverID));