mu3-mods/BetterGiveUp/MU3/patch_Scene_38_End.cs

45 lines
1.0 KiB
C#
Raw Normal View History

2024-05-23 20:49:28 +00:00
#pragma warning disable CS0626
#pragma warning disable CS0649
#pragma warning disable CS0414
#pragma warning disable IDE0051
#pragma warning disable IDE1006
using MU3.Sequence;
using MU3.Util;
namespace MU3;
public class patch_Scene_38_End: Scene_38_End {
private Mode<Scene_38_End, State> mode_;
private extern void orig_Init_Init();
private int result_;
private UICommonWindow commonWindow_;
private enum State {
Init,
Continue,
SendResultContinue,
EndContinue,
ForceLogout,
ConsumeGP,
End,
WaitDestroy
}
2024-05-23 20:49:28 +00:00
private void Init_Init() {
orig_Init_Init();
2024-05-23 20:49:28 +00:00
if(patch_PlayMusic.QuickSkip) {
result_ = 0;
mode_.set(State.End);
}
}
private void End_Init() {
SystemUI instance = SingletonMonoBehaviour<SystemUI>.instance;
instance.Panel.popState();
if(!patch_PlayMusic.QuickSkip) {
instance.fadeOut();
}
commonWindow_.end();
}
2024-05-23 20:49:28 +00:00
}