Skip to content

Commit 1eaff3d

Browse files
authoredAug 27, 2020
Improve set_texture_mod documentation (#10339)
Properly documents the select_x_by_camera values
1 parent d052593 commit 1eaff3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎doc/lua_api.txt

+9
Original file line numberDiff line numberDiff line change
@@ -6100,6 +6100,9 @@ object you are working with still exists.
61006100
* `set_yaw(radians)`: sets the yaw (heading).
61016101
* `get_yaw()`: returns number in radians
61026102
* `set_texture_mod(mod)`
6103+
* Set a texture modifier to the base texture, for sprites and meshes.
6104+
* When calling `set_texture_mod` again, the previous one is discarded.
6105+
* `mod` the texture modifier. See [Texture modifiers].
61036106
* `get_texture_mod()` returns current texture modifier
61046107
* `set_sprite(p, num_frames, framelength, select_x_by_camera)`
61056108
* Specifies and starts a sprite animation
@@ -6110,6 +6113,12 @@ object you are working with still exists.
61106113
* `framelength`: Time per animated frame in seconds, default: `0.2`
61116114
* `select_x_by_camera`: Only for visual = `sprite`. Changes the frame `x`
61126115
position according to the view direction. default: `false`.
6116+
* First column: subject facing the camera
6117+
* Second column: subject looking to the left
6118+
* Third column: subject backing the camera
6119+
* Fourth column: subject looking to the right
6120+
* Fifth column: subject viewed from above
6121+
* Sixth column: subject viewed from below
61136122
* `get_entity_name()` (**Deprecated**: Will be removed in a future version)
61146123
* `get_luaentity()`
61156124

0 commit comments

Comments
 (0)