-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.xaml
258 lines (244 loc) · 12.4 KB
/
MainWindow.xaml
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<Window
x:Class="Starfield_Interactive_Smart_Slate.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:planetarydata="clr-namespace:Starfield_Interactive_Smart_Slate.Screens.PlanetaryData"
xmlns:screens="clr-namespace:Starfield_Interactive_Smart_Slate.Screens"
Title="Starfield Interactive Smart Slate"
Width="1545"
Height="1000"
KeyDown="Window_KeyDown"
Loaded="Window_Loaded"
SizeChanged="Window_SizeChanged"
Style="{StaticResource SofiaSansStyle}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<TabControl>
<TabControl.ItemContainerStyle>
<Style TargetType="TabItem">
<Setter Property="Height" Value="35" />
</Style>
</TabControl.ItemContainerStyle>
<!-- DISCOVERED PLANET DATA -->
<TabItem
Width="175"
Header="Planetary Data"
MouseEnter="TabItem_MouseEnter"
PreviewMouseLeftButtonDown="TabClicked">
<planetarydata:PlanetaryDataMain />
</TabItem>
<!-- INORGANIC SEARCH -->
<TabItem
Width="200"
Header="Inorganic Resource Search"
MouseEnter="TabItem_MouseEnter"
PreviewMouseLeftButtonDown="TabClicked">
<screens:InorganicResourceSearch />
</TabItem>
<!-- ORGANIC SEARCH -->
<TabItem
Width="200"
Header="Organic Resource Search"
MouseEnter="TabItem_MouseEnter"
PreviewMouseLeftButtonDown="TabClicked">
<screens:OrganicResourceSearch />
</TabItem>
<!-- SETTINGS PAGE -->
<TabItem
Width="100"
Header="Settings"
MouseEnter="TabItem_MouseEnter"
PreviewMouseLeftButtonDown="TabClicked">
<Border
MaxWidth="500"
Margin="10,50,10,50"
BorderBrush="DarkGray"
BorderThickness="1">
<Grid Margin="25">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
HorizontalContentAlignment="Center"
Content="Settings"
Style="{StaticResource ContentTitleStyle}" />
<CheckBox Name="EnableSoundsCheckBox" Grid.Row="1"
Height="30"
Margin="0,10,0,0"
VerticalContentAlignment="Center"
Click="EnableSoundsCheckBox_Click"
Content="Enable sounds"
FontSize="18"
IsChecked="{Binding EnableSounds}" />
<CheckBox Name="EnableAnalyticsCheckBox" Grid.Row="2"
Height="30"
Margin="0,10,0,0"
VerticalContentAlignment="Center"
Click="EnableAnalyticsCheckBox_Click"
Content="Allow anonymous analytics data collection"
FontSize="18"
IsChecked="{Binding EnableAnalytics}" />
<CheckBox Name="EnableUpdateNotificationCheckBox" Grid.Row="3"
Height="30"
Margin="0,10,0,0"
VerticalContentAlignment="Center"
Click="EnableUpdateNotificationCheckBox_Click"
Content="Notify of new version at launch"
FontSize="18"
IsChecked="{Binding EnableUpdateNotification}" />
<Label Name="NewVersionAvailableSettingsLabel" Grid.Row="4"
Margin="30,0,0,0"
HorizontalContentAlignment="Left"
Visibility="Collapsed">
<Hyperlink Name="NewVersionAvailableSettingsHyperlink"
FontSize="18"
FontWeight="Bold"
NavigateUri="https://github.com/aquasarus/Starfield-Interactive-Smart-Slate/releases"
RequestNavigate="NavigateToHyperlink">
> New Version vx.x.x Available
</Hyperlink>
</Label>
<CheckBox Name="UnlockLifeformCountsCheckBox" Grid.Row="5"
Height="30"
Margin="0,10,0,0"
VerticalContentAlignment="Center"
Click="UnlockLifeformCountsCheckBox_Click"
Content="Unlock fauna/flora counts from in-game defaults 🛈"
FontSize="18"
IsChecked="{Binding UnlockLifeformCounts}"
ToolTipService.InitialShowDelay="200">
<CheckBox.ToolTip>
<ToolTip Content="Enable this if you use mods that change total fauna/flora counts.
Note that this will slightly break survey progress behavior, since the total fauna/flora will no longer be known." />
</CheckBox.ToolTip>
</CheckBox>
<Grid Grid.Row="6"
Margin="0,10,0,0"
HorizontalAlignment="Left">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0"
Content="Lifeform auto-complete language:"
FontSize="18" />
<ComboBox Name="LanguageComboBox" Grid.Column="1"
Width="120"
Height="30"
VerticalContentAlignment="Center"
SelectedItem="{Binding Language}" />
</Grid>
</Grid>
</Border>
</TabItem>
<!-- ABOUT PAGE -->
<TabItem
Width="120"
Header="About / Help"
MouseEnter="TabItem_MouseEnter"
PreviewMouseLeftButtonDown="TabClicked">
<Grid
Margin="0,0,0,200"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
HorizontalContentAlignment="Center"
Content="Starfield ISS"
Style="{StaticResource ContentTitleStyle}" />
<Label Grid.Row="1"
HorizontalContentAlignment="Center"
Content="Starfield Interactive Smart Slate" />
<Grid Grid.Row="2" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Name="VersionNumberLabel" Grid.Column="0"
HorizontalContentAlignment="Center"
Content="Version x.x.x"
FontSize="22"
Style="{StaticResource ContentTitleStyle}" />
<Label Name="NewVersionAvailableLabel" Grid.Column="1"
HorizontalContentAlignment="Center"
Style="{StaticResource ContentTitleStyle}"
Visibility="Collapsed">
<Hyperlink Name="NewVersionAvailableHyperlink"
FontSize="22"
NavigateUri="https://github.com/aquasarus/Starfield-Interactive-Smart-Slate/releases"
RequestNavigate="NavigateToHyperlink">
(New Version vx.x.x Available)
</Hyperlink>
</Label>
</Grid>
<Label Grid.Row="3"
HorizontalContentAlignment="Center"
Style="{StaticResource ContentTitleStyle}">
<Hyperlink
FontSize="22"
NavigateUri="https://github.com/aquasarus/Starfield-Interactive-Smart-Slate/wiki"
RequestNavigate="NavigateToHyperlink">
Advanced Instructions
</Hyperlink>
</Label>
<StackPanel Grid.Row="4" Orientation="Horizontal">
<Label Name="UserIDLabel" Content="User ID: ---" />
<Label>
<Hyperlink Click="CopyUserID">
[Copy to Clipboard]
</Hyperlink>
</Label>
</StackPanel>
<Label Grid.Row="5" HorizontalContentAlignment="Center">
<Hyperlink
FontSize="16"
FontWeight="Bold"
NavigateUri="https://github.com/aquasarus/Starfield-Interactive-Smart-Slate/issues"
RequestNavigate="NavigateToHyperlink">
Report a Problem
</Hyperlink>
</Label>
<Label Grid.Row="6" HorizontalContentAlignment="Center">
<Hyperlink
FontSize="16"
NavigateUri="https://www.nexusmods.com/starfield/mods/7074?tab=description"
RequestNavigate="NavigateToHyperlink">
View Project on Nexus Mods
</Hyperlink>
</Label>
<Label Grid.Row="7" HorizontalContentAlignment="Center">
<Hyperlink
FontSize="16"
NavigateUri="https://github.com/aquasarus/Starfield-Interactive-Smart-Slate"
RequestNavigate="NavigateToHyperlink">
View Project on GitHub
</Hyperlink>
</Label>
<Label Grid.Row="8" HorizontalContentAlignment="Center">
<Hyperlink Click="DataFolderLinkClick" FontSize="16">
Your Data Is Saved Here
</Hyperlink>
</Label>
</Grid>
</TabItem>
</TabControl>
</Grid>
</Window>