Click on a RichTextLabel custom effect

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bethleem

Out of curiosity, is it possible to get the click on the words between custom RichTextLabel effects? Without using the url tag, I mean. Im trying to hack a fix for the broken url-fill combined tags since the bug was reported more than a year ago and still broken.

Any other suggestion for the hack/fix will be wellcome. :slight_smile:

What if you have a hidden button, or just an empty one, with the exact size of the text and overlayed on top of the text? Would that work?

TheJokingJack | 2021-01-09 22:23

Or (sorry for the barrage of comments) an Area2D on top of it with the clicked() signal.

TheJokingJack | 2021-01-09 22:26

Been there, done that.
The problem is the fill tag. I can pinpoint where a word will be with regular text, but ignoring the fill algorithm godot uses makes me clueless abot the coordinates of a word inside that tag.

bethleem | 2021-01-11 08:33