AquaDX/AquaMai/UX/SkipToMusicSelection.cs

27 lines
875 B
C#
Raw Normal View History

using HarmonyLib;
using Manager;
using Process;
using Process.Information;
2024-02-07 18:21:46 +08:00
namespace AquaMai.UX
{
2024-02-07 18:21:46 +08:00
public class SkipToMusicSelection
{
/*
* 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
* 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)
{
GameManager.SetMaxTrack();
2024-02-07 18:42:40 +08:00
___container.processManager.AddProcess(new MusicSelectProcess(___container));
___container.processManager.ReleaseProcess(__instance);
return false;
}
}
}