diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2023-09-16 15:24:08 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2023-10-19 21:32:38 +0800 |
commit | 6950aab0782dc60a7f74f373c741c1635b8a5cf6 (patch) | |
tree | a878b34f8456edd61e1cb4847f888f6c9b7e57db /scene/gui/line_edit.h | |
parent | dce1aab174369e9124507f4614fc007301df52e7 (diff) | |
download | redot-engine-6950aab0782dc60a7f74f373c741c1635b8a5cf6.tar.gz |
Make LineEdit secret character easier to change and enter
1. Allow values longer than 1 character in the property,
but trim characters after the first one.
2. Allow empty strings, this acts like if a space was used as a secret character,
so that an error isn't printed when you erase all characters in the property.
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r-- | scene/gui/line_edit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h index 4a81f90166..993bc727e4 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -385,6 +385,8 @@ public: virtual bool is_text_field() const override; + PackedStringArray get_configuration_warnings() const override; + void show_virtual_keyboard(); LineEdit(const String &p_placeholder = String()); |