[RTL] Add support for character code bb tag.

This commit is contained in:
bruvzg 2024-04-08 23:17:27 +03:00
parent c951421c99
commit 524a20f460
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -4410,6 +4410,10 @@ void RichTextLabel::append_text(const String &p_bbcode) {
push_strikethrough();
pos = brk_end + 1;
tag_stack.push_front(tag);
} else if (tag.begins_with("char=")) {
int32_t char_code = tag.substr(5, tag.length()).hex_to_int();
add_text(String::chr(char_code));
pos = brk_end + 1;
} else if (tag == "lb") {
add_text("[");
pos = brk_end + 1;