Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The Countdown Timer extension provides a countdown timer functionality to create timed challenges in your projects. You can set an initial time in seconds and then start the timer to count down. The extension includes actions to start, reset, pause, and resume the timer, allows for negative numbers, and provides expressions to get the remaining time. You can also trigger alerts when the time is running out.
How to use the extension
Clock Name: Set a unique name for the clock (e.g.,
ClockName
).Use actions like
SetCountdown
to set the time,StartCountdown
to start it, andPauseCountdown
to pause or resume.You can add or subtract seconds with
AddCountdown
andSubtractCountdown.
Conditions like
IsTimerFinished
andIsTimerPaused
allow you to check the timer's status.Features:
Set Countdown: Set the initial time in seconds.
Start Countdown: Start the timer from the previously set value.
Add Countdown: Add more seconds to the timer.
Subtract Countdown: Subtract seconds from the timer.
Pause Countdown: Pause or resume the countdown timer.
Restart Countdown: Reset the timer to its initial value.
Is Timer Finished: Check if the countdown has reached zero.
Get Remaining Time: Get the remaining time of the countdown.
Get Initial Configuration Value: Retrieve the initial setting of the timer.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Countdown Timer Example.zip
Extension file
CountdownTimer.zip