Skip to content

Commit

Permalink
might destroy someones workflow lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshubs authored and Yoshubs committed Oct 5, 2021
1 parent 8abc649 commit b1ddd7c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions source/gameObjects/userInterface/Notes/NoteSplash.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package gameObjects.userInterface.notes;

import meta.data.dependency.FNFSprite;

/**
Create the note splashes in week 7 whenever you get a sick!
**/
class NoteSplash extends FNFSprite
{
public function new(noteData:Int)
{
super(x, y);
visible = false;
alpha = 0.6;
}

override function update(elapsed:Float)
{
super.update(elapsed);

// kill the note splash if it's done
if (animation.finished)
{
// set the splash to invisible
if (visible)
visible = false;
}
//
}

override public function playAnim(AnimName:String, Force:Bool = false, Reversed:Bool = false, Frame:Int = 0)
{
// make sure the animation is visible
if (!Init.trueSettings.get('Disable Note Splashes'))
visible = true;

super.playAnim(AnimName, Force, Reversed, Frame);
}
}

0 comments on commit b1ddd7c

Please sign in to comment.