#include "settings_dialog.h"
#include "tracker_config.h"
SettingsDialog::SettingsDialog() : wxDialog(nullptr, wxID_ANY, "Settings") {
should_check_for_updates_box_ = new wxCheckBox(
this, wxID_ANY, "Check for updates when the tracker opens");
hybrid_areas_box_ = new wxCheckBox(
this, wxID_ANY,
"Use two colors to show that an area has partial availability");
show_hunt_panels_box_ = new wxCheckBox(this, wxID_ANY, "Show hunt panels");
track_position_box_ = new wxCheckBox(this, wxID_ANY, "Track player position");
should_check_for_updates_box_->SetValue(
GetTrackerConfig().should_check_for_updates);
hybrid_areas_box_->SetValue(GetTrackerConfig().hybrid_areas);
show_hunt_panels_box_->SetValue(GetTrackerConfig().show_hunt_panels);
track_position_box_->SetValue(GetTrackerConfig().track_position);
wxBoxSizer* form_sizer = new wxBoxSizer(wxVERTICAL);
form_sizer->Add(should_check_for_updates_box_, wxSizerFlags().HorzBorder());
form_sizer->AddSpacer(2);
form_sizer->Add(hybrid_areas_box_, wxSizerFlags().HorzBorder());
form_sizer->AddSpacer(2);
form_sizer->Add(show_hunt_panels_box_, wxSizerFlags().HorzBorder());
form_sizer->AddSpacer(2);
form_sizer->Add(track_position_box_, wxSizerFlags().HorzBorder());
form_sizer->AddSpacer(2);
form_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center());
SetSizerAndFit(form_sizer);
Center();
}
lass='sub right'>
blob: 32d399a604d018f9693ebd0d84d3cf1c44d8ddff (
plain) (
blame)
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
|
name: "Main Area"
panels {
name: "TIN (1)"
path: "Panels/entry_3"
clue: "tin"
answer: "thin"
symbols: SPARKLES
}
panels {
name: "TIN (2)"
path: "Panels/entry_4"
clue: "tin"
answer: "in"
symbols: SPARKLES
}
panels {
name: "TIN (3)"
path: "Panels/entry_1"
clue: "tin"
answer: "think"
symbols: SPARKLES
required_door { name: "Near Right Door" }
}
panels {
name: "TIN (4)"
path: "Panels/entry_2"
clue: "tin"
answer: "kin"
symbols: SPARKLES
required_door { name: "Near Left Door" }
}
panels {
name: "TIN (5)"
path: "Panels/entry_9"
clue: "tin"
answer: "ink"
symbols: SPARKLES
required_door { name: "Near Left Door" }
}
panels {
name: "I (1)"
path: "Panels/entry_5"
clue: "i"
answer: "it"
symbols: SPARKLES
}
panels {
name: "NO (1)"
path: "Panels/entry_6"
clue: "no"
answer: "not"
symbols: SPARKLES
}
panels {
name: "I (2)"
path: "Panels/entry_7"
clue: "i"
answer: "kit"
symbols: SPARKLES
required_door { name: "Far Right Door" }
}
panels {
name: "NO (2)"
path: "Panels/entry_8"
clue: "no"
answer: "knot"
symbols: SPARKLES
required_door { name: "Far Left Door" }
}
ports {
name: "GREAT"
display_name: "Entrance"
path: "Components/Warps/worldport"
destination { x: 0 y: 0 z: 7.5 }
rotation: 0
}
|