From 122d807f18de605dd9b70305991380d3cfd40faa Mon Sep 17 00:00:00 2001 From: "U-ALDEBERAN\\Nate" Date: Fri, 29 Nov 2024 17:11:53 -0500 Subject: [PATCH] Exposing mame_ui_manager::show_menu() to LUA --- src/frontend/mame/luaengine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index d7375f3414094..ab0dfe79ef103 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -2093,6 +2093,7 @@ void lua_engine::initialize() ui_type["options"] = sol::property([] (mame_ui_manager &m) { return static_cast(&m.options()); }); ui_type["line_height"] = sol::property([] (mame_ui_manager &m) { return m.get_line_height(); }); ui_type["menu_active"] = sol::property(&mame_ui_manager::is_menu_active); + ui_type["show_menu"] = &mame_ui_manager::show_menu; ui_type["ui_active"] = sol::property(&mame_ui_manager::ui_active, &mame_ui_manager::set_ui_active); ui_type["single_step"] = sol::property(&mame_ui_manager::single_step, &mame_ui_manager::set_single_step); ui_type["show_fps"] = sol::property(&mame_ui_manager::show_fps, &mame_ui_manager::set_show_fps);