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 sub-Index for mid-text-event loading #2045

Merged

Conversation

Jowan-Spooner
Copy link
Collaborator

This is a first stab at solving #2028 by storing the index of the current text slice, and thus being able to correctly load in the middle of a text event. At least now when using New Lines as New Event option the loading will work correctly.

Also introduces a method that makes sure events in timelines are fully disconnected from any methods. This just makes our lives a bit easier.

Adds a method that clears any remaining connections so we can safely reuse all the event resources.
Does:
- allows mid-text event loading (only between sections)
- makes sure textbox visibility is correct when loading
@Jowan-Spooner Jowan-Spooner merged commit 638a1f0 into dialogic-godot:main Jan 25, 2024
2 checks passed
Invertex pushed a commit to Invertex/dialogic that referenced this pull request Jan 26, 2024
* Clear any remaining event-connections with Timeline.clean()

Adds a method that clears any remaining connections so we can safely reuse all the event resources.

* Fix and improve text event

Does:
- allows mid-text event loading (only between sections)
- makes sure textbox visibility is correct when loading

* Small typo fix
@Jowan-Spooner Jowan-Spooner deleted the complex-sub-text-loading branch January 30, 2024 10:11
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.

1 participant