diff options
author | Hugues Ross <hugues.ross@gmail.com> | 2020-04-11 16:39:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 21:39:30 +0100 |
commit | f780bae05cc2fdd23a6d7326c770783da8d94ea3 (patch) | |
tree | 31d7e764d86e9f5731c3d3a4e35c598cdc7f777c /src/script | |
parent | ba3587e7769113fed9a076ae2e4d2153686fb163 (diff) | |
download | minetest-f780bae05cc2fdd23a6d7326c770783da8d94ea3.tar.gz minetest-f780bae05cc2fdd23a6d7326c770783da8d94ea3.tar.bz2 minetest-f780bae05cc2fdd23a6d7326c770783da8d94ea3.zip |
Formspecs: Add state-selection to style elements (#9378)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 76db7ed13..867e84e13 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -571,9 +571,10 @@ int ModApiMainMenu::l_show_keys_menu(lua_State *L) sanity_check(engine != NULL); GUIKeyChangeMenu *kmenu = new GUIKeyChangeMenu(RenderingEngine::get_gui_env(), - engine->m_parent, - -1, - engine->m_menumanager); + engine->m_parent, + -1, + engine->m_menumanager, + engine->m_texture_source); kmenu->drop(); return 0; } @@ -904,12 +905,12 @@ int ModApiMainMenu::l_show_path_select_dialog(lua_State *L) GUIFileSelectMenu* fileOpenMenu = new GUIFileSelectMenu(RenderingEngine::get_gui_env(), - engine->m_parent, - -1, - engine->m_menumanager, - title, - formname, - is_file_select); + engine->m_parent, + -1, + engine->m_menumanager, + title, + formname, + is_file_select); fileOpenMenu->setTextDest(engine->m_buttonhandler); fileOpenMenu->drop(); return 0; |