From 1838a3fd696782b1733a435bbb25accf3e40d1f3 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 5 Apr 2014 14:12:36 +0200 Subject: Add support for dpi based HUD scaling Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen --- doc/menu_lua_api.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') 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 = , + display_width = , + display_height = , + window_width = , + 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 -- cgit v1.2.3