summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2022-08-11 16:28:22 +0300
committerGitHub <noreply@github.com>2022-08-11 16:28:22 +0300
commitf3e849edf49170365483f1cec0fac2441f6a596c (patch)
tree5344a542b678dedeedc1be7f0fb75da9908389ec
parent6c4fa12f825138c1679d86ff6cb02d44e8ab818b (diff)
parent93b39fad2f3e653242ba78d20803450b1c29d586 (diff)
Merge pull request #64267 from bruvzg/le_secret
Change `LineEdit` default secret character from "*" to "•".
-rw-r--r--doc/classes/LineEdit.xml4
-rw-r--r--scene/gui/line_edit.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml
index c06118e621..5217014698 100644
--- a/doc/classes/LineEdit.xml
+++ b/doc/classes/LineEdit.xml
@@ -221,8 +221,8 @@
<member name="secret" type="bool" setter="set_secret" getter="is_secret" default="false">
If [code]true[/code], every character is replaced with the secret character (see [member secret_character]).
</member>
- <member name="secret_character" type="String" setter="set_secret_character" getter="get_secret_character" default="&quot;*&quot;">
- The character to use to mask secret input (defaults to "*"). Only a single character can be used as the secret character.
+ <member name="secret_character" type="String" setter="set_secret_character" getter="get_secret_character" default="&quot;•&quot;">
+ The character to use to mask secret input (defaults to "•"). Only a single character can be used as the secret character.
</member>
<member name="selecting_enabled" type="bool" setter="set_selecting_enabled" getter="is_selecting_enabled" default="true">
If [code]false[/code], it's impossible to select the text using mouse nor keyboard.
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index a828479b0c..4d5ebf441c 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -95,7 +95,7 @@ private:
String text;
String placeholder;
String placeholder_translated;
- String secret_character = "*";
+ String secret_character = U"•";
String ime_text;
Point2 ime_selection;