From 664800b2adda44039a85c3566b4ed958abff8b95 Mon Sep 17 00:00:00 2001 From: v-rob Date: Wed, 6 May 2020 10:36:02 -0700 Subject: FormSpec: Add universal style selector `*` (#9718) --- doc/lua_api.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 948e0f89e..961e1ff37 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2567,7 +2567,7 @@ Elements * Set the style for the element(s) matching `selector` by name. * `selector` can be one of: - * `` - An element name. + * `` - An element name. Includes `*`, which represents every element. * `:` - An element name, a colon, and one or more states. * `state` is a list of states separated by the `+` character. * If a state is provided, the style will only take effect when the element is in that state. @@ -2580,7 +2580,7 @@ Elements * Set the style for the element(s) matching `selector` by type. * `selector` can be one of: - * `` - An element type. + * `` - An element type. Includes `*`, which represents every element. * `:` - An element type, a colon, and one or more states. * `state` is a list of states separated by the `+` character. * If a state is provided, the style will only take effect when the element is in that state. @@ -2647,6 +2647,8 @@ A name/type can optionally be a comma separated list of names/types, like so: world_delete,world_create,world_configure button,image_button +A `*` type can be used to select every element in the formspec. + Any name/type in the list can also be accompanied by a `+`-separated list of states, like so: world_delete:hovered+pressed -- cgit v1.2.3