Skip to content

Conversation

@Hypernoot
Copy link
Member

@Hypernoot Hypernoot commented Jul 3, 2025

fixes #3219

If the finish_script is not defined, the level is finished when the text runs out or Esc is pressed. Otherwise, the finish_script is run instead.

@Hypernoot Hypernoot changed the title TextScroller: Use exit script properly TextScroller: Use finish_script properly Jul 3, 2025
@tobbi
Copy link
Member

tobbi commented Jul 10, 2025

In theory, I think that code can be moved to its own method, since it's used in multiple places.

@Hypernoot
Copy link
Member Author

Indeed, I will do that.

@Hypernoot
Copy link
Member Author

I noticed that the fading time is slightly different when the textscroller is exited by Esc instead of letting it run out. I removed this feature, as I think that it's rather accidental.

@Hypernoot Hypernoot merged commit 9b12243 into SuperTux:master Nov 29, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TextScroller finish_script is goofed up

3 participants