mu3-mods/SkipPreMusicRitual/MU3.Sequence/patch_PlayMusic.cs
akanyan 4ad595f6c3 feat: various enhancements
* AttractVideoPlayer,LoadBoost: allow setting a cache directory
* AttractVideoPlayer: color leds
* BetterGiveUp: prevent multiple restarts in a row
* use GetTriggerOn in general where applicable
2024-07-23 01:45:36 +09:00

20 lines
625 B
C#

using MU3.Battle;
using MU3.Util;
namespace MU3.Sequence;
class patch_PlayMusic: PlayMusic {
private GameEngine _gameEngine;
private extern void orig_Execute_StartCutscene();
public static bool ForceSkipped { get; private set; }
private void Execute_StartCutscene() {
orig_Execute_StartCutscene();
ForceSkipped = false;
if(Singleton<Sys.System>.instance.config.isQuickStart || Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.MenuLeft)) {
ForceSkipped = true;
_gameEngine.skipStartCutscene();
setNextState(EState.Countdown);
}
}
}