mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
disable TextBoxPatch for chinese players
This commit is contained in:
1 parent
ad644dc7b3
commit
283c40444a
2 files changed
+2
-3
No files matched your search
@@ -21,8 +21,6 @@ public static class TextBoxPatch
|
||||
[HarmonyPrefix]
|
||||
public static bool AllowAllCharacters(TextBoxTMP __instance, [HarmonyArgument(0)] char i, ref bool __result)
|
||||
{
|
||||
if (Translator.GetUserTrueLang() is SupportedLangs.SChinese or SupportedLangs.TChinese or SupportedLangs.Korean) return true;
|
||||
|
||||
if (!__instance.IpMode && i is '\'' or '"' or '’' or '`' or '-' or '–' or '—' or '‐' or '.' or ',' or ':' or ';' or '!' or '?' or '(' or ')' or '[' or ']' or '{' or '}' or '<' or '>' or '+' or '=' or '~' or '^' or '*' or '%' or '&' or '|' or '$' or '€' or '£' or '¥' or '₽' or >= '\u0100' and <= '\u024F' or >= '\u0370' and <= '\u03FF')
|
||||
{
|
||||
__result = true;
|
||||
|
||||
Reference in new issue
Block a user