|
1 | 1 | Minetest Lua Mainmenu API Reference 5.0.0
|
2 |
| -======================================== |
| 2 | +========================================= |
3 | 3 |
|
4 | 4 | Introduction
|
5 | 5 | -------------
|
@@ -186,11 +186,14 @@ core.log(loglevel, line) (possible in async calls)
|
186 | 186 | ^ loglevel one of "error", "action", "info", "verbose"
|
187 | 187 |
|
188 | 188 | 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) |
194 | 197 |
|
195 | 198 | Worlds:
|
196 | 199 | core.get_worlds() -> list of worlds (possible in async calls)
|
@@ -248,8 +251,3 @@ Limitations of Async operations
|
248 | 251 | -Limited set of available functions
|
249 | 252 | e.g. No access to functions modifying menu like core.start,core.close,
|
250 | 253 | core.file_open_dialog
|
251 |
| - |
252 |
| - |
253 |
| -Class reference |
254 |
| ----------------- |
255 |
| -Settings: see lua_api.txt |
0 commit comments