From 712313d825db7ce7c9d4457f7564b27d3dd4ce64 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Feb 2025 15:11:23 -0500 Subject: Added a scrollbar to subway reports --- src/subway_map.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/subway_map.h') diff --git a/src/subway_map.h b/src/subway_map.h index 6aa31f5..b04c2fd 100644 --- a/src/subway_map.h +++ b/src/subway_map.h @@ -19,6 +19,8 @@ #include "game_data.h" #include "network_set.h" +class ReportPopup; + class SubwayMap : public wxPanel { public: SubwayMap(wxWindow *parent); @@ -46,6 +48,7 @@ class SubwayMap : public wxPanel { wxPoint RenderPosToMapPos(wxPoint pos) const; void EvaluateScroll(wxPoint pos); + void EvaluateHover(); void SetZoomPos(wxPoint pos); void SetScrollSpeed(int scroll_x, int scroll_y); @@ -55,8 +58,6 @@ class SubwayMap : public wxPanel { wxImage map_image_; wxImage owl_image_; - wxBitmap unchecked_eye_; - wxBitmap checked_eye_; wxBitmap rendered_; int render_x_ = 0; @@ -88,6 +89,8 @@ class SubwayMap : public wxPanel { std::optional actual_hover_; bool sticky_hover_ = false; + ReportPopup *report_popup_; + NetworkSet networks_; std::set checked_paintings_; -- cgit 1.4.1