Skip to content

Commit

Permalink
ui/selmenu.cpp, debugger/debugimgui.cpp: Hacked stuff out until it bu…
Browse files Browse the repository at this point in the history
…ilds again.
  • Loading branch information
cuavas committed Apr 9, 2024
1 parent b000e4e commit 5a3cbd5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/frontend/mame/ui/selmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ std::pair<char const *, char const *> RIGHT_PANEL_NAMES[RP_LAST + 1] = {
{ "image", N_("Images") },
{ "info", N_("Info") } };

enum
{
HOVER_B_FAV = -1000,
HOVER_B_EXPORT,
HOVER_B_AUDIT,
HOVER_B_DATS,
HOVER_BACKTRACK
};

enum
{
FIRST_VIEW = 0,
Expand Down Expand Up @@ -1431,6 +1440,7 @@ void menu_select_launch::draw_toolbar(float x1, float y1, float x2, float y2)

// add backtrack button
rgb_t color(0xffcccccc);
#if 0
if (mouse_in_rect(backtrack_pos, y1, x2, y2))
{
set_hover(HOVER_BACKTRACK);
Expand All @@ -1442,6 +1452,7 @@ void menu_select_launch::draw_toolbar(float x1, float y1, float x2, float y2)
text_layout::text_justify::RIGHT, 1.0f - lr_border(), ypos,
ui().colors().background_color());
}
#endif
container().add_quad(
backtrack_pos, y1, x2, y2,
color,
Expand All @@ -1455,6 +1466,7 @@ void menu_select_launch::draw_toolbar(float x1, float y1, float x2, float y2)
auto const bitmap = toolbar_bitmaps[z];
x2 = x1 + x_size;
color = rgb_t (0xffcccccc);
#if 0
if (mouse_in_rect(x1, y1, x2, y2))
{
bool const need_selection = (TOOLBAR_BITMAP_FAVORITE == bitmap) || (TOOLBAR_BITMAP_INFO == bitmap);
Expand All @@ -1470,6 +1482,7 @@ void menu_select_launch::draw_toolbar(float x1, float y1, float x2, float y2)
text_layout::text_justify::CENTER, (x1 + x2) * 0.5f, ypos,
ui().colors().background_color());
}
#endif
container().add_quad(
x1, y1, x2, y2,
color,
Expand Down Expand Up @@ -1606,6 +1619,7 @@ bool menu_select_launch::handle_events(u32 flags, event &ev)
}
break;

#if 0
// if we are hovering over a valid item, select it with a single click
case ui_event::type::MOUSE_DOWN:
{
Expand Down Expand Up @@ -1639,6 +1653,7 @@ bool menu_select_launch::handle_events(u32 flags, event &ev)
}
}
break;
#endif

// caught scroll event
case ui_event::type::MOUSE_WHEEL:
Expand Down
2 changes: 2 additions & 0 deletions src/osd/modules/debugger/debugimgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,13 @@ bool debug_imgui::get_view_source(void* data, int idx, const char** out_text)

void debug_imgui::handle_mouse()
{
#if 0
m_prev_mouse_button = m_mouse_button;
m_machine->ui_input().find_mouse(&m_mouse_x, &m_mouse_y, &m_mouse_button);
ImGuiIO& io = ImGui::GetIO();
io.MousePos = ImVec2(m_mouse_x,m_mouse_y);
io.MouseDown[0] = m_mouse_button;
#endif
}

void debug_imgui::handle_mouse_views()
Expand Down

0 comments on commit 5a3cbd5

Please sign in to comment.