diff options
author | 2016-09-02 18:04:38 -0400 | |
---|---|---|
committer | 2016-09-02 18:04:38 -0400 | |
commit | 0a8652e03f82e8bda55dcea445ce88b1c5038d1c (patch) | |
tree | 9ab289431cbee5b705eea93efa7ea01cb6cf78be /src/frontend/mame/ui/ui.cpp | |
parent | c357acd3dfe1c2a508df2974d9dd135a7e5cb8e9 (diff) |
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)
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |