Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Level.has_active_sequence() to scripting API. #2625

Merged
merged 5 commits into from
Sep 13, 2023

Conversation

tylerandari13
Copy link
Contributor

@tylerandari13 tylerandari13 commented Sep 5, 2023

(plz hear me out on this one)

This adds Level.has_active_sequence() to the scripting API. which is basically the getter for Level.finish(). It allows you tell when the end stats screen is displayed.

Added `Level_is_finished()` to scripting API and fumbled with the macro to make it possible.
Why does this happen i regenerated the wrapper. :sadstare:
The only upside to this is that it doesnt trigger on the titlescreen lol.
@tylerandari13 tylerandari13 changed the title Add Level.is_finished() to scripting API. Add Level.end_sequence_started() to scripting API. Sep 7, 2023
also fixed an oopsie int he wrapper (again)
@tylerandari13 tylerandari13 changed the title Add Level.end_sequence_started() to scripting API. Add Level.has_active_sequence() to scripting API. Sep 7, 2023
rename `get_end_sequence` to `has_active_sequence` in game_session

also rename the function in default.nut
@mrkubax10 mrkubax10 merged commit 78e1d70 into SuperTux:master Sep 13, 2023
33 checks passed
@mrkubax10 mrkubax10 removed the status:needs-review Work needs to be reviewed by other people label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants