about summary refs log tree commit diff stats
path: root/area_popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'area_popup.cpp')
-rw-r--r--area_popup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/area_popup.cpp b/area_popup.cpp index e46e4ec..4cc3c63 100644 --- a/area_popup.cpp +++ b/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_state.h"
5 6
6AreaPopup::AreaPopup(wxWindow* parent, int area_id) 7AreaPopup::AreaPopup(wxWindow* parent, int area_id)
7 : wxPanel(parent, wxID_ANY), area_id_(area_id) { 8 : wxPanel(parent, wxID_ANY), area_id_(area_id) {
@@ -43,7 +44,9 @@ void AreaPopup::UpdateIndicators() {
43 for (int section_id = 0; section_id < map_area.locations.size(); 44 for (int section_id = 0; section_id < map_area.locations.size();
44 section_id++) { 45 section_id++) {
45 bool checked = GetAPState().HasCheckedGameLocation(area_id_, section_id); 46 bool checked = GetAPState().HasCheckedGameLocation(area_id_, section_id);
46 const wxColour* text_color = checked ? wxWHITE : wxGREEN; 47 bool reachable =
48 GetTrackerState().IsLocationReachable(area_id_, section_id);
49 const wxColour* text_color = reachable ? wxWHITE : wxRED;
47 50
48 section_labels_[section_id]->SetForegroundColour(*text_color); 51 section_labels_[section_id]->SetForegroundColour(*text_color);
49 eye_indicators_[section_id]->SetChecked(checked); 52 eye_indicators_[section_id]->SetChecked(checked);