mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
New Decompiler Runtime Official mappings ItemStacks arnt Capability providers anymore, use Vanilla's system. Co-authored-by: RealMangoRage <[email protected]> Co-authored-by: Paint_Ninja <[email protected]>
29 lines
802 B
Diff
29 lines
802 B
Diff
--- a/net/minecraft/client/gui/components/AbstractWidget.java
|
|
+++ b/net/minecraft/client/gui/components/AbstractWidget.java
|
|
@@ -255,6 +_,25 @@
|
|
this.focused = p_93693_;
|
|
}
|
|
|
|
+ // Forge start
|
|
+ public static final int UNSET_FG_COLOR = -1;
|
|
+
|
|
+ protected int packedFGColor = UNSET_FG_COLOR;
|
|
+
|
|
+ public int getFGColor() {
|
|
+ if (packedFGColor != UNSET_FG_COLOR) return packedFGColor;
|
|
+ return this.active ? 16777215 : 10526880; // White : Light Grey
|
|
+ }
|
|
+
|
|
+ public void setFGColor(int color) {
|
|
+ this.packedFGColor = color;
|
|
+ }
|
|
+
|
|
+ public void clearFGColor() {
|
|
+ this.packedFGColor = UNSET_FG_COLOR;
|
|
+ }
|
|
+ // Forge end
|
|
+
|
|
@Override
|
|
public NarratableEntry.NarrationPriority narrationPriority() {
|
|
if (this.isFocused()) {
|