Feature Proposal: Support clicking [url] tag #801
Closed
CharlieDelune
started this conversation in
Ideas
Replies: 1 comment
-
I'm going to close this because I now see that this feature is probably supported entirely, just not in the example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default, godot's RichTextLabel has pretty good support for the [url] bbcode tag. If you wrap some text in the url tag, such as
Hey, [url]what's[/url] up?
When you click on the word "what's" specifically, the RichTextLabel will emit the
meta_clicked
value with a valuewhat's
.This can be further extended by setting a specific value.
Hey, [url={"some": "json"}]what's[/url] up?
In that case the value of the
meta_clicked
signal will be{"some": "json"}
instead of the word that was clicked.This behaviour is documented in godot's documentation for RichTextLabel in the meta_clicked signal section: https://docs.godotengine.org/en/stable/classes/class_richtextlabel.html
This is an extremely useful way of handling clicks on single words within a dialogue.
I would love to have a way of doing this with GDM
Beta Was this translation helpful? Give feedback.
All reactions