Add BBCode escape sequences

(cherry picked from commit 884f1acff8)
This commit is contained in:
Danil Alexeev 2022-01-07 11:40:13 +03:00 committed by Rémi Verschelde
parent 6fc587a6e5
commit 458f65171c
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -2165,6 +2165,12 @@ Error RichTextLabel::append_bbcode(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 == "center") {
push_align(ALIGN_CENTER);
pos = brk_end + 1;