Upload from upload_mods.ps1
This commit is contained in:
25
Harmony/Harmony_XUiC_MainMenu.cs
Normal file
25
Harmony/Harmony_XUiC_MainMenu.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
Reference in New Issue
Block a user