forked from akanyan/mu3-mods
37 lines
917 B
C#
37 lines
917 B
C#
using MonoMod;
|
|
using MU3.Util;
|
|
|
|
namespace MU3;
|
|
|
|
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_;
|
|
|
|
[MonoModIgnore]
|
|
private enum State {
|
|
End = 6
|
|
}
|
|
|
|
private void Init_Init() {
|
|
orig_Init_Init();
|
|
|
|
if(Singleton<Mod.State>.instance.SkipPlay) {
|
|
result_ = 0;
|
|
mode_.set(State.End);
|
|
}
|
|
}
|
|
|
|
private extern void orig_End_Init();
|
|
private void End_Init() {
|
|
if(!Singleton<Mod.State>.instance.SkipPlay) {
|
|
orig_End_Init();
|
|
} else {
|
|
SystemUI instance = SingletonMonoBehaviour<SystemUI>.instance;
|
|
instance.Panel.popState();
|
|
commonWindow_.transform.localScale = new UnityEngine.Vector3(0, 0, 0);
|
|
commonWindow_.end();
|
|
}
|
|
}
|
|
} |