mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
FormSpec: Add position and anchor elements (#5284)
This commit is contained in:
parent
22df959343
commit
6de83a2756
3 changed files with 109 additions and 8 deletions
|
@ -1522,6 +1522,16 @@ examples.
|
|||
* `fixed_size`: `true`/`false` (optional)
|
||||
* deprecated: `invsize[<W>,<H>;]`
|
||||
|
||||
#### `position[<X>,<Y>]`
|
||||
* Define the position of the formspec
|
||||
* A value between 0.0 and 1.0 represents a position inside the screen
|
||||
* The default value is the center of the screen (0.5, 0.5)
|
||||
|
||||
#### `anchor[<X>,<Y>]`
|
||||
* Define the anchor of the formspec
|
||||
* A value between 0.0 and 1.0 represents an anchor inside the formspec
|
||||
* The default value is the center of the formspec (0.5, 0.5)
|
||||
|
||||
#### `container[<X>,<Y>]`
|
||||
* Start of a container block, moves all physical elements in the container by (X, Y)
|
||||
* Must have matching container_end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue