about summary refs log tree commit diff stats
path: root/src/area_popup.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
commit4adfe42a300a597cf8e7036cd189d197b08a7f01 (patch)
tree684a9f825bc1ae919ea68049a941f6190b8b4f96 /src/area_popup.cpp
parenta9bc708c7eeeada4c59952ce71aa071175f8f27d (diff)
downloadlingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.gz
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.bz2
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.zip
Show hunt panels option
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