mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Add multiple element selection to style
and style_type
(#9380)
This commit is contained in:
parent
0c08f948d7
commit
7dffd08c1a
3 changed files with 29 additions and 29 deletions
|
@ -2495,16 +2495,16 @@ Elements
|
|||
* `span=<value>`: number of following columns to affect
|
||||
(default: infinite).
|
||||
|
||||
### `style[<name>;<prop1>;<prop2>;...]`
|
||||
### `style[<name 1>,<name 2>,...;<prop1>;<prop2>;...]`
|
||||
|
||||
* Set the style for the named element `name`.
|
||||
* Set the style for the named element(s) `name`.
|
||||
* Note: this **must** be before the element is defined.
|
||||
* See [Styling Formspecs].
|
||||
|
||||
|
||||
### `style_type[<type>;<prop1>;<prop2>;...]`
|
||||
### `style_type[<type 1>,<type 2>,...;<prop1>;<prop2>;...]`
|
||||
|
||||
* Sets the style for all elements of type `type` which appear after this element.
|
||||
* Sets the style for all elements of type(s) `type` which appear after this element.
|
||||
* See [Styling Formspecs].
|
||||
|
||||
Migrating to Real Coordinates
|
||||
|
@ -2547,13 +2547,18 @@ Styling Formspecs
|
|||
|
||||
Formspec elements can be themed using the style elements:
|
||||
|
||||
style[<name>;<prop1>;<prop2>;...]
|
||||
style_type[<type>;<prop1>;<prop2>;...]
|
||||
style[<name 1>,<name 2>,...;<prop1>;<prop2>;...]
|
||||
style_type[<type 1>,<type 2>,...;<prop1>;<prop2>;...]
|
||||
|
||||
Where a prop is:
|
||||
|
||||
property_name=property_value
|
||||
|
||||
A name/type can optionally be a comma separated list of names/types, like so:
|
||||
|
||||
world_delete,world_create,world_configure
|
||||
button,image_button
|
||||
|
||||
For example:
|
||||
|
||||
style_type[button;bgcolor=#006699]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue