-
-
Notifications
You must be signed in to change notification settings - Fork 247
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 Character Prefixes and Suffixes to Text Events #2460
Add Character Prefixes and Suffixes to Text Events #2460
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is such a handy feature!
addons/dialogic/Editor/CharacterEditor/character_prefix_suffix.tscn
Outdated
Show resolved
Hide resolved
addons/dialogic/Editor/CharacterEditor/character_prefix_suffix.tscn
Outdated
Show resolved
Hide resolved
I very much like this. I'd also recommend doing it like this: if current_character:
var character_prefix: String = current_character.custom_info.get(DialogicCharacterPrefixSuffixSection.PREFIX_CUSTOM_KEY, DialogicCharacterPrefixSuffixSection.DEFAULT_PREFIX)
var character_suffix: String = current_character.custom_info.get(DialogicCharacterPrefixSuffixSection.SUFFIX_CUSTOM_KEY, DialogicCharacterPrefixSuffixSection.DEFAULT_SUFFIX)
text = character_prefix + text + character_suffix
text_node.reveal_text(text, additional) Because this way the modified version is what is getting returned by Or is there a reason you didn't do it that way? |
Thanks! I have applied your suggestions. |
Cool. Looks good to me now! |
This new Feature allows to set text segments before and after a text spoken by a character.
For instance, you can set the
“
or"
for your quotation marks or use rich tags, such as colour.