-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS]Completed LineEdit.xml #12445
[DOCS]Completed LineEdit.xml #12445
Conversation
doc/classes/LineEdit.xml
Outdated
</constant> | ||
<constant name="ALIGN_CENTER" value="1"> | ||
Align center. | ||
Centers the thext in the middle of the [LineEdit]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thext -> text
doc/classes/LineEdit.xml
Outdated
</member> | ||
<member name="placeholder_alpha" type="float" setter="set_placeholder_alpha" getter="get_placeholder_alpha"> | ||
Opacity of the [member placeholder text]. From [code]0[/code] to [code]1[/code]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be [member placeholder_text]
with an underscore?
5a16fd7
to
97e01ab
Compare
Thanks. It should be good now. |
doc/classes/LineEdit.xml
Outdated
</member> | ||
<member name="secret" type="bool" setter="set_secret" getter="is_secret"> | ||
If [code]true[/code], every character is shown as "*". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comma
doc/classes/LineEdit.xml
Outdated
</member> | ||
<member name="expand_to_len" type="bool" setter="set_expand_to_text_length" getter="get_expand_to_text_length"> | ||
If [code]true[/code], the [LineEdit] width will increase to stay longer than the [member text]. It will [b]not[/b] compress if the [member text] is shortened. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comma
doc/classes/LineEdit.xml
Outdated
</member> | ||
<member name="editable" type="bool" setter="set_editable" getter="is_editable"> | ||
If [code]false[/code], existing text cannot be modified and new text cannot be added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comma
doc/classes/LineEdit.xml
Outdated
</member> | ||
<member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled"> | ||
If [code]true[/code], the caret (visual cursor) blinks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comma
doc/classes/LineEdit.xml
Outdated
$LineEdit.text = "Welcome" | ||
select() # Welcome | ||
select(4) # ome | ||
select(2, 5) # lco |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the LineEdit node is named "LineEdit", you need to use $LineEdit.select()
, or change to text = "Welcome"
Why so much hate against commas? You just made them cry :,-( |
I filled the LineEdit.xml file. However:
This is my second commit in the docs, I hope I did things right.