Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Harmony/Harmony_XUiC_MainMenu.cs
Nathaniel Cosford e06f2bd282 Add All Mods
2025-05-29 23:33:28 +09:30

26 lines
942 B
C#

namespace Harmony.XUiC_MainMenuPatches
{
/*[HarmonyPatch(typeof(XUiC_MainMenu))]
[HarmonyPatch("Open")]
public class OpenPatch
{
public static bool Prefix(XUiC_MainMenu __instance, XUi _xuiInstance)
{
XUiC_MainMenu.shownNewsScreenOnce = true;
IJoinSessionGameInviteListener gameInviteListener = PlatformManager.NativePlatform.JoinSessionGameInviteListener;
if ((gameInviteListener != null ? (gameInviteListener.HasPendingIntent() ? 1 : 0) : 0) != 0)
XUiC_MainMenu.shownNewsScreenOnce = true;
if (!XUiC_MainMenu.shownNewsScreenOnce)
{
XUiC_NewsScreen.Open(_xuiInstance);
XUiC_MainMenu.shownNewsScreenOnce = true;
}
else
{
_xuiInstance.playerUI.windowManager.Open(XUiC_MainMenu.ID, true);
}
return false;
}
}*/
}