about summary refs log tree commit diff stats
path: root/src/settings_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings_dialog.cpp')
-rw-r--r--src/settings_dialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings_dialog.cpp b/src/settings_dialog.cpp index 0321b5a..fa7a82f 100644 --- a/src/settings_dialog.cpp +++ b/src/settings_dialog.cpp
@@ -9,11 +9,13 @@ SettingsDialog::SettingsDialog() : wxDialog(nullptr, wxID_ANY, "Settings") {
9 this, wxID_ANY, 9 this, wxID_ANY,
10 "Use two colors to show that an area has partial availability"); 10 "Use two colors to show that an area has partial availability");
11 show_hunt_panels_box_ = new wxCheckBox(this, wxID_ANY, "Show hunt panels"); 11 show_hunt_panels_box_ = new wxCheckBox(this, wxID_ANY, "Show hunt panels");
12 track_position_box_ = new wxCheckBox(this, wxID_ANY, "Track player position");
12 13
13 should_check_for_updates_box_->SetValue( 14 should_check_for_updates_box_->SetValue(
14 GetTrackerConfig().should_check_for_updates); 15 GetTrackerConfig().should_check_for_updates);
15 hybrid_areas_box_->SetValue(GetTrackerConfig().hybrid_areas); 16 hybrid_areas_box_->SetValue(GetTrackerConfig().hybrid_areas);
16 show_hunt_panels_box_->SetValue(GetTrackerConfig().show_hunt_panels); 17 show_hunt_panels_box_->SetValue(GetTrackerConfig().show_hunt_panels);
18 track_position_box_->SetValue(GetTrackerConfig().track_position);
17 19
18 wxBoxSizer* form_sizer = new wxBoxSizer(wxVERTICAL); 20 wxBoxSizer* form_sizer = new wxBoxSizer(wxVERTICAL);
19 21
@@ -26,6 +28,9 @@ SettingsDialog::SettingsDialog() : wxDialog(nullptr, wxID_ANY, "Settings") {
26 form_sizer->Add(show_hunt_panels_box_, wxSizerFlags().HorzBorder()); 28 form_sizer->Add(show_hunt_panels_box_, wxSizerFlags().HorzBorder());
27 form_sizer->AddSpacer(2); 29 form_sizer->AddSpacer(2);
28 30
31 form_sizer->Add(track_position_box_, wxSizerFlags().HorzBorder());
32 form_sizer->AddSpacer(2);
33
29 form_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center()); 34 form_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center());
30 35
31 SetSizerAndFit(form_sizer); 36 SetSizerAndFit(form_sizer);