This commit is contained in:
D1GQ committed 2024-08-24 08:22:20 -05:00
1 parent d292cc8fd0
commit bde161ad87
13 files changed
+10 -21

No files matched your search

-3
View File
@@ -3,9 +3,6 @@ using BetterAmongUs.Patches;
using HarmonyLib;
using Hazel;
using InnerNet;
using UnityEngine;
using UnityEngine.Purchasing;
using UnityEngine.Rendering;
namespace BetterAmongUs;
+1 -1
View File
@@ -17,7 +17,7 @@ class BetterNotificationManager
if (BAUNotificationManagerObj != null)
{
if (Notifying)
if (Notifying)
{
if (text == BAUNotificationManagerObj.transform.Find("Sizer/ChatText (TMP)").GetComponent<TextMeshPro>().text)
return;
+2 -2
View File
@@ -84,8 +84,8 @@ public class ClientOptionItem
// ボタン生成
ToggleButton = Object.Instantiate(mouseMoveToggle, CustomBackground.transform);
ToggleButton.transform.localPosition = new Vector3(
// 現在のオプション数を基に位置を計算
ToggleButton.transform.localPosition = new Vector3(
// 現在のオプション数を基に位置を計算
numOptions % 2 == 0 ? -1.3f : 1.3f,
2.2f - (0.5f * (numOptions / 2)),
-6f);
@@ -1,5 +1,4 @@
using Rewired;
using UnityEngine;
using UnityEngine;
namespace BetterAmongUs;
-1
View File
@@ -1,7 +1,6 @@
using BetterAmongUs.Patches;
using HarmonyLib;
using Hazel;
using InnerNet;
namespace BetterAmongUs;
+1 -2
View File
@@ -1,6 +1,5 @@
using HarmonyLib;
using UnityEngine;
using static Rewired.Data.UserDataStore_PlayerPrefs.ControllerAssignmentSaveInfo;
namespace BetterAmongUs.Patches;
@@ -80,7 +79,7 @@ public static class OptionsMenuBehaviourPatch
BetterNotificationManager.Notifying = false;
}
}
if (ChatInGameplay == null || ChatInGameplay.ToggleButton == null)
{
ChatInGameplay = ClientOptionItem.Create("Chat In Gameplay", Main.ChatInGameplay, __instance);
+2 -2
View File
@@ -175,7 +175,7 @@ class CommandsPatch
sb.Append("\n\n");
}
Utils.AddChatPrivate(sb.ToString());
break;
break;
case "whisper" or "w":
if (HandlePlayerArgument(command, subArgs) == true)
{
@@ -410,7 +410,7 @@ class CommandsPatch
RPC.SyncAllNames(force: true);
Utils.AddChatPrivate("<color=#0dff00>All player names have been updated and synced!</color>");
}
break;
break;
case "suicide":
if (HandleIsHost(command) == true)
{
-1
View File
@@ -1,5 +1,4 @@
using HarmonyLib;
using Newtonsoft.Json.Utilities;
using System.Text;
using TMPro;
using UnityEngine;
+1 -1
View File
@@ -99,7 +99,7 @@ internal class MainMenuPatch
bool Flag = __instance?.screenTint?.GetComponent<SpriteRenderer>() != null
&& !__instance.screenTint.GetComponent<SpriteRenderer>().enabled;
foreach (var item in buttonsObj)
foreach (var item in buttonsObj)
{
item.SetActive(Flag);
}
+1 -1
View File
@@ -99,7 +99,7 @@ class MeetingHudUpdatePatch
case DisconnectReasons.Hacking:
DisconnectText = "Banned By Server";
break;
default:
default:
DisconnectText = "Disconnected";
break;
}
-3
View File
@@ -1,9 +1,6 @@
using AmongUs.Data;
using AmongUs.GameOptions;
using HarmonyLib;
using Hazel;
using Il2CppSystem.Linq;
using InnerNet;
using LibCpp2IL;
using System.Text;
using System.Text.RegularExpressions;
-1
View File
@@ -1,6 +1,5 @@
using HarmonyLib;
using UnityEngine;
using UnityEngine.Rendering;
namespace BetterAmongUs.Patches;
+1 -1
View File
@@ -9,6 +9,6 @@ public class VersionShowerPatch
[HarmonyPostfix]
public static void Postfix(VersionShower __instance)
{
__instance.text.text = $"<color=#0dff00>♻BetterAmongUs♻ {Main.GetVersionText()}</color> - " + __instance.text.text;
__instance.text.text = $"<color=#0dff00>♻BetterAmongUs♻ {Main.GetVersionText()}</color> - " + __instance.text.text;
}
}