From 31024ebfc8ee1c7a08a76f33f9f3628c0fac852f Mon Sep 17 00:00:00 2001 From: Kade <26305836+Kade-github@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:22:07 -0700 Subject: [PATCH] add a public static bool to countdown: finished --- source/funkin/play/Countdown.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/funkin/play/Countdown.hx b/source/funkin/play/Countdown.hx index 643883a43f..c883006a01 100644 --- a/source/funkin/play/Countdown.hx +++ b/source/funkin/play/Countdown.hx @@ -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. @@ -53,6 +58,7 @@ class Countdown */ public static function performCountdown():Bool { + finished = false; countdownStep = BEFORE; var cancelled:Bool = propagateCountdownEvent(countdownStep); if (cancelled) @@ -101,6 +107,7 @@ class Countdown if (countdownStep == AFTER) { + finished = true; stopCountdown(); } }, 5); // Before, 3, 2, 1, GO!, After