mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #90405 from bruvzg/rtl_uni
[RTL] Add support for character code BBCode tag `[char=...]`.
This commit is contained in:
commit
05b76a9d80
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user