From 0a8652e03f82e8bda55dcea445ce88b1c5038d1c Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 2 Sep 2016 18:04:38 -0400 Subject: More new features for UI graphics viewer - Mouse over GFX tiles to reveal pixel values - Mouse over tilemap to reveal tile codes and colors - UI tilemap scrolling controls are now orientation-relative - Make mouse visible everywhere in UI graphics viewer by treating it like a menu - Add all necessary getters to tilemap_t and a few more (nw) - Add comment about role of decoder in tilemap creation (nw) --- src/frontend/mame/ui/ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/frontend/mame/ui/ui.cpp') diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index 5c7f4a54a39..85374c14c64 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -754,7 +754,8 @@ void mame_ui_manager::show_mouse(bool status) bool mame_ui_manager::is_menu_active(void) { - return m_handler_callback_type == ui_callback_type::MENU; + return m_handler_callback_type == ui_callback_type::MENU + || m_handler_callback_type == ui_callback_type::VIEWER; } @@ -1155,7 +1156,7 @@ UINT32 mame_ui_manager::handler_ingame(render_container &container) if (!is_paused) machine().pause(); using namespace std::placeholders; - set_handler(ui_callback_type::GENERAL, std::bind(&ui_gfx_ui_handler, _1, std::ref(*this), is_paused)); + set_handler(ui_callback_type::VIEWER, std::bind(&ui_gfx_ui_handler, _1, std::ref(*this), is_paused)); return is_paused ? 1 : 0; } -- cgit v1.2.3