summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2020-05-02 07:32:02 -0400
committerGitHub <noreply@github.com>2020-05-02 13:32:02 +0200
commitcb9a44ef8998ff66c00187efc508bf8bd6cc2d67 (patch)
treea7a05c71863fb93c4764a0f1ce302ef4dfc3d8a4 /doc
parent5c96f57782d967010f711c3806fdd18caa6e3e32 (diff)
downloadminetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.tar.gz
minetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.tar.bz2
minetest-cb9a44ef8998ff66c00187efc508bf8bd6cc2d67.zip
Add 'content_offset' and 'padding' style properties for buttons (#9661)
* Add padding and content_offset style properties to buttons
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 988acde89..1ffb5c39b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2697,10 +2697,14 @@ Some types may inherit styles from parent types.
* bgimg - standard background image. Defaults to none.
* bgimg_hovered - background image when hovered. Defaults to bgimg when not provided.
* bgimg_middle - Makes the bgimg textures render in 9-sliced mode and defines the middle rect.
- See background9[] documentation for more details
+ See background9[] documentation for more details. This property also pads the
+ button's content when set.
* bgimg_pressed - background image when pressed. Defaults to bgimg when not provided.
* border - boolean, draw border. Set to false to hide the bevelled button pane. Default true.
+ * content_offset - 2d vector, shifts the position of the button's content without resizing it.
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
+ * padding - rect, adds space between the edges of the button and the content. This value is
+ relative to bgimg_middle.
* textcolor - color, default white.
* checkbox
* noclip - boolean, set to true to allow the element to exceed formspec bounds.