summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2020-09-16 17:10:17 +0200
committerSmallJoker <mk939@ymail.com>2020-11-23 21:28:25 +0100
commit78273027bf4bbee7488c76c6d65f85381ec7c0ba (patch)
tree2722d203dfb754549a34e58a4e859bc839ca68f8 /doc/lua_api.txt
parent43bc3a124541d014d7a2678d72bf3b54ff2d6e97 (diff)
downloadminetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.tar.gz
minetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.tar.bz2
minetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.zip
Add sound to press event of some formspecs elements (#10402)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ef283f0c1..27f871618 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2843,11 +2843,14 @@ Some types may inherit styles from parent types.
* 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.
+ * sound - a sound to be played when clicked.
* textcolor - color, default white.
* checkbox
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
+ * sound - a sound to be played when clicked.
* dropdown
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
+ * sound - a sound to be played when clicked.
* field, pwdfield, textarea
* border - set to false to hide the textbox background and border. Default true.
* font - Sets font type. See button `font` property for more information.
@@ -2874,10 +2877,12 @@ Some types may inherit styles from parent types.
* fgimg_pressed - image when pressed. Defaults to fgimg when not provided.
* This is deprecated, use states instead.
* NOTE: The parameters of any given image_button will take precedence over fgimg/fgimg_pressed
+ * sound - a sound to be played when clicked.
* scrollbar
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
* tabheader
* noclip - boolean, set to true to allow the element to exceed formspec bounds.
+ * sound - a sound to be played when clicked.
* textcolor - color. Default white.
* table, textlist
* font - Sets font type. See button `font` property for more information.