oops forgot about this

This commit is contained in:
Kade M
2021-07-10 17:01:29 -07:00
parent 388c6215c7
commit 2897fdc489
2 changed files with 44 additions and 17 deletions

View File

@ -40,6 +40,13 @@ class Note extends FlxSprite
public var dataColor:Array<String> = ['purple', 'blue', 'green', 'red'];
public var isParent:Bool = false;
public var parent:Note = null;
public var spotInLine:Int = 0;
public var sustainActive:Bool = true;
public var children:Array<Note> = [];
public function new(strumTime:Float, noteData:Int, ?prevNote:Note, ?sustainNote:Bool = false, ?inCharter:Bool = false)
{
super();
@ -167,6 +174,10 @@ class Note extends FlxSprite
{
super.update(elapsed);
if (!modifiedByLua)
if (!sustainActive)
alpha = 0.4;
if (mustPress)
{
// ass