-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Remove bbcode_text from RichTextLabel #39148
Conversation
Current |
I thought about having get_parsed_text, or rename the the bbcode text to something like get_raw_text |
980c729
to
896c9fd
Compare
Merged set_text
text property is now set_text and get_raw_text. Maybe a change to get_text and rename of get_text to get_parsed_text is desired for consistency. |
rebased and tested. |
The As for the naming, getter for text should be called Also the internal variable |
done.
I renamed
done. |
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.
Looks alright now.
Is this the final resolution about this that everyone agrees to? I remember too many discussions on this topic at this point. |
Ok I got confirmation that this is the case, so feel free to rebase and merge. |
will do |
Rebased. One thing to remember: This will erase all text from RTLs as they are not saved in the |
Yes, see e.g. this: godot/scene/resources/environment.cpp Lines 1032 to 1049 in 104a619
|
Also renames: - append_bbcode -> append_text - get_bbcode -> get_text - set_bbcode -> set_text - get_text -> get_parsed_text Property text is: set_text get_text
Thank you. Done and rebased |
Thanks! |
This simplyfies the text setting and resolves some bugs as the internal data structure is the same.
It's a draft, since the points below must be discussed first (at least 1 to 3)
Things to discuss:
bbcode_text
into thetext
, whenbbcode_enabled
is true)?fixes #36711
fixes #35553 and therefore supersedes #36037 if merged
fixes partly #18413
#35368 seems related acording to the title, but issue itself is unclear
We could alternativly make the RichTextLabel a base class for multiple parsers and reimplement a BBCodeLabel or go in the direction of godotengine/godot-proposals#826