26 lines
942 B
C#
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;
|
|
}
|
|
}*/
|
|
}
|