diff options
Diffstat (limited to 'src/tracker_frame.cpp')
| -rw-r--r-- | src/tracker_frame.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/tracker_frame.cpp b/src/tracker_frame.cpp index dc6c283..0ab043d 100644 --- a/src/tracker_frame.cpp +++ b/src/tracker_frame.cpp | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | #include "connection_dialog.h" | 17 | #include "connection_dialog.h" |
| 18 | #include "ipc_dialog.h" | 18 | #include "ipc_dialog.h" |
| 19 | #include "ipc_state.h" | 19 | #include "ipc_state.h" |
| 20 | #include "items_pane.h" | ||
| 20 | #include "paintings_pane.h" | 21 | #include "paintings_pane.h" |
| 21 | #include "settings_dialog.h" | 22 | #include "settings_dialog.h" |
| 22 | #include "subway_map.h" | 23 | #include "subway_map.h" |
| @@ -123,6 +124,9 @@ TrackerFrame::TrackerFrame() | |||
| 123 | achievements_pane_ = new AchievementsPane(choicebook); | 124 | achievements_pane_ = new AchievementsPane(choicebook); |
| 124 | choicebook->AddPage(achievements_pane_, "Achievements"); | 125 | choicebook->AddPage(achievements_pane_, "Achievements"); |
| 125 | 126 | ||
| 127 | items_pane_ = new ItemsPane(choicebook); | ||
| 128 | choicebook->AddPage(items_pane_, "Items"); | ||
| 129 | |||
| 126 | paintings_pane_ = new PaintingsPane(choicebook); | 130 | paintings_pane_ = new PaintingsPane(choicebook); |
| 127 | choicebook->AddPage(paintings_pane_, "Paintings"); | 131 | choicebook->AddPage(paintings_pane_, "Paintings"); |
| 128 | 132 | ||
| @@ -296,6 +300,7 @@ void TrackerFrame::OnSashPositionChanged(wxSplitterEvent& event) { | |||
| 296 | void TrackerFrame::OnStateReset(wxCommandEvent &event) { | 300 | void TrackerFrame::OnStateReset(wxCommandEvent &event) { |
| 297 | tracker_panel_->UpdateIndicators(); | 301 | tracker_panel_->UpdateIndicators(); |
| 298 | achievements_pane_->UpdateIndicators(); | 302 | achievements_pane_->UpdateIndicators(); |
| 303 | items_pane_->ResetIndicators(); | ||
| 299 | paintings_pane_->ResetIndicators(); | 304 | paintings_pane_->ResetIndicators(); |
| 300 | subway_map_->OnConnect(); | 305 | subway_map_->OnConnect(); |
| 301 | if (panels_panel_ != nullptr) { | 306 | if (panels_panel_ != nullptr) { |
| @@ -342,6 +347,10 @@ void TrackerFrame::OnStateChanged(StateChangedEvent &event) { | |||
| 342 | achievements_pane_->UpdateIndicators(); | 347 | achievements_pane_->UpdateIndicators(); |
| 343 | } | 348 | } |
| 344 | 349 | ||
| 350 | if (!state.items.empty()) { | ||
| 351 | items_pane_->UpdateIndicators(state.items); | ||
| 352 | } | ||
| 353 | |||
| 345 | if (!state.paintings.empty()) { | 354 | if (!state.paintings.empty()) { |
| 346 | paintings_pane_->UpdateIndicators(state.paintings); | 355 | paintings_pane_->UpdateIndicators(state.paintings); |
| 347 | } | 356 | } |
