aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2017-05-13 13:14:41 +0200
committerparamat <mat.gregory@virginmedia.com>2017-05-16 21:57:26 +0100
commit0120fe16a761f9e06c8c2877439db6a46d808143 (patch)
tree2c00303571b08c2484a637b5b50f2398f22fd347 /doc/lua_api.txt
parentfd32005b0f886450ada99f36460c1de58b6a832b (diff)
downloadminetest-0120fe16a761f9e06c8c2877439db6a46d808143.tar.gz
minetest-0120fe16a761f9e06c8c2877439db6a46d808143.tar.bz2
minetest-0120fe16a761f9e06c8c2877439db6a46d808143.zip
CSM: Document forgotten functions
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 4e2ec00c3..762446466 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1931,7 +1931,10 @@ Helper functions
* e.g. `string:split("a,b", ",") == {"a","b"}`
* `string:trim()`
* e.g. `string.trim("\n \t\tfoo bar\t ") == "foo bar"`
-* `minetest.pos_to_string({x=X,y=Y,z=Z}, decimal_places))`: returns `"(X,Y,Z)"`
+* `minetest.wrap_text(str, limit)`: returns a string
+ * Adds new lines to the string to keep it within the specified character limit
+ * limit: Maximal amount of characters in one line
+* `minetest.pos_to_string({x=X,y=Y,z=Z}, decimal_places))`: returns string `"(X,Y,Z)"`
* Convert position to a printable string
Optional: 'decimal_places' will round the x, y and z of the pos to the given decimal place.
* `minetest.string_to_pos(string)`: returns a position