Add BBCode escape sequences

This commit is contained in:
Danil Alexeev 2022-01-07 11:40:13 +03:00
parent 697fb6e874
commit 884f1acff8
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7

View file

@ -3064,6 +3064,12 @@ void RichTextLabel::append_text(const String &p_bbcode) {
push_strikethrough();
pos = brk_end + 1;
tag_stack.push_front(tag);
} else if (tag == "lb") {
add_text("[");
pos = brk_end + 1;
} else if (tag == "rb") {
add_text("]");
pos = brk_end + 1;
} else if (tag == "lrm") {
add_text(String::chr(0x200E));
pos = brk_end + 1;