mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix miscellaneous oddities around the class reference (part 5)
This commit is contained in:
@@ -318,7 +318,7 @@
|
||||
<member name="max_length" type="int" setter="set_max_length" getter="get_max_length" default="0">
|
||||
Maximum number of characters that can be entered inside the [LineEdit]. If [code]0[/code], there is no limit.
|
||||
When a limit is defined, characters that would exceed [member max_length] are truncated. This happens both for existing [member text] contents when setting the max length, or for new text inserted in the [LineEdit], including pasting.
|
||||
If any input text is truncated, the [signal text_change_rejected] signal is emitted with the truncated substring as parameter:
|
||||
If any input text is truncated, the [signal text_change_rejected] signal is emitted with the truncated substring as a parameter:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
text = "Hello world"
|
||||
@@ -327,7 +327,7 @@
|
||||
max_length = 10
|
||||
text += " goodbye"
|
||||
# `text` becomes "Hello good".
|
||||
# `text_change_rejected` is emitted with "bye" as parameter.
|
||||
# `text_change_rejected` is emitted with "bye" as a parameter.
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
Text = "Hello world";
|
||||
@@ -336,7 +336,7 @@
|
||||
MaxLength = 10;
|
||||
Text += " goodbye";
|
||||
// `Text` becomes "Hello good".
|
||||
// `text_change_rejected` is emitted with "bye" as parameter.
|
||||
// `text_change_rejected` is emitted with "bye" as a parameter.
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user