forked from akanyan/mu3-mods
feat: add infinite gp and skip premusic
Also, run the autoformatter. Also, the skip is now cleaner.
This commit is contained in:
@ -9,28 +9,37 @@ 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 enum State {
|
||||
Init,
|
||||
Continue,
|
||||
SendResultContinue,
|
||||
EndContinue,
|
||||
ForceLogout,
|
||||
ConsumeGP,
|
||||
End,
|
||||
WaitDestroy
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
private void Init_Init() {
|
||||
orig_Init_Init();
|
||||
private void Init_Init() {
|
||||
orig_Init_Init();
|
||||
|
||||
if(patch_PlayMusic.QuickSkip) {
|
||||
result_ = 0;
|
||||
mode_.set(State.End);
|
||||
patch_PlayMusic.QuickSkip = false;
|
||||
}
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user