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

Fixed Speed tag resolve in HistoryRow #1344

Merged
merged 3 commits into from
Dec 20, 2022

Conversation

eaganlai
Copy link

@eaganlai eaganlai commented Dec 5, 2022

Since resolving it in History.gd will disable the speed effect. I am resolving it in the HistoryRow.gd instead.

The speed tag is removed using Regex. It will cater below situation:
[speed=1234567890]
[speed=23 ]
[ speed=23]
[speed = 23]
[ speed = 23 ]

But not
[custom_effect speed=23 span=23]

Just in case anyone wants to use speed as an argument for a custom RichTextEffect.

Fixed Speed tag resolve in HistoryRow with Regex. Also refactored [BR} replacement for better readability.
Since resolving it in History.gd will disable the speed effect. The text will be resolved in the HistoryRow.gd.
@zaknafean zaknafean merged commit f1792d6 into dialogic-godot:dialogic-1 Dec 20, 2022
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.

None yet

2 participants