GodotTIE
GodotTIE copied to clipboard
Support Rich Text Label [Feature Request]
More of a feature request, but it'd be nice if this had Rich Text Label support. Tried forking it myself, but a lot of logic fails with rich text label because of how number of lines are determined in auto wrap between label and rich text label.
I will love this feature, I also tried to code it myself, but the problem I had is that the markup is displayed before the text and then when the text is displayed, the markup hides itself
I am trying to find a way to hide the markup completely but honestly I have not found a good way, but I think it is due to the logic of the code
since, at least what I understand, it adds the letters one by one at the same time that it shows them, so the node of the RichTextLabel does not have time to say "Oh wait, this text must be blue" for example
However, I am a bit new to programming, so there is still hope (I think) hopefully this feature will be added soon:,)
Hello, I have no idea how this works because I haven't looked, but you said that you were new to programming, and I really like this project, so let me tell you how I would do it based on what's been said:
You said that it currently gets the characters 1 by 1 (from a string, I'm assuming). I believe that you should probably parse the string into some abstract syntax tree (AST), which is a fancy way of saying "data structure" or "object", and in this case the outer object would be a list (or array) of these data structures: each segment of the string with identical formatting would have an object with a string as you currently have , but it would also have all formating information, then you cam just loop over those objects and render them 1 by 1.