diff options
-rw-r--r-- | VERSION.yaml | 1 | ||||
-rw-r--r-- | assets/checked_owl.png | bin | 0 -> 262 bytes | |||
-rw-r--r-- | src/area_popup.cpp | 6 | ||||
-rw-r--r-- | src/area_popup.h | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/VERSION.yaml b/VERSION.yaml index a37b23a..c4ad3ec 100644 --- a/VERSION.yaml +++ b/VERSION.yaml | |||
@@ -20,6 +20,7 @@ packages: | |||
20 | - zlib1.dll | 20 | - zlib1.dll |
21 | - assets/areas.yaml | 21 | - assets/areas.yaml |
22 | - assets/checked.png | 22 | - assets/checked.png |
23 | # TODO: next release will contain the checked owl | ||
23 | - assets/ids.yaml | 24 | - assets/ids.yaml |
24 | - assets/lingo_map.png | 25 | - assets/lingo_map.png |
25 | - assets/LL1.yaml | 26 | - assets/LL1.yaml |
diff --git a/assets/checked_owl.png b/assets/checked_owl.png new file mode 100644 index 0000000..f53ddd3 --- /dev/null +++ b/assets/checked_owl.png | |||
Binary files differ | |||
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 | }; |