summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/submenu.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-14 08:00:04 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-14 08:00:04 +1100
commit96ca1dbd965df08ed4ab1f23053690c9ce540f94 (patch)
tree7c357aa9efe72e7e9c8b6e7084cec9fa859e214a /src/frontend/mame/ui/submenu.cpp
parent75f9660fa29d3d68a522fa96dbc92ef02baff2b8 (diff)
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.
Diffstat (limited to 'src/frontend/mame/ui/submenu.cpp')
-rw-r--r--src/frontend/mame/ui/submenu.cpp26
1 files changed, 13 insertions, 13 deletions
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<core_options*>(&mui.machine().options());
+ opts = dynamic_cast<core_options *>(&mui.machine().options());
else
- opts = dynamic_cast<core_options*>(options);
+ opts = dynamic_cast<core_options *>(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<void*>(&(*sm_option)));
+ sm_option->options->bool_value(sm_option->name),
+ 0,
+ static_cast<void*>(&(*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<void*>(&(*sm_option)));
+ sm_option->entry->value(),
+ arrow_flags,
+ static_cast<void*>(&(*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<void*>(&(*sm_option)));
+ tmptxt,
+ arrow_flags,
+ static_cast<void*>(&(*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<void*>(&(*sm_option)));
+ sm_option->options->value(sm_option->name),
+ arrow_flags, static_cast<void*>(&(*sm_option)));
break;
}
break;