From 6950aab0782dc60a7f74f373c741c1635b8a5cf6 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Sat, 16 Sep 2023 15:24:08 +0800 Subject: 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. --- scene/gui/line_edit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/gui/line_edit.h') 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()); -- cgit v1.2.3