Skip to content

Commit

Permalink
Exposing mame_ui_manager::show_menu() to LUA
Browse files Browse the repository at this point in the history
  • Loading branch information
npwoods committed Nov 29, 2024
1 parent 78849eb commit 122d807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/mame/luaengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,7 @@ void lua_engine::initialize()
ui_type["options"] = sol::property([] (mame_ui_manager &m) { return static_cast<core_options *>(&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);
Expand Down

0 comments on commit 122d807

Please sign in to comment.