diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6ff7f802a..4b7132828 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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] |