about summary refs log tree commit diff stats
path: root/src/tracker_frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracker_frame.cpp')
-rw-r--r--src/tracker_frame.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tracker_frame.cpp b/src/tracker_frame.cpp index 0308886..49f947f 100644 --- a/src/tracker_frame.cpp +++ b/src/tracker_frame.cpp
@@ -1,10 +1,12 @@
1#include "tracker_frame.h" 1#include "tracker_frame.h"
2 2
3#include <wx/choicebk.h>
3#include <wx/webrequest.h> 4#include <wx/webrequest.h>
4 5
5#include <nlohmann/json.hpp> 6#include <nlohmann/json.hpp>
6#include <sstream> 7#include <sstream>
7 8
9#include "achievements_pane.h"
8#include "ap_state.h" 10#include "ap_state.h"
9#include "connection_dialog.h" 11#include "connection_dialog.h"
10#include "tracker_config.h" 12#include "tracker_config.h"
@@ -50,8 +52,18 @@ TrackerFrame::TrackerFrame()
50 Bind(STATE_CHANGED, &TrackerFrame::OnStateChanged, this); 52 Bind(STATE_CHANGED, &TrackerFrame::OnStateChanged, this);
51 Bind(STATUS_CHANGED, &TrackerFrame::OnStatusChanged, this); 53 Bind(STATUS_CHANGED, &TrackerFrame::OnStatusChanged, this);
52 54
55 wxChoicebook *choicebook = new wxChoicebook(this, wxID_ANY);
56 achievements_pane_ = new AchievementsPane(this);
57 choicebook->AddPage(achievements_pane_, "Achievements");
58
53 tracker_panel_ = new TrackerPanel(this); 59 tracker_panel_ = new TrackerPanel(this);
54 60
61 wxBoxSizer *top_sizer = new wxBoxSizer(wxHORIZONTAL);
62 top_sizer->Add(choicebook, wxSizerFlags().Expand().Proportion(1));
63 top_sizer->Add(tracker_panel_, wxSizerFlags().Expand().Proportion(3));
64
65 SetSizerAndFit(top_sizer);
66
55 if (!GetTrackerConfig().asked_to_check_for_updates) { 67 if (!GetTrackerConfig().asked_to_check_for_updates) {
56 GetTrackerConfig().asked_to_check_for_updates = true; 68 GetTrackerConfig().asked_to_check_for_updates = true;
57 69
@@ -113,6 +125,7 @@ void TrackerFrame::OnCheckForUpdates(wxCommandEvent &event) {
113 125
114void TrackerFrame::OnStateChanged(wxCommandEvent &event) { 126void TrackerFrame::OnStateChanged(wxCommandEvent &event) {
115 tracker_panel_->UpdateIndicators(); 127 tracker_panel_->UpdateIndicators();
128 achievements_pane_->UpdateIndicators();
116 Refresh(); 129 Refresh();
117} 130}
118 131
n' href='/lingo-archipelago/commit/archipelago.tscn?h=v3.1.0&id=563382d459ce18b6df4e5cf9161bc47d942d9276'>563382d
a297dd6 ^
563382d


a297dd6 ^
563382d

75e5821 ^
563382d
75e5821 ^
563382d

a297dd6 ^
563382d


a297dd6 ^
563382d

75e5821 ^
563382d
75e5821 ^
563382d

a297dd6 ^
563382d


a297dd6 ^
563382d
cc45280 ^



75e5821 ^









17a51b9 ^









38175bd ^









563382d

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187