This commit is contained in:
D1GQ committed 2024-10-26 14:53:13 -05:00
1 parent 9ecb3a1dae
commit 534caed6dd
7 files changed
+23 -8

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ class BetterHostManager
{
if (target == null || target.IsLocalPlayer()) continue;
string NewName = player.CurrentOutfit.PlayerName;
string NewName = !player.IsInShapeshift() ? player.Data.PlayerName : GameData.Instance.AllPlayers.ToArray().First(data => data.PlayerId == player.shapeshiftTargetPlayerId).PlayerName;
StringBuilder sbTopTag = new StringBuilder();
+1
View File
@@ -258,6 +258,7 @@ internal static class RPC
HashSet<string> bannedWords = new HashSet<string>(
File.ReadLines(BetterDataManager.banWordListFile)
.Where(line => !line.TrimStart().StartsWith("//"))
.Select(normalizeText)
.Where(text => !string.IsNullOrWhiteSpace(text))
);
+10 -3
View File
@@ -112,7 +112,7 @@ class ChatPatch
string hashPuid = Utils.GetHashPuid(sourcePlayer);
string friendCode = sourcePlayer.Data.FriendCode;
string playerName = sourcePlayer.Data.PlayerName;
string playerName = sourcePlayer.BetterData().RealName ?? "";
string Role = $"<size=75%><color={sourcePlayer.GetTeamHexColor()}>{sourcePlayer.GetRoleName()}</color></size>+++";
if (GameStates.IsLobby && !GameStates.IsFreePlay)
@@ -166,7 +166,7 @@ class ChatPatch
}
sbInfo.Append("</size>");
bool flag = sourcePlayer == PlayerControl.LocalPlayer;
bool flag = sourcePlayer.IsLocalPlayer();
if (flag)
{
playerName = $"{sbInfo} " + playerName;
@@ -178,7 +178,14 @@ class ChatPatch
chatBubble.NameText.text = playerName;
chatBubble.ColorBlindName.color = Palette.PlayerColors[sourcePlayer.Data.DefaultOutfit.ColorId];
Logger.Log($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
if (sourcePlayer.IsAlive())
{
Logger.Log($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
}
else
{
Logger.LogPrivate($"{sourcePlayer.Data.PlayerName} -> {chatText}", "ChatLog");
}
}
[HarmonyPatch(nameof(ChatController.AddChatNote))]
+2
View File
@@ -1,3 +1,4 @@
using BepInEx;
using HarmonyLib;
using UnityEngine;
@@ -162,6 +163,7 @@ public static class OptionsMenuBehaviourPatch
SwitchToVanilla = ClientOptionItem.Create(title, null, __instance, SwitchToVanillaButtonToggle, IsToggle: false, toggleCheck: () => !toggleCheckInGame(title));
static void SwitchToVanillaButtonToggle()
{
ConsoleManager.DetachConsole();
UnityEngine.Object.Destroy(BetterNotificationManager.BAUNotificationManagerObj);
Harmony.UnpatchAll();
}
+3
View File
@@ -38,6 +38,9 @@ public class HudManagerPatch
BAUNotification.SetActive(false);
ChatNotifications.timeOnScreen = 0f;
ChatNotifications.gameObject.SetActive(false);
BetterNotificationManager.TextArea.enableWordWrapping = true;
BetterNotificationManager.TextArea.m_firstOverflowCharacterIndex = 0;
BetterNotificationManager.TextArea.overflowMode = TextOverflowModes.Overflow;
}
}
+1
View File
@@ -91,6 +91,7 @@ public static class OnPlayerJoinedPatch
// Read all banned names into a HashSet with normalized names
HashSet<string> bannedNames = new HashSet<string>(
File.ReadLines(BetterDataManager.banNameListFile)
.Where(line => !line.TrimStart().StartsWith("//"))
.Select(normalizeName)
.Where(name => !string.IsNullOrWhiteSpace(name))
);
+5 -4
View File
@@ -25,11 +25,11 @@ public class Main : BasePlugin
{
public static readonly ReleaseTypes ReleaseBuildType = ReleaseTypes.Release;
public const string BetaNum = "0";
public const string HotfixNum = "3";
public const bool IsHotFix = true;
public const string HotfixNum = "0";
public const bool IsHotFix = false;
public const string PluginGuid = "com.ten.betteramongus";
public const string PluginVersion = "1.1.4";
public const string ReleaseDate = "09.23.2024"; // mm/dd/yyyy
public const string PluginVersion = "1.1.5";
public const string ReleaseDate = "10.7.2024"; // mm/dd/yyyy
public const string Github = "https://github.com/EnhancedNetwork/BetterAmongUs-Public";
public const string Discord = "https://discord.gg/ten";
public static BetterAccountInfo myAccountInfo = new();
@@ -98,6 +98,7 @@ public class Main : BasePlugin
public static List<string> SupportedAmongUsVersions =
[
"2024.10.29",
"2024.9.4",
"2024.8.13",
"2024.6.18",