about summary refs log tree commit diff stats
path: root/src/area_popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/area_popup.cpp')
-rw-r--r--src/area_popup.cpp8
1 files changed, 6 insertions, 2 deletions
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 @@
2 2
3#include "ap_state.h" 3#include "ap_state.h"
4#include "game_data.h" 4#include "game_data.h"
5#include "tracker_config.h"
5#include "tracker_state.h" 6#include "tracker_state.h"
6 7
7AreaPopup::AreaPopup(wxWindow* parent, int area_id) 8AreaPopup::AreaPopup(wxWindow* parent, int area_id)
@@ -48,7 +49,8 @@ void AreaPopup::UpdateIndicators() {
48 wxSizer* container_sizer = 49 wxSizer* container_sizer =
49 section_labels_[section_id]->GetContainingSizer(); 50 section_labels_[section_id]->GetContainingSizer();
50 51
51 if (!AP_IsLocationVisible(location.classification)) { 52 if (!AP_IsLocationVisible(location.classification) &&
53 !(location.hunt && GetTrackerConfig().show_hunt_panels)) {
52 container_sizer->Hide(section_labels_[section_id]); 54 container_sizer->Hide(section_labels_[section_id]);
53 container_sizer->Hide(eye_indicators_[section_id]); 55 container_sizer->Hide(eye_indicators_[section_id]);
54 continue; 56 continue;
@@ -57,7 +59,9 @@ void AreaPopup::UpdateIndicators() {
57 container_sizer->Show(eye_indicators_[section_id]); 59 container_sizer->Show(eye_indicators_[section_id]);
58 } 60 }
59 61
60 bool checked = AP_HasCheckedGameLocation(location.ap_location_id); 62 bool checked =
63 AP_HasCheckedGameLocation(location.ap_location_id) ||
64 (location.hunt && AP_HasCheckedHuntPanel(location.ap_location_id));
61 bool reachable = IsLocationReachable(location.ap_location_id); 65 bool reachable = IsLocationReachable(location.ap_location_id);
62 const wxColour* text_color = reachable ? wxWHITE : wxRED; 66 const wxColour* text_color = reachable ? wxWHITE : wxRED;
63 67