forked from akanyan/mu3-mods
fix: party play fixes
Also, stop using a finalizer
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using MU3.Battle;
|
||||
using MonoMod;
|
||||
using MU3.Battle;
|
||||
using MU3.Game;
|
||||
using MU3.Notes;
|
||||
using MU3.Util;
|
||||
@ -21,7 +22,9 @@ class patch_PlayMusic: PlayMusic {
|
||||
private DateTime _holdingStartTime;
|
||||
private float enemyPosX;
|
||||
private patch_NotesManager ntMgr => (patch_NotesManager)_gameEngine?.notesManager;
|
||||
private extern void orig_Execute_Play();
|
||||
|
||||
[MonoModIgnore]
|
||||
private extern bool isPartyPlay();
|
||||
|
||||
public static double FadeOut(double progress, double min, double max) {
|
||||
return min + (max - min) * (1.0 - Math.Pow(1.0 - progress, 2.0));
|
||||
@ -62,7 +65,11 @@ class patch_PlayMusic: PlayMusic {
|
||||
ntMgr.led.setGameColor(true);
|
||||
}
|
||||
|
||||
private extern void orig_Execute_Play();
|
||||
private void Execute_Play() {
|
||||
if(isPartyPlay()) {
|
||||
return;
|
||||
}
|
||||
if(Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.MenuRight)) {
|
||||
_pressedYellow = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user