mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix chat input staying red
This commit is contained in:
1 parent
919ea648b6
commit
3952ea745c
1 file changed
+3
-1
@@ -54,7 +54,6 @@ public static class TextBoxPatch
|
||||
__result = currentChar is not ('\b' or '\r' or '[');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
[HarmonyPatch(typeof(TextBoxTMP), nameof(TextBoxTMP.SetText))]
|
||||
[HarmonyPostfix]
|
||||
@@ -79,6 +78,9 @@ public static class TextBoxPatch
|
||||
{
|
||||
Destroy();
|
||||
IsInvalidCommand = false;
|
||||
Color textColor = Main.DarkTheme.Value ? Color.white : Color.black;
|
||||
__instance.compoText.Color(textColor);
|
||||
__instance.outputText.color = textColor;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user