Godot Engine

Godot Engine

Checkov Feb 19, 2018 @ 3:29pm
Enabling BBCode through script
Hello,

I am creating RichTextLabels using a loop. Since the labels are created during runtime, I can't enable bbcode in the inspector. Is there a way to do this through code?

Thanks!
< >
Showing 1-4 of 4 comments
Akien  [developer] Feb 19, 2018 @ 11:13pm 
Checkov Feb 20, 2018 @ 2:11am 
I heard a similar thing on another forum as well as the documentation, but upon trying that, the console returned "SCRIPT ERROR: setChoices: Invalid set index 'bbcode_enabled' (on base: 'RichTextLabel')."
Akien  [developer] Feb 20, 2018 @ 11:37am 
Works fine in Godot 3.0 here. Are you using Godot 2.1.4? If so you should use set_use_bbcode(true): http://docs.godotengine.org/en/2.1/classes/class_richtextlabel.html#class-richtextlabel-set-use-bbcode
Last edited by Akien; Feb 20, 2018 @ 11:37am
Checkov Feb 20, 2018 @ 12:28pm 
I am in 2.1.4 and that worked perfectly.

Thank you!
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Feb 19, 2018 @ 3:29pm
Posts: 4