mirror of
https://github.com/ApeMV/AmongUsRevamped.git
synced 2026-10-20 01:46:28 +00:00
First ClientOptions, optimizing, fixes, you name it
This commit is contained in:
1 parent
f6f4e3b8e5
commit
9712afa27b
20 files changed
+569
-30
No files matched your search
@@ -0,0 +1,23 @@
|
||||
using InnerNet;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// https://github.com/SuperNewRoles/SuperNewRoles/blob/master/SuperNewRoles/Patches/LobbyBehaviourPatch.cs
|
||||
namespace HNSRevamped;
|
||||
|
||||
[HarmonyPatch(typeof(ChatController), nameof(ChatController.Update))]
|
||||
internal static class ChatControllerUpdatePatch
|
||||
{
|
||||
|
||||
public static void Postfix(ChatController __instance)
|
||||
{
|
||||
if (Main.DarkTheme.Value)
|
||||
{
|
||||
__instance.freeChatField.background.color = new Color32(40, 40, 40, byte.MaxValue);
|
||||
|
||||
__instance.quickChatField.background.color = new Color32(40, 40, 40, byte.MaxValue);
|
||||
__instance.quickChatField.text.color = Color.white;
|
||||
}
|
||||
else __instance.freeChatField.textArea.outputText.color = Color.black;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user