mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Clean up
This commit is contained in:
1 parent
e3b13e5b59
commit
3d0d351a3b
3 files changed
+9
-9
No files matched your search
@@ -119,10 +119,10 @@ internal static class Utils
|
||||
if (data == null) return;
|
||||
|
||||
var pooledBubble = chat.GetPooledBubble();
|
||||
var messageName = $"<color=#ffffff><b>(<color=#00ff44>{Translator.GetString("SystemMessage")}</color>)</b>" + ChatPatch.CommandPostfixName;
|
||||
var messageName = $"<color=#ffffff><b>(<color=#00ff44>{Translator.GetString("SystemMessage")}</color>)</b>" + ChatPatch.COMMAND_POSTFIX_ID;
|
||||
|
||||
if (!string.IsNullOrEmpty(overrideName))
|
||||
messageName = overrideName + ChatPatch.CommandPostfixName;
|
||||
messageName = overrideName + ChatPatch.COMMAND_POSTFIX_ID;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ namespace BetterAmongUs;
|
||||
|
||||
internal static class ModInfo
|
||||
{
|
||||
internal static readonly ReleaseTypes ReleaseBuildType = ReleaseTypes.Release;
|
||||
internal static readonly ReleaseTypes ReleaseBuildType = ReleaseTypes.Dev;
|
||||
public static string CommitHash = GetAssemblyMetadata("CommitHash");
|
||||
public static string BuildDate = GetAssemblyMetadata("BuildDate");
|
||||
|
||||
@@ -13,7 +13,7 @@ internal static class ModInfo
|
||||
internal const bool IS_HOTFIX = false;
|
||||
internal const string PLUGIN_NAME = "BetterAmongUs";
|
||||
internal const string PLUGIN_GUID = "com.d1gq.betteramongus";
|
||||
internal const string PLUGIN_VERSION = "1.3.1";
|
||||
internal const string PLUGIN_VERSION = "1.3.2";
|
||||
internal const string GITHUB = "https://github.com/D1GQ/BetterAmongUs";
|
||||
internal const string DISCORD = "https://discord.gg/vjYrXpzNAn";
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ internal static class ChatPatch
|
||||
internal static List<string> ChatHistory = [];
|
||||
internal static int CurrentHistorySelection = -1;
|
||||
|
||||
internal const string CommandPostfixName = "<size=0%>IsCommand</size>";
|
||||
internal const string COMMAND_POSTFIX_ID = "<size=0%>IsCommand</size>";
|
||||
|
||||
internal static void ClearChat()
|
||||
{
|
||||
@@ -33,7 +33,7 @@ internal static class ChatPatch
|
||||
var chatBubble = obj.GetComponent<ChatBubble>();
|
||||
if (chatBubble != null)
|
||||
{
|
||||
if (chatBubble.NameText.text.EndsWith(CommandPostfixName)) continue;
|
||||
if (chatBubble.NameText.text.EndsWith(COMMAND_POSTFIX_ID)) continue;
|
||||
HudManager.Instance.Chat.chatBubblePool.Reclaim(chatBubble);
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ internal static class ChatPatch
|
||||
var chatBubble = obj.GetComponent<ChatBubble>();
|
||||
if (chatBubble != null)
|
||||
{
|
||||
if (!chatBubble.NameText.text.EndsWith(CommandPostfixName)) continue;
|
||||
if (!chatBubble.NameText.text.EndsWith(COMMAND_POSTFIX_ID)) continue;
|
||||
HudManager.Instance.Chat.chatBubblePool.Reclaim(chatBubble);
|
||||
}
|
||||
}
|
||||
@@ -292,11 +292,11 @@ internal static class ChatPatch
|
||||
{
|
||||
int length = __instance.textArea.text.Length;
|
||||
__instance.charCountText.text = string.Format("{0}/118", length);
|
||||
__instance.charCountText.color = GetCharColor(length, Color.white);
|
||||
__instance.charCountText.color = GetCharColor(length);
|
||||
}
|
||||
}
|
||||
|
||||
private static Color GetCharColor(int length, Color color)
|
||||
private static Color GetCharColor(int length)
|
||||
{
|
||||
Color[] colorGradient =
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user