Add stop_timer usage example#764
Conversation
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
himanshigaba22
left a comment
There was a problem hiding this comment.
Good example and the deploy preview is passing cleanly! A couple of things to fix up though - the .txt file has 2 lines when it should be title only, and the C++, C#, and Python versions are using ternary operators for the status string, so those should be swapped out for simple if/else statements.
Also worth double-checking the description says stopping a timer “resets ticks to 0” — that sounds more like reset_timer, not stop_timer, so it could mislead users. Finally, can you confirm whether usage-example-references.json has been updated or if this is handled by the dynamic scanner?
Once those are sorted, it should be good to go!
Summary
This pull request adds an initial usage example for
stop_timerin the timers category.Files added
What the example does
This example opens a window, starts a timer, and allows the user to press
Sto stop the timer and reset its ticks to 0.Testing
Tested by running:
Verified that:
Sstops the timerNotes
This is an interactive usage example for the
stop_timerfunction in the timers category.