1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
Abdurahman Elmawi 2025-09-30 19:52:45 +03:00 committed by GitHub
commit c304564bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 225 additions and 9 deletions

View file

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