mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Formspecs: Allow setting alpha value for the box[] element
This commit is contained in:
parent
12a8f8826d
commit
9577a4396a
5 changed files with 15 additions and 12 deletions
|
@ -2283,10 +2283,11 @@ appearing when you don't expect them to. See `no_prepend[]`
|
|||
* `draw_border` (optional): draw border
|
||||
|
||||
#### `box[<X>,<Y>;<W>,<H>;<color>]`
|
||||
* Simple colored semitransparent box
|
||||
* Simple colored box
|
||||
* `x` and `y` position the box relative to the top left of the menu
|
||||
* `w` and `h` are the size of box
|
||||
* `color` is color specified as a `ColorString`
|
||||
* `color` is color specified as a `ColorString`.
|
||||
If the alpha component is left blank, the box will be semitransparent.
|
||||
|
||||
#### `dropdown[<X>,<Y>;<W>;<name>;<item 1>,<item 2>, ...,<item n>;<selected idx>]`
|
||||
* Show a dropdown field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue