summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/selsoft.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-11 07:13:50 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-11 07:13:50 +1100
commitfc906d7a1783f93578cedd1c162015d6182d8e3b (patch)
tree4b9b2d8ea322f436f2d4a11446a09cbb0aea2a9c /src/frontend/mame/ui/selsoft.cpp
parent1eb49fc86d29be70d5177ecf68d20db27b46ee73 (diff)
frontend: Recovered precious vertical space for system/software names!
Reduced the height of the bottom info panel by one line. The system shortname or list/software name tuple are now only displayed in the info box on the right. It's a bit out-of-the-way, but it's not something you need to see all the time. The main reason for having the quit or return to previous menu item always visible is to make it easy for someone to quit if they only have a mouse. However, we don't need waste space on the menu for this when we have a toolbar. Users without a mouse can exit using the keyboard/controller UI Cancel input (given how important this is, it's unlikely they won't have it mapped to something usable). There's now a toolbar button on the extreme right for returning to the previous menu or quitting. The tooltip and icon are appropriately context-sensitive. This recovers one line on the system selection menu, and two on the software selection menu since the separator is no longer needed. Replaced the toolbar icons bitmaps with SVGs. Colours/shapes may be tweaked before the release if people have good suggestions Flipped the simple system selection menu so the description is on the left. Moved the handling of special cases for the final menu item out of the base menu class. It's still hacky having it handled there at all, but it's less hacky without if menus that want to do something different can do it themselves.
Diffstat (limited to 'src/frontend/mame/ui/selsoft.cpp')
-rw-r--r--src/frontend/mame/ui/selsoft.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/selsoft.cpp b/src/frontend/mame/ui/selsoft.cpp
index 90943922cda..7e8010e9fa5 100644
--- a/src/frontend/mame/ui/selsoft.cpp
+++ b/src/frontend/mame/ui/selsoft.cpp
@@ -581,11 +581,10 @@ void menu_select_software::populate(float &customtop, float &custombottom)
m_displaylist[curitem].get().parentname.empty() ? flags_ui : (FLAG_INVERT | flags_ui), (void *)&m_displaylist[curitem].get());
}
- item_append(menu_item_type::SEPARATOR, flags_ui);
-
// configure the custom rendering
+ skip_main_items = 0;
customtop = 4.0f * ui().get_line_height() + 5.0f * ui().box_tb_border();
- custombottom = 5.0f * ui().get_line_height() + 4.0f * ui().box_tb_border();
+ custombottom = 4.0f * ui().get_line_height() + 4.0f * ui().box_tb_border();
if (old_software != -1)
{