2024-02-07 18:16:24 +08:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using Manager;
|
|
|
|
|
using Process;
|
|
|
|
|
using Process.Information;
|
|
|
|
|
|
2024-02-07 18:21:46 +08:00
|
|
|
|
namespace AquaMai.UX
|
2024-02-07 18:16:24 +08:00
|
|
|
|
{
|
2024-02-07 18:21:46 +08:00
|
|
|
|
public class SkipToMusicSelection
|
2024-02-07 18:16:24 +08:00
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
* Highly experimental, may well break some stuff
|
|
|
|
|
* Works by overriding the info screen (where it shows new events and stuff)
|
2024-02-07 18:21:46 +08:00
|
|
|
|
* to directly exit to the music selection screen, skipping character and
|
2024-02-07 18:16:24 +08:00
|
|
|
|
* event selection, among others
|
|
|
|
|
*/
|
|
|
|
|
[HarmonyPrefix]
|
|
|
|
|
[HarmonyPatch(typeof(InformationProcess), "OnUpdate")]
|
2024-02-07 18:21:46 +08:00
|
|
|
|
public static bool OnUpdate(InformationProcess __instance, ProcessDataContainer ___container)
|
2024-02-07 18:16:24 +08:00
|
|
|
|
{
|
|
|
|
|
GameManager.SetMaxTrack();
|
2024-02-07 18:42:40 +08:00
|
|
|
|
___container.processManager.AddProcess(new MusicSelectProcess(___container));
|
2024-02-07 18:16:24 +08:00
|
|
|
|
___container.processManager.ReleaseProcess(__instance);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|