Fix miscellaneous oddities around the class reference (part 5)

This commit is contained in:
Micky
2025-06-04 14:17:55 +02:00
parent 52ecb5ab9e
commit 3613306bba
34 changed files with 90 additions and 89 deletions

View File

@@ -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>