mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Do not patch region drop down menu on Starlight, Starlight automatically does this
This commit is contained in:
1 parent
1f7c6d571d
commit
f6182d4d76
1 file changed
+9
-2
@@ -1,9 +1,9 @@
|
||||
using BetterAmongUs.Modules.Support;
|
||||
using BetterAmongUs.Utilities.Extension;
|
||||
using HarmonyLib;
|
||||
using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using BetterAmongUs.Utilities.Extension;
|
||||
|
||||
namespace BetterAmongUs.Patches.Gameplay.UI;
|
||||
|
||||
@@ -14,6 +14,9 @@ internal static class ServerDropdownPatch
|
||||
[HarmonyPrefix]
|
||||
private static void FindAGameManager_Start_Prefix(FindAGameManager __instance)
|
||||
{
|
||||
if (BAUPlugin.ModInfo.Starlight)
|
||||
return;
|
||||
|
||||
if (BAUModdedSupportFlags.HasFlag(BAUModdedSupportFlags.Disable_ServerDropDown))
|
||||
return;
|
||||
|
||||
@@ -33,7 +36,11 @@ internal static class ServerDropdownPatch
|
||||
[HarmonyPrefix]
|
||||
private static bool ServerDropdown_FillServerOptions_Prefix(ServerDropdown __instance)
|
||||
{
|
||||
if (BAUModdedSupportFlags.HasFlag(BAUModdedSupportFlags.Disable_ServerDropDown)) return true;
|
||||
if (BAUPlugin.ModInfo.Starlight)
|
||||
return true;
|
||||
|
||||
if (BAUModdedSupportFlags.HasFlag(BAUModdedSupportFlags.Disable_ServerDropDown))
|
||||
return true;
|
||||
|
||||
__instance.background.size = new Vector2(5, 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user