|
29 | 29 | </Grid.RowDefinitions> |
30 | 30 |
|
31 | 31 | <StackPanel Grid.Row="0" Orientation="Horizontal"> |
32 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.TemporaryUnlock}"/> |
| 32 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.TemporaryUnlock, Mode=TwoWay}"/> |
33 | 33 | <Label Margin="10,0,0,0" Content="Infinite items" VerticalAlignment="Center" Foreground="White"/> |
34 | 34 | </StackPanel> |
35 | 35 |
|
36 | 36 | <StackPanel Grid.Row="1" Orientation="Horizontal"> |
37 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.UnlockMarket}"/> |
| 37 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.UnlockMarket, Mode=TwoWay}"/> |
38 | 38 | <Label Margin="10,0,0,0" Content="Unlock characters & skins" VerticalAlignment="Center" Foreground="White"/> |
39 | 39 | </StackPanel> |
40 | 40 |
|
41 | 41 | <StackPanel Grid.Row="2" Orientation="Horizontal"> |
42 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.SpoofPlayername}"/> |
| 42 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.SpoofPlayername, Mode=TwoWay}"/> |
43 | 43 | <Label Margin="10,0,0,0" Content="Spoof playername" VerticalAlignment="Center" Foreground="White"/> |
44 | 44 | </StackPanel> |
45 | 45 |
|
46 | 46 | <StackPanel Grid.Row="3" Orientation="Horizontal"> |
47 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.BypassAnalytics}"/> |
| 47 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.BypassAnalytics, Mode=TwoWay}"/> |
48 | 48 | <Label Margin="10,0,0,0" Content="Bypass analytics" VerticalAlignment="Center" Foreground="White"/> |
49 | 49 | </StackPanel> |
50 | 50 |
|
51 | 51 | <StackPanel Grid.Row="4" Orientation="Horizontal"> |
52 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.BypassLogin}"/> |
| 52 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.BypassLogin, Mode=TwoWay}"/> |
53 | 53 | <Label Margin="10,0,0,0" Content="Bypass login" VerticalAlignment="Center" Foreground="White"/> |
54 | 54 | </StackPanel> |
55 | 55 |
|
56 | 56 | <StackPanel Grid.Row="5" Orientation="Horizontal"> |
57 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.FakeLocation}"/> |
| 57 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.FakeLocation, Mode=TwoWay}"/> |
58 | 58 | <Label Margin="10,0,0,0" Content="Fake location" VerticalAlignment="Center" Foreground="White"/> |
59 | 59 | </StackPanel> |
60 | 60 |
|
61 | 61 | <StackPanel Grid.Row="6" Orientation="Horizontal"> |
62 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.ForceClientValidation}"/> |
| 62 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.ForceClientValidation, Mode=TwoWay}"/> |
63 | 63 | <Label Margin="10,0,0,0" Content="Force client validation" VerticalAlignment="Center" Foreground="White"/> |
64 | 64 | </StackPanel> |
65 | 65 |
|
66 | 66 | <StackPanel Grid.Row="7" Orientation="Horizontal"> |
67 | | - <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.ForceIncentives}"/> |
| 67 | + <ToggleButton Height="20" IsChecked="{Binding ProxyViewModel.OptionsViewModel.OptionsModel.JSONOptionModel.ForceIncentives, Mode=TwoWay}"/> |
68 | 68 | <Label Margin="10,0,0,0" Content="Force incentives" VerticalAlignment="Center" Foreground="White"/> |
69 | 69 | </StackPanel> |
70 | 70 | </Grid> |
|
85 | 85 | </Grid> |
86 | 86 |
|
87 | 87 | <Grid Grid.Row="3" VerticalAlignment="Center"> |
88 | | - <Button Style="{StaticResource FullButton}" Content="{Binding ProxyViewModel.ProxyModel.Label}" Command="{Binding ProxyViewModel.ChangeStateProxyCommand}"/> |
| 88 | + <Grid.ColumnDefinitions> |
| 89 | + <ColumnDefinition Width="*"/> |
| 90 | + <ColumnDefinition Width="*"/> |
| 91 | + </Grid.ColumnDefinitions> |
| 92 | + <Button Grid.Column="0" Style="{StaticResource FullButton}" Content="{Binding ProxyViewModel.ProxyModel.Label}" Command="{Binding ProxyViewModel.ChangeStateProxyCommand}"/> |
| 93 | + <Button Grid.Column="1" Style="{StaticResource FullButton}" Content="Save" Command="{Binding ProxyViewModel.OptionsViewModel.SaveOptionsCommand}"/> |
89 | 94 | </Grid> |
90 | 95 | </Grid> |
91 | 96 | </UserControl> |
0 commit comments