-
Notifications
You must be signed in to change notification settings - Fork 2
/
SteamEmuUtilitySettingsView.xaml
248 lines (246 loc) · 18.2 KB
/
SteamEmuUtilitySettingsView.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
<UserControl x:Class="SteamEmuUtility.SteamEmuUtilitySettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:cv="clr-namespace:ConvertersCommon"
xmlns:steam="clr-namespace:SteamEmuUtility"
mc:Ignorable="d"
d:DesignHeight="400" d:DesignWidth="600">
<TabControl>
<TabItem Header="{DynamicResource LOCSEU_GeneralLabel}">
<ScrollViewer>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,7" Grid.Row="0">
<CheckBox Content="{DynamicResource LOCSEU_CheckGLUpdate}" IsChecked="{Binding Settings.CheckGreenLumaUpdate}" Margin="0,0,0,7"/>
<CheckBox Content="{DynamicResource LOCSEU_CheckGBUpdate}" VerticalAlignment="Center" IsChecked="{Binding Settings.CheckGoldbergUpdate}"/>
<Separator Margin="0,15,0,0"/>
</StackPanel>
<StackPanel Margin="0,7,0,7" Grid.Row="1">
<TextBlock Text="{DynamicResource LOCSEU_SteamWebApiKey}" Margin="0,0,0,7" VerticalAlignment="Center"/>
<DockPanel>
<PasswordBox MinWidth="250" MaxWidth="350" Margin="0,0,15,0" steam:PasswordBoxAssistant.BindPassword="True" steam:PasswordBoxAssistant.BoundPassword="{Binding Settings.SteamWebApi, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=150}" VerticalAlignment="Center"/>
<TextBlock VerticalAlignment="Center">
<Hyperlink NavigateUri="https://steamcommunity.com/dev/apikey"
Command="{Binding OpenURL}"
CommandParameter="{Binding NavigateUri, RelativeSource={RelativeSource Self}}">
<Run Text="{DynamicResource LOCSEU_GetApiKey}"/>
</Hyperlink>
</TextBlock>
</DockPanel>
<Separator Margin="0,15,0,0"/>
</StackPanel>
<Grid Margin="0,5,0,5" Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{DynamicResource LOCSEU_GreenLumaStatus}" VerticalAlignment="Center" Grid.Column="0" Margin="0,0,15,0"/>
<TextBlock Text="{Binding Settings.GreenLumaStatus}" VerticalAlignment="Center" Grid.Column="1">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="{Binding Settings.GreenLumaReady}" Value="True">
<Setter Property="Foreground" Value="LimeGreen"/>
</DataTrigger>
<DataTrigger Binding="{Binding Settings.GreenLumaReady}" Value="False">
<Setter Property="Foreground" Value="IndianRed"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<Grid Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Content="{DynamicResource LOCSEU_Import}" Command="{Binding ImportGreenLuma}" VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
<TextBlock Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Center">
<Hyperlink NavigateUri="https://cs.rin.ru/forum/viewtopic.php?f=29&t=103709"
Command="{Binding OpenURL}"
CommandParameter="{Binding NavigateUri, RelativeSource={RelativeSource Self}}">
<Run Text="{DynamicResource LOCSEU_Download}"/>
</Hyperlink>
</TextBlock>
</Grid>
<StackPanel Grid.Row="1" Grid.Column="1" Visibility="{Binding Settings.GreenLumaNotExists, Converter={cv:BooleanToVisibilityConverter}}">
<ItemsControl ItemsSource="{Binding Settings.MissingGreenLumaFiles}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" Foreground="IndianRed"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
<Separator Grid.Row="3" Margin="0,5,0,5"/>
<Grid Margin="0,7,0,7" Grid.Row="4">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{DynamicResource LOCSEU_GoldbergStatus}" VerticalAlignment="Center" Grid.Column="0" Margin="0,0,15,0"/>
<TextBlock Text="{Binding Settings.GoldbergStatus}" Grid.Column="1" VerticalAlignment="Center">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
<DataTrigger Binding="{Binding Settings.GoldbergReady}" Value="True">
<Setter Property="Foreground" Value="LimeGreen"/>
</DataTrigger>
<DataTrigger Binding="{Binding Settings.GoldbergReady}" Value="False">
<Setter Property="Foreground" Value="IndianRed"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<Grid Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Content="{DynamicResource LOCSEU_Import}" Command="{Binding ImportGoldberg}" VerticalAlignment="Center"/>
<Button Grid.Column="1" Content="{DynamicResource LOCSEU_Download}" Command="{Binding DownloadGoldbergButton}" VerticalAlignment="Center" Margin="5,0,0,0"/>
</Grid>
<StackPanel Grid.Row="1" Grid.Column="1" Margin="0,0,0,0" Visibility="{Binding Settings.GoldbergNotExists, UpdateSourceTrigger=PropertyChanged, Converter={cv:BooleanToVisibilityConverter}}">
<ItemsControl ItemsSource="{Binding Settings.MissingGoldbergFiles}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" Foreground="IndianRed"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</Grid>
</ScrollViewer>
</TabItem>
<TabItem Header="{DynamicResource LOCSEU_GreenLumaSettingsLabel}">
<ScrollViewer>
<StackPanel Orientation="Vertical" Margin="20">
<StackPanel>
<TextBlock Text="{DynamicResource LOCSEU_GeneralLabel}" FontWeight="Bold" Margin="5,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_RunSteamArgs}" IsChecked="{Binding Settings.EnableSteamArgs}" Margin="0,0,0,10"/>
<TextBox IsEnabled="{Binding Settings.EnableSteamArgs}" Text="{Binding Settings.SteamArgs}" Margin="0,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_GLCleanApplistFolderNotEmpty}" IsChecked="{Binding Settings.CleanApplist}" Margin="0,0,0,15"/>
<TextBlock Text="{Binding Settings.GreenLumaNormalTimeoutText}" Margin="0,0,0,10"/>
<Slider Value="{Binding Settings.GreenLumaNormalTimeout}" Minimum="3" Maximum="10" IsSnapToTickEnabled="True" TickFrequency="1" Width="140" HorizontalAlignment="Left" Margin="0,0,0,10"/>
</StackPanel>
<Separator/>
<StackPanel Margin="5,10,5,0">
<TextBlock Text="{DynamicResource LOCSEU_StealthMode}" FontWeight="Bold" Margin="5,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_GLSkipSteamUpdateStealth}" IsChecked="{Binding Settings.SkipUpdateStealth}" Margin="0,0,0,10"/>
</StackPanel>
<Separator/>
<StackPanel Margin="5,10,5,0">
<TextBlock Text="{DynamicResource LOCSEU_FamilyMode}" FontWeight="Bold" Margin="5,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_GLSkipSteamUpdateFamily}" IsChecked="{Binding Settings.SkipUpdateFamily}" Margin="0,0,0,10"/>
</StackPanel>
<Separator/>
<StackPanel Margin="5,10,5,0">
<TextBlock Text="{DynamicResource LOCSEU_NormalMode}" FontWeight="Bold" Margin="5,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_CheckGLFilesStartup}" IsChecked="{Binding Settings.CleanGreenLumaStartup}" Margin="0,0,0,5"/>
<CheckBox Content="{DynamicResource LOCSEU_CleanGLAfterGame}" IsChecked="{Binding Settings.CleanGreenLuma}" Margin="0,0,0,5"/>
<ComboBox Visibility="{Binding Settings.CleanGreenLuma, Converter={cv:BooleanToVisibilityConverter}}" SelectedIndex="{Binding Settings.CleanMode}" Margin="0,5,0,5">
<ComboBoxItem>
<StackPanel>
<TextBlock Text="{DynamicResource LOCSEU_ImmediatelyCleanGL}" FontWeight="Bold" Margin="5,5,0,5"/>
<TextBlock Text="{DynamicResource LOCSEU_ImmediatelyDescription}" Margin="5,0,0,5"/>
</StackPanel>
</ComboBoxItem>
<ComboBoxItem>
<StackPanel>
<TextBlock Text="{DynamicResource LOCSEU_ManuallyCleanGL}" FontWeight="Bold" Margin="5,5,0,5"/>
<TextBlock Text="{DynamicResource LOCSEU_ManuallyCleanGLDescription}" Margin="5,0,0,5"/>
</StackPanel>
</ComboBoxItem>
</ComboBox>
<CheckBox Content="{DynamicResource LOCSEU_InjectAppOwnershipTickets}" IsChecked="{Binding Settings.InjectAppOwnership}" Margin="0,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_InjectEncryptedAppTickets}" IsChecked="{Binding Settings.InjectEncryptedApp}" Margin="0,0,0,10"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{DynamicResource LOCSEU_GoldbergSettingsLabel}">
<ScrollViewer>
<StackPanel Orientation="Vertical" Margin="20">
<StackPanel>
<CheckBox Content="{DynamicResource LOCSEU_GBNoQuestion}" ToolTip="{DynamicResource LOCSEU_GBNoQuestionTooltip}" VerticalAlignment="Center" IsChecked="{Binding Settings.GoldbergOverride}" Margin="0,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_OpenSteamUnlockLastGame}" VerticalAlignment="Center" IsChecked="{Binding Settings.OpenSteamAfterExit}" Margin="0,0,0,10"/>
</StackPanel>
<Separator/>
<StackPanel Orientation="Vertical" Margin="5,0,0,5">
<TextBlock Text="{DynamicResource LOCSEU_GoldbergSettingsLabel}" Margin="5,5,0,10" FontWeight="Bold"/>
</StackPanel>
<Grid Margin="5,5,5,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Margin="2" Grid.Column="0">
<TextBlock Text="{DynamicResource LOCSEU_Avatar}" Margin="0,0,0,10" HorizontalAlignment="Center"/>
<Ellipse Width="125" Height="125" Margin="0,0,0,10">
<Ellipse.Fill>
<ImageBrush ImageSource="{Binding Settings.AvatarImage}" Stretch="UniformToFill"/>
</Ellipse.Fill>
</Ellipse>
<Button Content="{DynamicResource LOCSEU_Change}" Command="{Binding ChangeAvatar}" HorizontalAlignment="Center"/>
<CheckBox Content="{DynamicResource LOCSEU_AvatarEnable}" Margin="0,10,0,2" IsChecked="{Binding Settings.GoldbergEnableAccountAvatar}"/>
</StackPanel>
<Grid Margin="10,0,0,0" Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{DynamicResource LOCSEU_AccountName}" Grid.Column="0" Margin="0,0,0,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergAccountName}" Grid.Column="1" Margin="5,0,0,10" VerticalAlignment="Center"/>
<TextBlock Text="{DynamicResource LOCSEU_UserSteamID}" Grid.Column="0" Grid.Row="1" Margin="0,0,5,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergUserSteamID}" Grid.Column="1" Grid.Row="1" Margin="5,0,0,10" VerticalAlignment="Center"/>
<TextBlock Text="{DynamicResource LOCSEU_Language}" Grid.Column="0" Grid.Row="2" Margin="0,0,5,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergLanguage}" Grid.Column="1" Grid.Row="2" Margin="5,0,0,10" VerticalAlignment="Center"/>
<TextBlock Text="{DynamicResource LOCSEU_ListenPort}" Grid.Column="0" Grid.Row="3" Margin="0,0,5,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergListenPort}" Grid.Column="1" Grid.Row="3" Margin="5,0,0,10" VerticalAlignment="Center"/>
<TextBlock Text="{DynamicResource LOCSEU_Broadcasts}" Grid.Column="0" Grid.Row="4" Margin="0,0,5,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergCustomBroadcasts}" Grid.Column="1" Grid.Row="4" Margin="5,0,0,10" VerticalAlignment="Center"
AcceptsReturn="True" VerticalScrollBarVisibility="Auto" MaxHeight="60"/>
<TextBlock Text="{DynamicResource LOCSEU_CountryIP}" Grid.Column="0" Grid.Row="5" Margin="0,0,5,10" VerticalAlignment="Center"/>
<TextBox Text="{Binding Settings.GoldbergCountryIP}" Grid.Column="1" Grid.Row="5" Margin="5,0,0,10" VerticalAlignment="Center"/>
</Grid>
</Grid>
</StackPanel>
</ScrollViewer>
</TabItem>
</TabControl>
</UserControl>