This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

How to access the Color of any Rich Text Label substring ?

CharabiaCharabia Posts: 6Member

Hi, I made a quick snippet that :

  • Push a color X to the tag stack of my Rich Text Label
  • Add some text X to that Rich Text Label
  • Prints the text of that same Rich Text Label

The thing is, the text just prints back a string containing the stirng, obviously.
I would like to know the color of the text aswell to access it.
I tried to print the BBcode, but it looks like it is empty when I add text to the Rich Text Label.

Is it possible ? I'm guessing the only option I have to do is to create an array containing the color and the substring for each bit ?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.