diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 75a083bdd..fe5b1a626 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2133,6 +2133,15 @@ Elements * Show an image +### `animated_image[<X>,<Y>;<W>,<H>;<texture name>:<frame count>,<frame duration>]` + +* Show an animated image. The image is drawn like a "vertical_frames" tile + animation (See Tile animation definition), but uses a frame count/duration + for simplicity +* `<texture name>` is the image to use +* `<frame count>` is the number of frames animating the image +* `<frame duration>` is in milliseconds + ### `item_image[<X>,<Y>;<W>,<H>;<item name>]` * Show an inventory image of registered item/node @@ -2580,6 +2589,8 @@ Some types may inherit styles from parent types. ### Valid Properties +* animated_image + * noclip - boolean, set to true to allow the element to exceed formspec bounds. * box * noclip - boolean, set to true to allow the element to exceed formspec bounds. * Default to false in formspec_version version 3 or higher |