diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-04-19 13:27:18 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-04-22 12:08:46 +0300 |
commit | be611c1c0592d4aaa9c58f227a9c33301acd544b (patch) | |
tree | c304cf5c4fe0ebd33a4f361f3c1b10c5b74f1da1 /scene/gui/label.cpp | |
parent | f4b0c7a1ea8d86c1dfd96478ca12ad1360903d9d (diff) | |
download | redot-engine-be611c1c0592d4aaa9c58f227a9c33301acd544b.tar.gz |
Implement Label3D node.
Add "generate_mipmap" font import option.
Add some missing features to the Sprite3D.
Move BiDi override code from Control to TextServer.
Add functions to access TextServer font cache textures.
Add MSDF related flags and shader to the standard material.
Change standard material cache to use HashMap instead of Vector.
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r-- | scene/gui/label.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index cd6fc168c2..eda3d40f63 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -648,21 +648,21 @@ void Label::set_text_direction(Control::TextDirection p_text_direction) { } } -void Label::set_structured_text_bidi_override(Control::StructuredTextParser p_parser) { +void Label::set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser) { if (st_parser != p_parser) { st_parser = p_parser; - font_dirty = true; + dirty = true; update(); } } -Control::StructuredTextParser Label::get_structured_text_bidi_override() const { +TextServer::StructuredTextParser Label::get_structured_text_bidi_override() const { return st_parser; } void Label::set_structured_text_bidi_override_options(Array p_args) { st_args = p_args; - font_dirty = true; + dirty = true; update(); } |