diff options
author | Thomas--S <Thomas--S@users.noreply.github.com> | 2020-12-15 19:06:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 19:06:36 +0100 |
commit | d0a38f694d483fbd9c0554c8d7175a94097fd67e (patch) | |
tree | 67ab895363386282115cf6c0b34a9303c38b9a15 /doc | |
parent | 3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f (diff) | |
download | minetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.tar.gz minetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.tar.bz2 minetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.zip |
Formspec: Allow to specify frame loop for model[] (#10679)
Add the ability to specify an animation frame loop range for the model[] formspec element.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f5c07fe85..ddb6d4e19 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2277,7 +2277,7 @@ Elements * `frame duration`: Milliseconds between each frame. `0` means the frames don't advance. * `frame start` (Optional): The index of the frame to start on. Default `1`. -### `model[<X>,<Y>;<W>,<H>;<name>;<mesh>;<textures>;<rotation X,Y>;<continuous>;<mouse control>]` +### `model[<X>,<Y>;<W>,<H>;<name>;<mesh>;<textures>;<rotation X,Y>;<continuous>;<mouse control>;<frame loop range>]` * Show a mesh model. * `name`: Element name that can be used for styling @@ -2288,6 +2288,9 @@ Elements The axes are euler angles in degrees. * `continuous` (Optional): Whether the rotation is continuous. Default `false`. * `mouse control` (Optional): Whether the model can be controlled with the mouse. Default `true`. +* `frame loop range` (Optional): Range of the animation frames. + * Defaults to the full range of all available frames. + * Syntax: `<begin>,<end>` ### `item_image[<X>,<Y>;<W>,<H>;<item name>]` @@ -2789,6 +2792,7 @@ Some types may inherit styles from parent types. * image_button * item_image_button * label +* model * pwdfield, inherits from field * scrollbar * tabheader |