about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 14:58:51 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 14:58:51 -0500
commitadbc2622db49ef90b48392cb9db8ee8d0ed5d704 (patch)
tree9cbed3917e80be6b7d7e4b73a8c3736a21d4aa7d /src
parent6e0f691a96fb54d99cc265088d2d8f389519af0a (diff)
downloadlingo-ap-tracker-adbc2622db49ef90b48392cb9db8ee8d0ed5d704.tar.gz
lingo-ap-tracker-adbc2622db49ef90b48392cb9db8ee8d0ed5d704.tar.bz2
lingo-ap-tracker-adbc2622db49ef90b48392cb9db8ee8d0ed5d704.zip
Paintings in area popups now use owl icon
Diffstat (limited to 'src')
-rw-r--r--src/area_popup.cpp6
-rw-r--r--src/area_popup.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 9cc1208..2ba9586 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp
@@ -156,7 +156,7 @@ void AreaPopup::UpdateIndicators() {
156 mem_dc.SetTextForeground(*text_color); 156 mem_dc.SetTextForeground(*text_color);
157 157
158 bool checked = reachable && AP_IsPaintingChecked(painting.internal_id); 158 bool checked = reachable && AP_IsPaintingChecked(painting.internal_id);
159 const wxBitmap* eye_ptr = checked ? checked_eye_ : unchecked_eye_; 159 const wxBitmap* eye_ptr = checked ? checked_owl_ : unchecked_owl_;
160 mem_dc.DrawBitmap(*eye_ptr, {FromDIP(10), cur_height}); 160 mem_dc.DrawBitmap(*eye_ptr, {FromDIP(10), cur_height});
161 161
162 wxSize item_extent = mem_dc.GetTextExtent(painting.display_name); 162 wxSize item_extent = mem_dc.GetTextExtent(painting.display_name);
@@ -187,4 +187,8 @@ void AreaPopup::LoadIcons() {
187 FromDIP(wxSize{32, 32})); 187 FromDIP(wxSize{32, 32}));
188 checked_eye_ = 188 checked_eye_ =
189 GetTheIconCache().GetIcon("assets/checked.png", FromDIP(wxSize{32, 32})); 189 GetTheIconCache().GetIcon("assets/checked.png", FromDIP(wxSize{32, 32}));
190 unchecked_owl_ =
191 GetTheIconCache().GetIcon("assets/owl.png", FromDIP(wxSize{32, 32}));
192 checked_owl_ = GetTheIconCache().GetIcon("assets/checked_owl.png",
193 FromDIP(wxSize{32, 32}));
190} 194}
diff --git a/src/area_popup.h b/src/area_popup.h index d2d50b9..2401e4e 100644 --- a/src/area_popup.h +++ b/src/area_popup.h
@@ -23,6 +23,8 @@ class AreaPopup : public wxScrolledCanvas {
23 23
24 const wxBitmap* unchecked_eye_; 24 const wxBitmap* unchecked_eye_;
25 const wxBitmap* checked_eye_; 25 const wxBitmap* checked_eye_;
26 const wxBitmap* unchecked_owl_;
27 const wxBitmap* checked_owl_;
26 28
27 wxBitmap rendered_; 29 wxBitmap rendered_;
28}; 30};