diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-24 09:40:22 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-24 09:40:22 -0400 |
commit | c443acfd0b25b3e4f3446f795777b8dd18b00e2b (patch) | |
tree | 86340c00f1723310cbab02f0ebc496b25a780278 /src/tracker_panel.h | |
parent | 378766bcee3cad04256ada937f96b232aba85cf3 (diff) | |
parent | ab5206255603f6401d9c216ffce26607da16ad33 (diff) | |
download | lingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.tar.gz lingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.tar.bz2 lingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.zip |
Merge branch 'main' into panels
Diffstat (limited to 'src/tracker_panel.h')
-rw-r--r-- | src/tracker_panel.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tracker_panel.h b/src/tracker_panel.h index 06ec7a0..e1f515d 100644 --- a/src/tracker_panel.h +++ b/src/tracker_panel.h | |||
@@ -7,6 +7,10 @@ | |||
7 | #include <wx/wx.h> | 7 | #include <wx/wx.h> |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | #include <optional> | ||
11 | #include <set> | ||
12 | #include <string> | ||
13 | |||
10 | class AreaPopup; | 14 | class AreaPopup; |
11 | 15 | ||
12 | class TrackerPanel : public wxPanel { | 16 | class TrackerPanel : public wxPanel { |
@@ -15,6 +19,14 @@ class TrackerPanel : public wxPanel { | |||
15 | 19 | ||
16 | void UpdateIndicators(); | 20 | void UpdateIndicators(); |
17 | 21 | ||
22 | void SetSavedataPath(std::string savedata_path); | ||
23 | |||
24 | bool IsPanelsMode() const { return panels_mode_; } | ||
25 | |||
26 | const std::set<std::string> &GetSolvedPanels() const { | ||
27 | return solved_panels_; | ||
28 | } | ||
29 | |||
18 | private: | 30 | private: |
19 | struct AreaIndicator { | 31 | struct AreaIndicator { |
20 | int area_id = -1; | 32 | int area_id = -1; |
@@ -28,9 +40,12 @@ class TrackerPanel : public wxPanel { | |||
28 | 40 | ||
29 | void OnPaint(wxPaintEvent &event); | 41 | void OnPaint(wxPaintEvent &event); |
30 | void OnMouseMove(wxMouseEvent &event); | 42 | void OnMouseMove(wxMouseEvent &event); |
43 | void OnRefreshSavedata(wxCommandEvent &event); | ||
31 | 44 | ||
32 | void Redraw(); | 45 | void Redraw(); |
33 | 46 | ||
47 | void RefreshSavedata(); | ||
48 | |||
34 | wxImage map_image_; | 49 | wxImage map_image_; |
35 | wxImage player_image_; | 50 | wxImage player_image_; |
36 | wxBitmap rendered_; | 51 | wxBitmap rendered_; |
@@ -42,6 +57,10 @@ class TrackerPanel : public wxPanel { | |||
42 | double scale_y_ = 0; | 57 | double scale_y_ = 0; |
43 | 58 | ||
44 | std::vector<AreaIndicator> areas_; | 59 | std::vector<AreaIndicator> areas_; |
60 | |||
61 | bool panels_mode_ = false; | ||
62 | std::optional<std::string> savedata_path_; | ||
63 | std::set<std::string> solved_panels_; | ||
45 | }; | 64 | }; |
46 | 65 | ||
47 | #endif /* end of include guard: TRACKER_PANEL_H_D675A54D */ | 66 | #endif /* end of include guard: TRACKER_PANEL_H_D675A54D */ |