diff options
author | bigfoot547 <bigfoot547@users.noreply.github.com> | 2017-04-14 02:04:41 -0500 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-14 09:04:41 +0200 |
commit | e80a83d1cb9d01273ddca1c075c25cd01c291ca7 (patch) | |
tree | 277bc42c60466ca4e35fd29072c3eae5e6511391 /doc | |
parent | 6f641df8a52ccb84452a289416527e3d1a36621a (diff) | |
download | minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.gz minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.bz2 minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.zip |
[CSM] Add function to set minimap shape (#5569)
* [CSM] Add function to set minimap shape
Also deprecates `toggle_shape`.
* Oh fish, I messed that one up!
* Fix Style
* Sorry, I missed something
I still had the `luamethod` call in there!
* Add getters
* Remove extra line
* Remove useless variable
Please review again @nerzhul . Thanks!
* Satisfy nerzhul
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index 43a317a84..b2aeb3f25 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -779,7 +779,8 @@ An interface to manipulate minimap on client UI * `get_angle()`: returns the current minimap angle in degrees * `set_mode(mode)`: sets the minimap mode (0 to 6) * `get_mode()`: returns the current minimap mode -* `toggle_shape()`: toggles minimap shape to round or square. +* `set_shape(shape)`: Sets the minimap shape. (0 = square, 1 = round) +* `get_shape()`: Gets the minimap shape. (0 = square, 1 = round) ### LocalPlayer An interface to retrieve information about the player. The player is |