mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
15 lines
529 B
C#
15 lines
529 B
C#
using HarmonyLib;
|
|
|
|
namespace TOHE.Patches;
|
|
|
|
/* Originally by Kap. Reference: https://github.com/KARPED1EM/TownOfNext/blob/TONX/TONX/Patches/TextBoxPatch.cs */
|
|
[HarmonyPatch(typeof(TextBoxTMP))]
|
|
public class TextBoxPatch
|
|
{
|
|
[HarmonyPatch(nameof(TextBoxTMP.SetText)), HarmonyPrefix]
|
|
public static void ModifyCharacterLimit(TextBoxTMP __instance/*, [HarmonyArgument(0)] string input, [HarmonyArgument(1)] string inputCompo = ""*/)
|
|
{
|
|
__instance.characterLimit = AmongUsClient.Instance.AmHost ? 2000 : 300;
|
|
}
|
|
}
|