Skip to content

Commit e8b687d

Browse files
ClobberXDSmallJoker
authored andcommittedJun 17, 2018
Remove deprecated functions from menu_lua_api.txt (#7455)
1 parent 3d51607 commit e8b687d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed
 

‎doc/menu_lua_api.txt

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Minetest Lua Mainmenu API Reference 5.0.0
2-
========================================
2+
=========================================
33

44
Introduction
55
-------------
@@ -186,11 +186,14 @@ core.log(loglevel, line) (possible in async calls)
186186
^ loglevel one of "error", "action", "info", "verbose"
187187

188188
Settings:
189-
core.setting_set(name, value)
190-
core.setting_get(name) -> string or nil (possible in async calls)
191-
core.setting_setbool(name, value)
192-
core.setting_getbool(name) -> bool or nil (possible in async calls)
193-
core.setting_save() -> nil, save all settings to config file
189+
core.settings:set(name, value)
190+
core.settings:get(name) -> string or nil (possible in async calls)
191+
core.settings:set_bool(name, value)
192+
core.settings:get_bool(name) -> bool or nil (possible in async calls)
193+
core.settings:save() -> nil, save all settings to config file
194+
195+
For a complete list of methods of the Settings object see
196+
[lua_api.txt](https://github.com/minetest/minetest/blob/master/doc/lua_api.txt)
194197

195198
Worlds:
196199
core.get_worlds() -> list of worlds (possible in async calls)
@@ -248,8 +251,3 @@ Limitations of Async operations
248251
-Limited set of available functions
249252
e.g. No access to functions modifying menu like core.start,core.close,
250253
core.file_open_dialog
251-
252-
253-
Class reference
254-
----------------
255-
Settings: see lua_api.txt

0 commit comments

Comments
 (0)