Skip to content

Commit

Permalink
add a public static bool to countdown: finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Sep 19, 2024
1 parent 142e38e commit 31024eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/funkin/play/Countdown.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ class Countdown
*/
public static var soundSuffix:String = '';

/**
* Whether the countdown has finished.
*/
public static var finished:Bool = false;

/**
* Which alternate graphic on countdown to use.
* You can set this via script.
Expand All @@ -53,6 +58,7 @@ class Countdown
*/
public static function performCountdown():Bool
{
finished = false;
countdownStep = BEFORE;
var cancelled:Bool = propagateCountdownEvent(countdownStep);
if (cancelled)
Expand Down Expand Up @@ -101,6 +107,7 @@ class Countdown

if (countdownStep == AFTER)
{
finished = true;
stopCountdown();
}
}, 5); // Before, 3, 2, 1, GO!, After
Expand Down

0 comments on commit 31024eb

Please sign in to comment.