From 96ca1dbd965df08ed4ab1f23053690c9ce540f94 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 14 Oct 2021 08:00:04 +1100 Subject: More user experience improvements: frontend: Allow clicking the adjuster arrows on menu items. This allows things like video options and DIP switches to be configured using a mouse only. Also fixed a bug preventing paging menus with a mouse if the first item scrolled off the bottom is not selectable. debugger: Allow wplist and bplist to accept a CPU argument to list breakpoints/watchpoints for a single CPU only. debugger: Fixed some corner cases in address space syntax in memory accesses, and allowed memory region accesses to use tags relative to the visible CPU. emu/softlist.cpp: Ignore notes elements when loading software lists. It's effectively a comment that isn't a comment syntactically, it's being used for things that are not useful to display in the internal UI, and it slows down startup. docs: Updated three more pages of debugger documentation. Also updated more of the built-in debugger help. minimaws: Fixed up schema for software list notes, made sofware list notes display initially collapsed. --- src/frontend/mame/ui/submenu.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/frontend/mame/ui/submenu.cpp') diff --git a/src/frontend/mame/ui/submenu.cpp b/src/frontend/mame/ui/submenu.cpp index d6d237cabd3..382524b636c 100644 --- a/src/frontend/mame/ui/submenu.cpp +++ b/src/frontend/mame/ui/submenu.cpp @@ -152,9 +152,9 @@ submenu::submenu(mame_ui_manager &mui, render_container &container, std::vector< { core_options *opts = nullptr; if (m_driver == nullptr) - opts = dynamic_cast(&mui.machine().options()); + opts = dynamic_cast(&mui.machine().options()); else - opts = dynamic_cast(options); + opts = dynamic_cast(options); for (option & sm_option : m_options) { @@ -358,9 +358,9 @@ void submenu::populate(float &customtop, float &custombottom) { case OPTION_BOOLEAN: item_append_on_off(_(sm_option->description), - sm_option->options->bool_value(sm_option->name), - 0, - static_cast(&(*sm_option))); + sm_option->options->bool_value(sm_option->name), + 0, + static_cast(&(*sm_option))); break; case OPTION_INTEGER: { @@ -378,9 +378,9 @@ void submenu::populate(float &customtop, float &custombottom) } arrow_flags = get_arrow_flags(i_min, i_max, i_cur); item_append(_(sm_option->description), - sm_option->entry->value(), - arrow_flags, - static_cast(&(*sm_option))); + sm_option->entry->value(), + arrow_flags, + static_cast(&(*sm_option))); } break; case OPTION_FLOAT: @@ -400,9 +400,9 @@ void submenu::populate(float &customtop, float &custombottom) arrow_flags = get_arrow_flags(f_min, f_max, f_cur); std::string tmptxt = string_format("%g", f_cur); item_append(_(sm_option->description), - tmptxt, - arrow_flags, - static_cast(&(*sm_option))); + tmptxt, + arrow_flags, + static_cast(&(*sm_option))); } break; case OPTION_STRING: @@ -418,8 +418,8 @@ void submenu::populate(float &customtop, float &custombottom) default: arrow_flags = FLAG_RIGHT_ARROW; item_append(_(sm_option->description), - sm_option->options->value(sm_option->name), - arrow_flags, static_cast(&(*sm_option))); + sm_option->options->value(sm_option->name), + arrow_flags, static_cast(&(*sm_option))); break; } break; -- cgit v1.2.3-70-g09d2