mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
add "default" field to pwdfield formspec
This commit is contained in:
parent
fcbf05fc30
commit
825b3011b3
3 changed files with 15 additions and 5 deletions
|
@ -3108,7 +3108,7 @@ Elements
|
|||
(`x` and `y` are used as offset values, `w` and `h` are ignored)
|
||||
* Available since formspec version 2
|
||||
|
||||
### `pwdfield[<X>,<Y>;<W>,<H>;<name>;<label>]`
|
||||
### `pwdfield[<X>,<Y>;<W>,<H>;<name>;<label>;<default>]`
|
||||
|
||||
* Textual password style field; will be sent to server when a button is clicked
|
||||
* When enter is pressed in field, `fields.key_enter_field` will be sent with the
|
||||
|
@ -3118,6 +3118,10 @@ Elements
|
|||
* `name` is the name of the field as returned in fields to `on_receive_fields`
|
||||
* `label`, if not blank, will be text printed on the top left above the field
|
||||
* See `field_close_on_enter` to stop enter closing the formspec
|
||||
* `default` (optional) is the default value of the password
|
||||
* `default` may contain variable references such as `${text}` which
|
||||
will fill the value from the metadata value `text`
|
||||
* **Note**: no extra text or more than a single variable is supported ATM.
|
||||
|
||||
### `field[<X>,<Y>;<W>,<H>;<name>;<label>;<default>]`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue