diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-08 12:52:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 12:52:54 +0100 |
commit | 761398556ea215cb0038418179ec601934bfd549 (patch) | |
tree | 6d340e0b5309b0fddb04cb84be9005459a6e31a2 | |
parent | 8ca4bd275528e5a0b99d18184bcf49359e8c6c5a (diff) | |
parent | 42f1697857a29b86cce9a4c5896cba1ee8565cdd (diff) |
Merge pull request #58887 from cesarizu/bbcode_align_left
-rw-r--r-- | scene/gui/rich_text_label.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 1c9eb14a24..bad7be7d42 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -3250,6 +3250,10 @@ void RichTextLabel::append_text(const String &p_bbcode) { push_paragraph(HORIZONTAL_ALIGNMENT_FILL); pos = brk_end + 1; tag_stack.push_front(tag); + } else if (tag == "left") { + push_paragraph(HORIZONTAL_ALIGNMENT_LEFT); + pos = brk_end + 1; + tag_stack.push_front(tag); } else if (tag == "right") { push_paragraph(HORIZONTAL_ALIGNMENT_RIGHT); pos = brk_end + 1; |