diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-11-17 14:54:45 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-11-17 14:59:56 +0200 |
commit | 3add6dcd890ce3bdfc2320bc6f19d0c8e48496ae (patch) | |
tree | ccc683a433db3f6445c151c5941da15741aafaf0 /scene/gui/control.h | |
parent | 0b27173919b583fdebee5eeca8ef4144b5a08011 (diff) | |
download | redot-engine-3add6dcd890ce3bdfc2320bc6f19d0c8e48496ae.tar.gz |
Add `Control::localize_numeral_system` property to toggle automatic numeral system conversion.
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index 72e870930d..3e9bb48a4a 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -249,6 +249,7 @@ private: bool is_rtl = false; bool auto_translate = true; + bool localize_numeral_system = true; // Extra properties. @@ -595,6 +596,9 @@ public: LayoutDirection get_layout_direction() const; virtual bool is_layout_rtl() const; + void set_localize_numeral_system(bool p_enable); + bool is_localizing_numeral_system() const; + void set_auto_translate(bool p_enable); bool is_auto_translating() const; _FORCE_INLINE_ String atr(const String p_string) const { |