-
Notifications
You must be signed in to change notification settings - Fork 7
/
MainView.xaml
500 lines (433 loc) · 38.4 KB
/
MainView.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<UserControl x:Class="HoppoPlugin.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:livet="http://schemas.livet-mvvm.net/2011/wpf"
xmlns:metro="http://schemes.grabacr.net/winfx/2014/controls"
xmlns:metro2="clr-namespace:Grabacr07.Desktop.Metro.Controls;assembly=Desktop.Metro"
xmlns:properties="clr-namespace:Grabacr07.KanColleViewer.Properties;assembly=KanColleViewer"
xmlns:vContents="clr-namespace:Grabacr07.KanColleViewer.Views.Contents;assembly=KanColleViewer"
xmlns:vmContents="clr-namespace:Grabacr07.KanColleViewer.ViewModels.Contents;assembly=KanColleViewer"
xmlns:controls="clr-namespace:Grabacr07.KanColleViewer.Views.Controls;assembly=KanColleViewer"
xmlns:viewModels="clr-namespace:Grabacr07.KanColleViewer.ViewModels;assembly=KanColleViewer"
xmlns:models="clr-namespace:Grabacr07.KanColleViewer.Models;assembly=KanColleViewer"
xmlns:converters="clr-namespace:Grabacr07.Desktop.Metro.Converters;assembly=Desktop.Metro"
xmlns:hp="clr-namespace:HoppoPlugin"
mc:Ignorable="d"
d:DesignWidth="580"
d:DesignHeight="360"
FontSize="12"
d:DataContext="{d:DesignInstance viewModels:SettingsViewModel}" FontFamily="Meiryo">
<UserControl.Resources>
<ResourceDictionary>
<ObjectDataProvider x:Key="EnumerableRange"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:linq="clr-namespace:System.Linq;assembly=System.Core"
ObjectType="{x:Type linq:Enumerable}" MethodName="Range">
<ObjectDataProvider.MethodParameters>
<sys:Int32>1</sys:Int32>
<sys:Int32>150</sys:Int32>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<converters:EnumToBooleanConverter x:Key="EnumToBooleanConverter" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Common.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="MainGrid">
<Grid x:Name="WARNING_GRID" Visibility="Hidden">
<TextBlock HorizontalAlignment="Left" Margin="20,84,0,0" VerticalAlignment="Top" FontSize="32" Width="560"><Run Text="插件的使用许可已被作者终止。"/><LineBreak/><Run Text="您可以通过电子邮件联系我了解详情。"/><LineBreak/><Run Text="[email protected]"/></TextBlock>
</Grid>
<Grid x:Name="ContentGrid">
<Grid x:Name="FunctionGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="97*"/>
<ColumnDefinition Width="97*"/>
<ColumnDefinition Width="96*"/>
</Grid.ColumnDefinitions>
<metro2:CallMethodButton x:Name="funcbtn_Cal" Content="经验值计算器" VerticalAlignment="Top" Height="50" FontSize="24" Click="funcbtn_Cal_Click" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_Settings" Content="设置" Margin="0,50,0,0" VerticalAlignment="Top" Height="50" FontSize="32" Click="funcbtn_Settings_Click" Grid.Column="1" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_Donate" Content="捐赠" Margin="0,50,0,0" VerticalAlignment="Top" Height="50" FontSize="36" Click="funcbtn_Donate_Click" Grid.Column="2" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_EventMapViewer" Content="活动图HP查看" VerticalAlignment="Top" Height="50" FontSize="24" Click="CallMethodButton_Click_4" Grid.Column="1" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_Landscape" Content="布局&索敌" VerticalAlignment="Top" Height="50" FontSize="26" Grid.Column="2" Visibility="Hidden" Click="funcbtn_Landscape_Click"/>
<metro2:CallMethodButton x:Name="btn_OpenFunc" Content="↓展开功能↓" Margin="47,0" VerticalAlignment="Top" Click="CallMethodButton_Click" Grid.Column="1" Height="24"/>
<metro2:CallMethodButton x:Name="btn_ClickToClose" Content="↑关闭↑" Margin="51,150,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Click="btn_ClickToClose_Click" Width="92" Visibility="Hidden" Grid.Column="1" Height="24"/>
<metro2:CallMethodButton x:Name="btn_BackToHomePage" Content="←回到主页" HorizontalAlignment="Left" VerticalAlignment="Top" Width="80" Click="btn_BackToHomePage_Click" Visibility="Hidden" Height="24"/>
<metro2:CallMethodButton x:Name="funcbtn_OpenDataView" Content="查看统计数据" Margin="0,50,0,0" VerticalAlignment="Top" Height="50" FontSize="24" Click="funcbtn_OpenDataView_Click" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_OpenTwitter" Content="工具" Margin="0,100,0,0" VerticalAlignment="Top" Height="50" FontSize="32" Click="funcbtn_OpenTwitter_Click" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_OpenWiki" Content="中文Wiki" Margin="0,100,0,0" VerticalAlignment="Top" Height="50" FontSize="30" Click="funcbtn_OpenWiki_Click" Grid.Column="1" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="funcbtn_Counter" Content="缓存、魔改" Margin="0,100,0,0" VerticalAlignment="Top" Height="50" FontSize="26" Click="funcbtn_Counter_Click" Grid.Column="2" Visibility="Hidden"/>
</Grid>
<Grid x:Name="LintkWiki" Visibility="Hidden">
<WebBrowser x:Name="Wb_Wiki" Height="338" Margin="0,27,0,0" VerticalAlignment="Top"/>
<metro2:CallMethodButton x:Name="Btn_OpenWikiLintk" Content="使用浏览器打开" HorizontalAlignment="Left" Margin="456,2,0,0" VerticalAlignment="Top" Click="Btn_OpenWikiLintk_Click"/>
</Grid>
<Grid x:Name="ErrorHandle" Height="350" VerticalAlignment="Top" Visibility="Hidden">
<TextBlock Margin="10,50,20,0" Text="很抱歉!程序出现了问题!" VerticalAlignment="Top" FontSize="36" TextAlignment="Center"/>
<TextBox x:Name="ErrorMessageTextBox" Margin="10,96,10,10" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
</Grid>
<Grid x:Name="WelcomePage">
<TextBlock x:Name="tbl_Introdution" Margin="10,100,10,0" VerticalAlignment="Top" FontSize="40" TextAlignment="Center" FontFamily="Meiryo UI"><Run Text="欢迎使用 北方Plugin!"/><LineBreak/><Run Text="ホッポウプラグインへようこそ!"/></TextBlock>
<metro2:CallMethodButton x:Name="chkUpdateButton" Content="检查更新" Margin="0,0,7,0" Height="24" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="84" Click="CallMethodButton_Click_1"/>
<metro2:CallMethodButton x:Name="btn_Donate" Content="捐赠 !" Foreground="White" Background="Purple" HorizontalAlignment="Right" Margin="0,0,96,0" VerticalAlignment="Bottom" Click="funcbtn_Donate_Click" Width="61" FontSize="14" Height="24"/>
<Label x:Name="lb_UpdateInformation" Content="当前版本 V6.0" HorizontalAlignment="Right" Margin="0,0,7,24" VerticalAlignment="Bottom" Cursor="Hand"/>
<metro2:CallMethodButton x:Name="btn_UpdateLog" Content="HoppoPlugin介绍" HorizontalAlignment="Right" Margin="0,0,162,0" VerticalAlignment="Bottom" Width="115" Click="btn_UpdateLog_Click"/>
<Rectangle Fill="#FFFF3A00" Height="30" Margin="0,50,0,0" Stroke="Black" VerticalAlignment="Top" Visibility="Hidden"/>
<TextBlock x:Name="tbl_MainState" Margin="0,50,0,0" Text="V2.8.2" VerticalAlignment="Top" Height="30" TextAlignment="Center" FontSize="20" Foreground="White" Visibility="Hidden"/>
<metro2:CallMethodButton x:Name="Btn_MyAccount" Content="□ 我的账户" HorizontalAlignment="Right" Margin="0,15,15,0" FontSize="16" Background="Green" BorderBrush="{x:Null}" Click="Btn_MyAccount_Click" Foreground="White" Height="28" VerticalAlignment="Top"/>
<metro2:CallMethodButton
Height="24"
Margin="0,0,282,0"
MethodName="clearHoppoPlugin" ToolTip="清空HoppoPlugin的全部设置" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="138">
<Grid>
<Viewbox RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="33" Height="22" VerticalAlignment="Top" Margin="-12,-1,0,-3">
<Viewbox.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="-1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Viewbox.RenderTransform>
<Path Data="M18.369141,1.6116142 L26.235352,9.4778252 L18.383789,17.344036 L18.383789,11.660442 C17.104492,11.660442 15.859374,11.894817 14.648438,12.363567 C13.437499,12.832317 12.343749,13.550091 11.367188,14.516888 C10.371094,15.503216 9.6240234,16.616497 9.1259766,17.856731 C8.6279297,19.096966 8.3789063,20.366497 8.3789063,21.665325 C8.3789063,22.944622 8.6157227,24.192181 9.0893555,25.408001 C9.5629883,26.623821 10.283203,27.720013 11.25,28.696575 C11.738281,29.194622 12.263184,29.631634 12.824707,30.00761 C13.38623,30.383587 13.972167,30.696087 14.58252,30.94511 C15.19287,31.194134 15.81787,31.379681 16.45752,31.501751 C17.097168,31.623821 17.739258,31.684856 18.383789,31.684856 C19.663086,31.684856 20.905762,31.44804 22.111816,30.974407 C23.317871,30.500774 24.414063,29.78056 25.400391,28.813763 C25.898436,28.325481 26.333006,27.798138 26.704102,27.231731 C27.075193,26.665325 27.385252,26.079388 27.634277,25.473919 C27.883299,24.86845 28.071287,24.24345 28.198242,23.598919 C28.325193,22.954388 28.38867,22.309856 28.388672,21.665325 C28.38867,21.011028 28.320311,20.342083 28.183594,19.658489 L32.53418,19.658489 C32.62207,20.322552 32.666016,20.986614 32.666016,21.650677 C32.666016,22.578411 32.578125,23.501263 32.402344,24.419231 C32.226563,25.3372 31.960447,26.233196 31.604004,27.10722 C31.247557,27.981243 30.803221,28.818645 30.270996,29.619427 C29.738768,30.420208 29.116209,31.172161 28.40332,31.875286 C27.709959,32.55888 26.967772,33.157024 26.176758,33.66972 C25.38574,34.182415 24.562986,34.609661 23.708496,34.951458 C22.854004,35.293255 21.97998,35.549603 21.086426,35.720501 C20.192871,35.891399 19.291992,35.976849 18.383789,35.976849 C17.456055,35.976849 16.535645,35.888958 15.622559,35.713177 C14.709472,35.537395 13.8208,35.271282 12.956543,34.914837 C12.092285,34.558392 11.259766,34.114056 10.458984,33.581829 C9.6582031,33.049603 8.90625,32.427044 8.203125,31.714153 C7.5195308,31.020794 6.9213862,30.276165 6.4086914,29.480267 C5.8959961,28.684368 5.4663086,27.859173 5.1196289,27.004681 C4.7729492,26.150188 4.5141602,25.271282 4.3432617,24.367962 C4.1723633,23.464642 4.0869141,22.55888 4.0869141,21.650677 C4.0869141,20.722942 4.1748047,19.802532 4.3505859,18.889446 C4.5263672,17.97636 4.7924805,17.085247 5.1489258,16.216106 C5.5053711,15.346966 5.949707,14.512005 6.4819336,13.711224 C7.0141597,12.910442 7.6367183,12.158489 8.3496094,11.455364 C9.0429688,10.77177 9.7875977,10.176067 10.583496,9.6682549 C11.379395,9.1604424 12.202148,8.7380791 13.051758,8.401165 C13.901366,8.0642529 14.77539,7.8103466 15.673828,7.6394463 C16.572266,7.4685497 17.470703,7.3831005 18.369141,7.3830986 z"
Stretch="Uniform"
Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}, Path=Foreground}" Height="25.154" Width="18.538" />
</Viewbox>
<TextBlock Text="重置HoppoPlugin" Margin="13,1,-13,2" />
</Grid>
</metro2:CallMethodButton>
<Label Content="了解安全、快速、免费的Progit艦これ防猫加速服务 ->" HorizontalAlignment="Right" Margin="0,0,7,50" VerticalAlignment="Bottom" FontSize="14" FontStyle="Italic" Cursor="Hand" MouseLeftButtonDown="Label_MouseLeftButtonDown" FontFamily="Microsoft YaHei"/>
<TextBlock HorizontalAlignment="Left" Margin="10,0,0,52" VerticalAlignment="Bottom" FontSize="16"><Run Text="HoppoPlugin"/><LineBreak/><Run Text="防猫次数:"/></TextBlock>
<TextBlock x:Name="Tbl_NekoCount" HorizontalAlignment="Left" Margin="10,0,0,5" Text="0" VerticalAlignment="Bottom" FontSize="36"/>
</Grid>
<Grid x:Name="DonateMe" Visibility="Hidden">
<TextBlock HorizontalAlignment="Left" Margin="10,89,0,0" VerticalAlignment="Top" FontSize="24" Height="107" Width="290"><Run Text="感觉不错?,"/><LineBreak/><Run Text="这是一款开源的插件"/><LineBreak/><Run Text="您可以通过捐赠来支持!"/></TextBlock>
<TextBlock HorizontalAlignment="Left" Margin="10,201,0,0" Text="[email protected]" VerticalAlignment="Top" MouseDown="TextBlock_MouseDown" FontSize="24" Cursor="Hand"/>
<Rectangle Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="230" Margin="305,50,0,0" Stroke="Black" VerticalAlignment="Top" Width="230"/>
<Image HorizontalAlignment="Left" Height="230" Margin="305,50,0,0" VerticalAlignment="Top" Width="230" Source="Donate-QRCode.png"/>
</Grid>
<Grid x:Name="CacherView" Visibility="Hidden">
<Grid.DataContext>
<hp:CacherSettings/>
</Grid.DataContext>
<Grid.Resources>
<hp:SwitchCaseConverter x:Key="SwitchCaseConverter"/>
</Grid.Resources>
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto" Margin="5">
<Grid Height="Auto">
<Grid.RowDefinitions>
<RowDefinition Height="90"/>
<RowDefinition Height="165"/>
<RowDefinition Height="59"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<CheckBox x:Name="checkBox" Content="启用本地缓存" HorizontalAlignment="Left" Margin="10,24,0,0" VerticalAlignment="Top" IsChecked="{Binding Current.CacheEnabled, Mode=TwoWay}" FontSize="14"/>
<TextBlock Text="缓存存放的文件夹:" HorizontalAlignment="Left" Margin="10,49,0,0" VerticalAlignment="Top" Width="138" FontSize="16"/>
<metro:PromptTextBox HorizontalAlignment="Left" Margin="148,45,0,0" TextWrapping="Wrap" Text="{Binding Current.CacheFolder}" VerticalAlignment="Top" Width="400" ToolTip="只有程序重新启动时才会生效"/>
<Border Grid.Row="0" />
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Grid.Row="1" Margin="15,10,0,0" Height="20" Text="当服务器请求文件时:(没有缓存请全选RW,使用缓存包建议选RW,RW,R,R,R,N/A为关闭缓存)"/>
<DockPanel HorizontalAlignment="Left" LastChildFill="True" Margin="25,30,0,0" Grid.Row="1" VerticalAlignment="Top" Height="25" Width="405">
<Label Content="加载" ToolTip="在GameStart按钮之前载入的文件,这部分文件可能会时常更新" />
<RadioButton Content="RW" IsChecked="{Binding Current.CacheEntryFiles, ConverterParameter=2, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="R" IsChecked="{Binding Current.CacheEntryFiles, ConverterParameter=1, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}" />
<RadioButton Content="N/A" IsChecked="{Binding Current.CacheEntryFiles, ConverterParameter=0, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
</DockPanel>
<DockPanel HorizontalAlignment="Left" LastChildFill="True" Margin="25,55,0,0" Grid.Row="1" VerticalAlignment="Top" Height="25" Width="405">
<Label Content="交互" ToolTip="母港界面的文件,这部分文件同样可能会更新" />
<RadioButton Content="RW" IsChecked="{Binding Current.CachePortFiles, ConverterParameter=2, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="R" IsChecked="{Binding Current.CachePortFiles, ConverterParameter=1, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="N/A" IsChecked="{Binding Current.CachePortFiles, ConverterParameter=0, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
</DockPanel>
<DockPanel HorizontalAlignment="Left" LastChildFill="True" Margin="25,80,0,0" Grid.Row="1" VerticalAlignment="Top" Height="25" Width="405">
<Label Content="背景" ToolTip="编成、工厂、商店等界面,不包括地图" />
<RadioButton Content="RW" IsChecked="{Binding Current.CacheSceneFiles, ConverterParameter=2, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="R" IsChecked="{Binding Current.CacheSceneFiles, ConverterParameter=1, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="N/A" IsChecked="{Binding Current.CacheSceneFiles, ConverterParameter=0, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
</DockPanel>
<DockPanel HorizontalAlignment="Left" LastChildFill="True" Margin="25,105,0,0" Grid.Row="1" VerticalAlignment="Top" Height="25" Width="405">
<Label Content="资源" ToolTip="包括立绘、BGM以及各种png图片" />
<RadioButton Content="RW" IsChecked="{Binding Current.CacheResourceFiles, ConverterParameter=2, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="R" IsChecked="{Binding Current.CacheResourceFiles, ConverterParameter=1, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="N/A" IsChecked="{Binding Current.CacheResourceFiles, ConverterParameter=0, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
</DockPanel>
<DockPanel HorizontalAlignment="Left" LastChildFill="True" Margin="25,130,0,0" Grid.Row="1" VerticalAlignment="Top" Height="25" Width="405">
<Label Content="声音" ToolTip="主要是舰娘的语音,不包括背景音乐" />
<RadioButton Content="RW" IsChecked="{Binding Current.CacheSoundFiles, ConverterParameter=2, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="R" IsChecked="{Binding Current.CacheSoundFiles, ConverterParameter=1, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
<RadioButton Content="N/A" IsChecked="{Binding Current.CacheSoundFiles, ConverterParameter=0, Converter={StaticResource SwitchCaseConverter}, Mode=TwoWay}"/>
</DockPanel>
<!--<Border Grid.Row="1" />-->
<CheckBox Content="打开魔改" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="2" VerticalAlignment="Top" Height="15" Width="96" IsEnabled="{Binding IsChecked, ElementName=checkBox}" IsChecked="{Binding Current.HackEnabled, Mode=TwoWay}"/>
<TextBlock Text="向服务器返回.hack.swf,魔改方法与ShimakazeGo类似" HorizontalAlignment="Left" Margin="31,30,0,0" Grid.Row="2" VerticalAlignment="Top" Height="15" Width="427" />
<!--<Border Grid.Row="2" Style="{StaticResource BorderStyle}" />-->
<!--<CheckBox Content="替换登陆语音与服务器文字" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="3" VerticalAlignment="Top" Height="15" Width="164"
IsEnabled="{Binding IsChecked, ElementName=checkBox}" IsChecked="{Binding Current.HackTitleEnabled, Mode=TwoWay}"/>-->
<TextBlock HorizontalAlignment="Right" Grid.Row="3" TextWrapping="Wrap"
VerticalAlignment="Bottom" Margin="0,0,10,-16">
<Run Text="#本功能部分代码来自@df32以MIT许可协议发布的源代码"/>
</TextBlock>
<TextBlock HorizontalAlignment="Right" Margin="0,0,10,4" Grid.Row="3" Text="此功能可能会与ShimakazeGo冲突。" VerticalAlignment="Bottom"/>
</Grid>
</ScrollViewer>
</Grid>
<Grid x:Name="PrvToolsSettings" Visibility="Hidden">
<WrapPanel x:Name="ThemeSwitcher" Margin="105,177,0,0" HorizontalAlignment="Left" Width="177" Height="33" VerticalAlignment="Top">
<RadioButton IsChecked="{Binding CurrentIsDarkTheme, Mode=TwoWay}"
Margin="0,0,24,0">
<TextBlock Text="深色"
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type RadioButton}}, Path=Foreground}"
FontSize="13"
Background="Transparent" />
</RadioButton>
<RadioButton IsChecked="{Binding CurrentIsLightTheme, Mode=TwoWay}">
<TextBlock Text="浅色"
Foreground="{Binding RelativeSource={RelativeSource AncestorType={x:Type RadioButton}}, Path=Foreground}"
FontSize="13"
Background="Transparent" />
</RadioButton>
</WrapPanel>
<CheckBox Content="打开声音提醒" IsChecked="{Binding CurrentEnableSoundNotify}" HorizontalAlignment="Left" Margin="105,86,0,0" VerticalAlignment="Top"/>
<TextBlock HorizontalAlignment="Left" Margin="105,215,0,0" VerticalAlignment="Top" Width="409"><Run Text="★如果您是Windows7用户推荐删除WindowsNotifier.dll,它在KCV的Plugins目录下"/><LineBreak/><Run Text="★猫后自动刷新功能是在游戏猫了之后,会自动刷新并重新进入游戏(注意,打开后请保持游戏窗口在最上方,不要覆盖游戏窗口,"/><LineBreak/><Run Text="否则无法自动重新进入游戏)"/><LineBreak/><Run Text="★右键托盘按钮可调出菜单"/></TextBlock>
<CheckBox Content="猫后自动刷新并进入游戏" HorizontalAlignment="Left" Margin="105,106,0,0" VerticalAlignment="Top" IsChecked="{Binding CurrentNekoDetector}" Width="158"/>
<TextBlock HorizontalAlignment="Left" Margin="105,151,0,0" Text="主题" VerticalAlignment="Top"/>
<Slider x:Name="Slb_Volume" HorizontalAlignment="Left" Margin="65,86,0,0" Value="{Binding CurrentVolume,Mode=TwoWay}" VerticalAlignment="Top" Maximum="100" Orientation="Vertical" Height="220"/>
<TextBlock HorizontalAlignment="Left" Margin="10,117,0,0" Text="音量:" VerticalAlignment="Top" FontSize="16"/>
<TextBlock HorizontalAlignment="Left" Margin="10,144,0,0" Text="{Binding Path=Value ,ElementName=Slb_Volume, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" FontSize="16" Width="39" TextWrapping="NoWrap"/>
<CheckBox Content="打开托盘右键菜单(不推荐Win8用户勾选)" IsChecked="{Binding CurrentEnableNotifyIcon}" HorizontalAlignment="Left" Margin="105,128,0,0" VerticalAlignment="Top"/>
<CheckBox Content="HoppoPlugin游戏防猫系统" IsChecked="{Binding CurrentEnableNAS}" HorizontalAlignment="Left" Margin="315,86,0,0" VerticalAlignment="Top" FontSize="14"/>
</Grid>
<Grid x:Name="EventMapViewer" Margin="0,45,0,0" Visibility="Hidden">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto" MinHeight="45"/>
<RowDefinition Height="Auto" MinHeight="40"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" Grid.Row="0" Grid.ColumnSpan="2">
<TextBlock Text="※打开活动出击海域画面便会刷新。"/>
<TextBlock Text="※地图HP随着攻击BOOS旗舰的次数而变化。"/>
</StackPanel>
<TextBlock Text="攻略中的海域的HP" Grid.Column="0" Grid.Row="1" FontSize="16" Margin="4,29,4,19" Grid.RowSpan="2"/>
<TextBlock Text="最低必要击破次数" Grid.Column="0" Grid.Row="3" FontSize="16" Margin="4,20,4,138"/>
<TextBlock Text="{Binding NextEventMapHp}" Grid.Column="1" Grid.Row="1" FontSize="36" Margin="4,15,4,14" Grid.RowSpan="2"/>
<TextBlock Text="{Binding RemainingCount}" Grid.Column="1" Grid.Row="3" FontSize="48" Margin="4,1,4,127"/>
</Grid>
<Grid x:Name="MyAccount" Visibility="Hidden">
<Grid x:Name="AccountDetail">
<TextBlock x:Name="Tbl_Username" Margin="0,38,30,0" Text="未登录" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="24" />
<Grid x:Name="RegisterOrLogin">
<metro:PromptTextBox x:Name="tb_Backup_Username" HorizontalAlignment="Left" Height="23" Margin="89,151,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
<TextBlock x:Name="tbl_Backup_Username" HorizontalAlignment="Left" Margin="29,154,0,0" Text="用户名" VerticalAlignment="Top" FontSize="14"/>
<TextBlock x:Name="tbl_Backup_Password" HorizontalAlignment="Left" Margin="43,189,0,0" Text="密码" VerticalAlignment="Top" FontSize="14"/>
<PasswordBox x:Name="psd_Backup_Password" HorizontalAlignment="Left" Margin="89,189,0,0" VerticalAlignment="Top" Width="120"/>
<Button x:Name="Btn_CreateAccount" Content="注册" HorizontalAlignment="Left" Margin="214,149,0,0" VerticalAlignment="Top" Width="121" Height="58" FontSize="26" Click="Btn_CreateAccount_Click"/>
<Label x:Name="lb_Backup_Username" Content="" HorizontalAlignment="Left" Margin="465,27,0,0" VerticalAlignment="Top" FontSize="18"/>
<Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="236" Margin="10,46,0,0" VerticalAlignment="Top" Width="346"/>
<TextBlock x:Name="Tbl_PTAccountIntroduce" HorizontalAlignment="Left" Margin="29,55,0,0" VerticalAlignment="Top" FontSize="18"><Run Text="注册一个HoppoPlugin账户,"/><LineBreak/><Run Text="您将可以将统计信息和设置同步到云端"/><LineBreak/><Run Text="以及享受云服务带来的便利"/></TextBlock>
<metro2:CallMethodButton x:Name="Btn_ClickToLogin" Content="已有账户?点击登录" HorizontalAlignment="Left" Margin="29,226,0,0" VerticalAlignment="Top" Width="306" Height="45" BorderBrush="{x:Null}" FontSize="24" Click="Btn_ClickToLogin_Click">
<metro2:CallMethodButton.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
<GradientStop Color="Green"/>
<GradientStop Color="GreenYellow" Offset="1"/>
</LinearGradientBrush>
</metro2:CallMethodButton.Background>
</metro2:CallMethodButton>
</Grid>
<metro2:CallMethodButton x:Name="Btn_NaviToCloudBackup" Content="统计云备份 →" HorizontalAlignment="Right" Margin="0,91,10,0" VerticalAlignment="Top" FontSize="18" IsEnabled="False" Click="Btn_NaviToCloudBackup_Click"/>
</Grid>
</Grid>
<Grid x:Name="CloudBackup" Visibility="Hidden">
<TextBlock Margin="0,38,30,0" Text="{Binding Path=Text , ElementName=Tbl_Username , UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="24" />
<metro2:CallMethodButton x:Name="btn_Backup_CloudToLocal" Content="云端→本地" HorizontalAlignment="Left" Margin="68,241,0,0" VerticalAlignment="Top" FontSize="24" Click="btn_Backup_CloudToLocal_Click" Width="197"/>
<metro2:CallMethodButton x:Name="btn_Backup_LocalToCloud" Content="本地→云端" HorizontalAlignment="Left" Margin="294,241,0,0" VerticalAlignment="Top" FontSize="24" Click="btn_Backup_LocalToCloud_Click" Width="206"/>
<TextBlock x:Name="tbl_Backup_Introdution" Margin="0,151,0,0" Text="请选择功能,统计数据每5分钟会自动备份至云端一次。" VerticalAlignment="Top" FontSize="36" TextAlignment="Center"/>
</Grid>
<Grid x:Name="LandscapeView" Visibility="Hidden">
<TextBlock HorizontalAlignment="Left" Margin="10,80,0,0" VerticalAlignment="Top" FontSize="36"><Run Text="请前往KCV的 设置->Landscape"/><LineBreak/><Run Text="请前往KCV的 设置->行为设置"/><LineBreak/><Run Text="不支持3.5版本以上的KCV"/></TextBlock>
<TextBlock HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom"><Run Text="Modified from @Gizeta's code under the MIT License."/><LineBreak/><Run Text="https://github.com/Gizeta/KCV.Landscape"/><LineBreak/><Run Text="https://github.com/Gizeta/KCV.ViewRangeCalc"/></TextBlock>
</Grid>
<Grid x:Name="UtilityView" Visibility="Hidden">
<TextBlock HorizontalAlignment="Left" Margin="22,59,0,0" VerticalAlignment="Top" Text="代理自动配置" FontSize="24"/>
<metro2:CallMethodButton x:Name="Btn_AutoSetLogbook" Content="自动配置航海日志" HorizontalAlignment="Left" Margin="22,105,0,0" VerticalAlignment="Top" Click="Btn_AutoSetLogbook_Click"/>
<TextBlock HorizontalAlignment="Left" Margin="24,150,0,0" Text="本地代理自动配置:" VerticalAlignment="Top" FontSize="18"/>
<TextBlock HorizontalAlignment="Left" Margin="22,188,0,0" Text="端口:" VerticalAlignment="Top"/>
<metro:PromptTextBox x:Name="Ptb_ProxyPort" Prompt="Port" Margin="58,184,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="73"/>
<Button x:Name="Btn_AutoSetProxyByPort" Content="自动配置" HorizontalAlignment="Left" Margin="146,185,0,0" VerticalAlignment="Top" Width="75" Click="Btn_AutoSetProxyByPort_Click"/>
</Grid>
<Grid x:Name="ExpCal" Visibility="Hidden" >
<StackPanel Margin="0,26,0,-17">
<metro:PromptComboBox x:Name="pcb_ShipGirlList" Margin="15,8,0,8"
HorizontalAlignment="Left"
Prompt="选择舰娘"
ItemsSource="{Binding Ships}"
DisplayMemberPath="Ship"
SelectedValuePath="Ship"
SelectedValue="{Binding CurrentShip, Mode=TwoWay}"
IsReadOnly="True"
MinWidth="220" />
<Grid Margin="15,0,-15,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock x:Name="tbl_CurrentLevel" HorizontalAlignment="Left"
Margin="2,8,0,34"
Text="当前等级" Grid.RowSpan="2" />
<metro:PromptComboBox Margin="8"
ItemsSource="{Binding Source={StaticResource EnumerableRange}}"
HorizontalAlignment="Left"
Prompt=""
SelectedValue="{Binding CurrentLevel, Mode=TwoWay}"
IsReadOnly="True"
MinWidth="50"
Grid.Column="1"/>
<metro:PromptTextBox Grid.Column="2"
Text="{Binding CurrentExp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Prompt=""
Padding="2"
Margin="8"
MinWidth="70"
HorizontalAlignment="Left"
IsReadOnly="True" />
<TextBlock x:Name="tbl_TargetLevel" HorizontalAlignment="Left"
Margin="2,8,0,-8"
Grid.Column="0"
Grid.Row="1"
Text="目标等级" />
<metro:PromptComboBox Margin="8"
ItemsSource="{Binding Source={StaticResource EnumerableRange}}"
HorizontalAlignment="Left"
Prompt=""
SelectedValue="{Binding TargetLevel, Mode=TwoWay}"
IsReadOnly="True"
MinWidth="50"
Grid.Column="1"
Grid.Row="1"/>
<metro:PromptTextBox Grid.Column="2"
Grid.Row="1"
Text="{Binding TargetExp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Prompt=""
Padding="2"
Margin="8"
MinWidth="70"
HorizontalAlignment="Left"
IsReadOnly="True" />
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Left"
Margin="2,8,0,-8"
Text="海域" />
<metro:PromptComboBox Margin="8"
ItemsSource="{Binding SeaList}"
HorizontalAlignment="Left"
Prompt=""
SelectedValue="{Binding SelectedSea, Mode=TwoWay}"
IsReadOnly="True"
MinWidth="50"
Grid.Column="1" />
<TextBlock x:Name="tbl_Result" HorizontalAlignment="Left"
Margin="8,8,0,-8"
Grid.Column="2"
Text="结果" />
<metro:PromptComboBox Margin="18,6,0,10"
ItemsSource="{Binding ResultList}"
HorizontalAlignment="Left"
Prompt=""
SelectedValue="{Binding SelectedResult, Mode=TwoWay}"
IsReadOnly="True"
MinWidth="50"
Grid.Column="3" />
</Grid>
<Rectangle Height="1"
Margin="8"
Grid.Row="2"
Grid.ColumnSpan="2"
Style="{DynamicResource SeparatorRectangleStyleKey}" />
<Grid Grid.Column="1" Margin="80,0,96,0" Grid.RowSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock x:Name="tbl_Exp" HorizontalAlignment="Left"
Margin="12,14,0,27"
Text="出击经验值" Grid.ColumnSpan="2" Width="108" />
<metro:PromptTextBox Grid.Column="1"
Text="{Binding SortieExp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Prompt=""
Padding="2"
Margin="8,10,0,14.5"
MinWidth="70"
HorizontalAlignment="Left"
IsReadOnly="True" RenderTransformOrigin="0.457,0.154" Width="60" />
<metro:PromptTextBox Grid.Column="1"
Text="{Binding RunCount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Prompt=""
Padding="2"
Margin="8,45,0,59"
MinWidth="40"
HorizontalAlignment="Left"
IsReadOnly="True" Grid.RowSpan="2" Width="70" />
<TextBlock x:Name="tbl_Remaining" HorizontalAlignment="Left"
Margin="10,28,0,26"
Grid.Row="1"
Text="余剩经验值" />
<metro:PromptTextBox Grid.Column="1"
Grid.Row="1"
Text="{Binding RemainingExp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Prompt=""
Padding="2"
Margin="8,17,0,28"
MinWidth="70"
HorizontalAlignment="Left"
IsReadOnly="True" />
<TextBlock x:Name="tbl_E" TextWrapping="Wrap" Text="余剩场数" Margin="12,51,30,63" Grid.ColumnSpan="2" Grid.RowSpan="2"/>
</Grid>
<StackPanel Grid.Column="1"
Grid.RowSpan="2"
VerticalAlignment="Center" Margin="0,34,308,33">
<CheckBox x:Name="cb_Flagship" Content="旗舰" IsChecked="{Binding IsFlagship}" Height="17" Margin="8,0,-31,10"/>
<CheckBox x:Name="cb_MVP" Content="MVP" IsChecked="{Binding IsMVP}" Height="17" Margin="8,0,-51,10"/>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Grid>
</Grid>
</UserControl>