From 4adfe42a300a597cf8e7036cd189d197b08a7f01 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 17 Nov 2023 11:43:13 -0500 Subject: Show hunt panels option --- src/area_popup.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/area_popup.cpp') diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 0657ea3..6bbc0cf 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp @@ -2,6 +2,7 @@ #include "ap_state.h" #include "game_data.h" +#include "tracker_config.h" #include "tracker_state.h" AreaPopup::AreaPopup(wxWindow* parent, int area_id) @@ -48,7 +49,8 @@ void AreaPopup::UpdateIndicators() { wxSizer* container_sizer = section_labels_[section_id]->GetContainingSizer(); - if (!AP_IsLocationVisible(location.classification)) { + if (!AP_IsLocationVisible(location.classification) && + !(location.hunt && GetTrackerConfig().show_hunt_panels)) { container_sizer->Hide(section_labels_[section_id]); container_sizer->Hide(eye_indicators_[section_id]); continue; @@ -57,7 +59,9 @@ void AreaPopup::UpdateIndicators() { container_sizer->Show(eye_indicators_[section_id]); } - bool checked = AP_HasCheckedGameLocation(location.ap_location_id); + bool checked = + AP_HasCheckedGameLocation(location.ap_location_id) || + (location.hunt && AP_HasCheckedHuntPanel(location.ap_location_id)); bool reachable = IsLocationReachable(location.ap_location_id); const wxColour* text_color = reachable ? wxWHITE : wxRED; -- cgit 1.4.1