about summary refs log tree commit diff stats
path: root/src/area_popup.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-17 14:11:08 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-17 14:11:08 -0400
commit3cea704b86a60be2178d1faf5e1be0f927a8c56d (patch)
tree27e2ea2cd610c1915e8c6dfcc369d44bb9da0ab8 /src/area_popup.cpp
parent52657e9eaa7520a841f0eb384472dbde6522e748 (diff)
downloadlingo-ap-tracker-3cea704b86a60be2178d1faf5e1be0f927a8c56d.tar.gz
lingo-ap-tracker-3cea704b86a60be2178d1faf5e1be0f927a8c56d.tar.bz2
lingo-ap-tracker-3cea704b86a60be2178d1faf5e1be0f927a8c56d.zip
Don't show unreachable paintings as checked
Diffstat (limited to 'src/area_popup.cpp')
-rw-r--r--src/area_popup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 58d8897..ca3b352 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp
@@ -126,15 +126,15 @@ void AreaPopup::UpdateIndicators() {
126 if (AP_IsPaintingShuffle()) { 126 if (AP_IsPaintingShuffle()) {
127 for (int painting_id : map_area.paintings) { 127 for (int painting_id : map_area.paintings) {
128 const PaintingExit& painting = GD_GetPaintingExit(painting_id); 128 const PaintingExit& painting = GD_GetPaintingExit(painting_id);
129 bool checked = AP_IsPaintingChecked(painting.internal_id);
130 wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_;
131
132 mem_dc.DrawBitmap(*eye_ptr, {10, cur_height});
133 129
134 bool reachable = IsPaintingReachable(painting_id); 130 bool reachable = IsPaintingReachable(painting_id);
135 const wxColour* text_color = reachable ? wxWHITE : wxRED; 131 const wxColour* text_color = reachable ? wxWHITE : wxRED;
136 mem_dc.SetTextForeground(*text_color); 132 mem_dc.SetTextForeground(*text_color);
137 133
134 bool checked = reachable && AP_IsPaintingChecked(painting.internal_id);
135 wxBitmap* eye_ptr = checked ? &checked_eye_ : &unchecked_eye_;
136 mem_dc.DrawBitmap(*eye_ptr, {10, cur_height});
137
138 wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with friendly name. 138 wxSize item_extent = mem_dc.GetTextExtent(painting.internal_id); // TODO: Replace with friendly name.
139 mem_dc.DrawText(painting.internal_id, 139 mem_dc.DrawText(painting.internal_id,
140 {10 + 32 + 10, 140 {10 + 32 + 10,