summaryrefslogtreecommitdiff
path: root/doc/menu_lua_api.txt
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-04-05 14:12:36 +0200
committersapier <Sapier at GMX dot net>2014-04-27 21:53:13 +0200
commit1838a3fd696782b1733a435bbb25accf3e40d1f3 (patch)
tree9edee41b26d5307b1d2e4626e65bb372a3d8cab7 /doc/menu_lua_api.txt
parent8d315347100f1d261bb496b6c73f8cab5d2b7a41 (diff)
downloadminetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.tar.gz
minetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.tar.bz2
minetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.zip
Add support for dpi based HUD scaling
Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen
Diffstat (limited to 'doc/menu_lua_api.txt')
-rw-r--r--doc/menu_lua_api.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt
index 87e37dd0d..321f74a8c 100644
--- a/doc/menu_lua_api.txt
+++ b/doc/menu_lua_api.txt
@@ -116,6 +116,14 @@ engine.file_open_dialog(formname,caption)
^ -if dialog was canceled "_cancelled"
^ will be added to fieldname value is set to formname itself
^ returns nil or selected file/folder
+engine.get_screen_info()
+^ returns {
+ density = <screen density 0.75,1.0,2.0,3.0 ... (dpi)>,
+ display_width = <width of display>,
+ display_height = <height of display>,
+ window_width = <current window width>,
+ window_height = <current window height>
+ }
Games:
engine.get_game(index)
@@ -198,7 +206,7 @@ engine.handle_async(async_job,parameters,finished)
^ execute a function asynchronously
^ async_job is a function receiving one parameter and returning one parameter
^ parameters parameter table passed to async_job
-^ finished function to be called once async_job has finished
+^ finished function to be called once async_job has finished
^ the result of async_job is passed to this function
Limitations of Async operations