about summary refs log tree commit diff stats
path: root/src/tracker_panel.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-09 11:14:10 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-09 11:14:10 -0400
commit53a2ec277f20a7c260e80af527659e769f6d2ac6 (patch)
tree93527b1a1458352aa2d35916a3621cd144d48e0c /src/tracker_panel.cpp
parent884549457f8f5d9a13fd575ddf70aa317cd752ed (diff)
downloadlingo-ap-tracker-53a2ec277f20a7c260e80af527659e769f6d2ac6.tar.gz
lingo-ap-tracker-53a2ec277f20a7c260e80af527659e769f6d2ac6.tar.bz2
lingo-ap-tracker-53a2ec277f20a7c260e80af527659e769f6d2ac6.zip
Support reduce_checks
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r--src/tracker_panel.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 736db82..90b8eb9 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp
@@ -52,7 +52,8 @@ void TrackerPanel::OnPaint(wxPaintEvent &event) {
52 52
53void TrackerPanel::OnMouseMove(wxMouseEvent &event) { 53void TrackerPanel::OnMouseMove(wxMouseEvent &event) {
54 for (AreaIndicator &area : areas_) { 54 for (AreaIndicator &area : areas_) {
55 if (area.real_x1 <= event.GetX() && event.GetX() < area.real_x2 && 55 if (area.active &&
56 area.real_x1 <= event.GetX() && event.GetX() < area.real_x2 &&
56 area.real_y1 <= event.GetY() && event.GetY() < area.real_y2) { 57 area.real_y1 <= event.GetY() && event.GetY() < area.real_y2) {
57 area.popup->Show(); 58 area.popup->Show();
58 } else { 59 } else {
@@ -94,6 +95,13 @@ void TrackerPanel::Redraw() {
94 const wxBrush *brush_color = wxGREY_BRUSH; 95 const wxBrush *brush_color = wxGREY_BRUSH;
95 96
96 const MapArea &map_area = GD_GetMapArea(area.area_id); 97 const MapArea &map_area = GD_GetMapArea(area.area_id);
98 if (map_area.exclude_reduce && AP_IsReduceChecks()) {
99 area.active = false;
100 continue;
101 } else {
102 area.active = true;
103 }
104
97 bool has_reachable_unchecked = false; 105 bool has_reachable_unchecked = false;
98 bool has_unreachable_unchecked = false; 106 bool has_unreachable_unchecked = false;
99 for (int section_id = 0; section_id < map_area.locations.size(); 107 for (int section_id = 0; section_id < map_area.locations.size();