mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 12:17:26 +08:00
[+] Skip the wait progress after one player login in 1p mode
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
using System;
|
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
using MAI2.Util;
|
||||||
|
using Manager;
|
||||||
|
using MelonLoader;
|
||||||
|
using Monitor.Common;
|
||||||
|
using Monitor.Entry;
|
||||||
|
using Monitor.Entry.Parts.Screens;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using Type = System.Type;
|
||||||
|
|
||||||
namespace AquaMai.UX
|
namespace AquaMai.UX
|
||||||
{
|
{
|
||||||
@@ -26,5 +32,27 @@ namespace AquaMai.UX
|
|||||||
__result = RectTransformUtility.RectangleContainsScreenPoint(__instance.GetComponent<RectTransform>(), point, Camera.main);
|
__result = RectTransformUtility.RectangleContainsScreenPoint(__instance.GetComponent<RectTransform>(), point, Camera.main);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(EntryMonitor), "DecideEntry")]
|
||||||
|
public static void PostDecideEntry(EntryMonitor __instance)
|
||||||
|
{
|
||||||
|
MelonLogger.Msg("Confirm Entry");
|
||||||
|
TimeManager.MarkGameStartTime();
|
||||||
|
Singleton<EventManager>.Instance.UpdateEvent();
|
||||||
|
Singleton<ScoreRankingManager>.Instance.UpdateData();
|
||||||
|
__instance.Process.CreateDownloadProcess();
|
||||||
|
__instance.ProcessManager.SendMessage(new Message(ProcessType.CommonProcess, 30001));
|
||||||
|
__instance.ProcessManager.SendMessage(new Message(ProcessType.CommonProcess, 40000, 0, OperationInformationController.InformationType.Hide));
|
||||||
|
__instance.Process.SetNextProcess();
|
||||||
|
}
|
||||||
|
|
||||||
|
// To prevent the "長押受付終了" overlay from appearing
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(WaitPartner), "Open")]
|
||||||
|
public static bool WaitPartnerPreOpen()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user