From b1ddd7c979a7055dcef26aa729e923b059942115 Mon Sep 17 00:00:00 2001 From: Yoshubs <37424048+Yoshubs@users.noreply.github.com> Date: Mon, 4 Oct 2021 20:05:43 -0400 Subject: [PATCH] might destroy someones workflow lmao --- .../userInterface/Notes/NoteSplash.hx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 source/gameObjects/userInterface/Notes/NoteSplash.hx diff --git a/source/gameObjects/userInterface/Notes/NoteSplash.hx b/source/gameObjects/userInterface/Notes/NoteSplash.hx new file mode 100644 index 000000000..eb23644ed --- /dev/null +++ b/source/gameObjects/userInterface/Notes/NoteSplash.hx @@ -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); + } +}