From 7dffd08c1a068e5e0748a046fd8a1e884947b597 Mon Sep 17 00:00:00 2001 From: v-rob Date: Sun, 1 Mar 2020 06:39:57 -0800 Subject: Add multiple element selection to `style` and `style_type` (#9380) --- doc/lua_api.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'doc/lua_api.txt') 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=`: number of following columns to affect (default: infinite). -### `style[;;;...]` +### `style[,,...;;;...]` -* 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[;;;...]` +### `style_type[,,...;;;...]` -* 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[;;;...] - style_type[;;;...] + style[,,...;;;...] + style_type[,,...;;;...] 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] -- cgit v1.2.3