2021-01-01 10:27:42 -05:00
|
|
|
<!-- ReSharper disable once UnusedType.Global -->
|
2020-12-25 10:49:51 -05:00
|
|
|
<views:MvxWpfView
|
|
|
|
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
|
|
x:Class="auto_creamapi.Views.MainView"
|
|
|
|
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:wcl="clr-namespace:WatermarkControlsLib.Controls;assembly=WatermarkControlsLib"
|
|
|
|
xmlns:vm="clr-namespace:auto_creamapi.ViewModels"
|
|
|
|
d:DataContext="{d:DesignInstance Type=vm:MainViewModel}"
|
|
|
|
xmlns:converters="clr-namespace:auto_creamapi.Converters"
|
2021-01-05 06:30:34 -05:00
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="720" d:DesignWidth="560">
|
2020-12-25 10:49:51 -05:00
|
|
|
<views:MvxWpfView.Resources>
|
2020-12-28 09:27:37 -05:00
|
|
|
<converters:ListOfDLcToStringNativeConverter x:Key="DlcConv" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</views:MvxWpfView.Resources>
|
|
|
|
<Grid IsEnabled="{Binding MainWindowEnabled, Mode=TwoWay}">
|
|
|
|
<Grid.RowDefinitions>
|
2020-12-28 09:27:37 -05:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid.RowDefinitions>
|
2021-01-01 10:27:42 -05:00
|
|
|
<wcl:WatermarkTextBox Text="{Binding DllPath}" Watermark="Path to game's steam_api(64).dll..."
|
2021-01-05 06:30:34 -05:00
|
|
|
Margin="10,10,55,0" TextWrapping="NoWrap" VerticalAlignment="Top" Padding="0"
|
2020-12-28 09:27:37 -05:00
|
|
|
Grid.Row="0" IsReadOnly="True" IsReadOnlyCaretVisible="True">
|
2020-12-25 10:49:51 -05:00
|
|
|
<!--MouseDoubleClick="{Binding Path=OpenFileCommand}"-->
|
|
|
|
<wcl:WatermarkTextBox.InputBindings>
|
2021-01-01 10:27:42 -05:00
|
|
|
<MouseBinding
|
|
|
|
Gesture="LeftDoubleClick"
|
|
|
|
Command="{Binding OpenFileCommand}" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</wcl:WatermarkTextBox.InputBindings>
|
|
|
|
</wcl:WatermarkTextBox>
|
2020-12-28 09:27:37 -05:00
|
|
|
<Button Content="" HorizontalAlignment="Right" Margin="0,10,10,0" VerticalAlignment="Top"
|
|
|
|
FontFamily="Segoe UI Symbol" Width="40" Command="{Binding OpenFileCommand}" ToolTip="Select DLL file."
|
|
|
|
Grid.Row="0" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<wcl:WatermarkTextBox Text="{Binding GameName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Margin="10,10,180,0"
|
2020-12-28 09:27:37 -05:00
|
|
|
Watermark="Game Name" TextWrapping="Wrap" VerticalAlignment="Top" Padding="0"
|
2021-01-01 10:27:42 -05:00
|
|
|
Grid.Row="1">
|
|
|
|
<wcl:WatermarkTextBox.InputBindings>
|
|
|
|
<KeyBinding
|
|
|
|
Key="Enter"
|
|
|
|
Command="{Binding SearchCommand}" />
|
|
|
|
</wcl:WatermarkTextBox.InputBindings>
|
|
|
|
</wcl:WatermarkTextBox>
|
2020-12-28 09:27:37 -05:00
|
|
|
<Button Content="" HorizontalAlignment="Right" Margin="0,9,135,0" VerticalAlignment="Top"
|
|
|
|
FontFamily="Segoe UI Symbol" Width="40" Command="{Binding SearchCommand}" ToolTip="Find AppID."
|
|
|
|
Grid.Row="1" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<wcl:WatermarkTextBox Text="{Binding AppId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
2020-12-28 09:27:37 -05:00
|
|
|
HorizontalAlignment="Right" Margin="0,10,10,0" Watermark="AppID" TextWrapping="Wrap"
|
|
|
|
VerticalAlignment="Top" Width="120" Padding="0" Grid.Row="1" />
|
2020-12-25 10:49:51 -05:00
|
|
|
<TextBlock Grid.Row="2" Margin="10,10,10,0">
|
|
|
|
<Hyperlink Command="{Binding GoToForumThreadCommand}">Search for cs.rin.ru thread</Hyperlink>
|
|
|
|
</TextBlock>
|
2021-01-01 10:27:42 -05:00
|
|
|
<ComboBox ItemsSource="{Binding Path=Languages}" SelectedItem="{Binding Path=Lang, Mode=TwoWay}"
|
2020-12-28 09:27:37 -05:00
|
|
|
HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="120" Grid.Row="3" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="Force offline mode" IsChecked="{Binding Offline, Mode=TwoWay}"
|
2020-12-28 09:27:37 -05:00
|
|
|
HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" ToolTip="offlinemode"
|
|
|
|
Grid.Row="4" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="Try to bypass game-specific protection"
|
|
|
|
IsChecked="{Binding ExtraProtection, Mode=TwoWay}" HorizontalAlignment="Left" Margin="10,10,0,0"
|
2020-12-28 09:27:37 -05:00
|
|
|
VerticalAlignment="Top" ToolTip="extraprotection" Grid.Row="5" />
|
2020-12-25 10:49:51 -05:00
|
|
|
<Grid Margin="10,10,10,0" Grid.Row="6">
|
|
|
|
<Grid.RowDefinitions>
|
2020-12-28 09:27:37 -05:00
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox Header="DLC" Grid.Row="0" VerticalAlignment="Stretch">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
2021-01-04 10:14:10 -05:00
|
|
|
<RowDefinition Height="Auto" />
|
2020-12-28 09:27:37 -05:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid.RowDefinitions>
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="Unlock all DLCs (if possible)"
|
|
|
|
IsChecked="{Binding UnlockAll, Mode=TwoWay}" HorizontalAlignment="Left"
|
2020-12-28 09:27:37 -05:00
|
|
|
Margin="10,10,0,0" VerticalAlignment="Top" ToolTip="unlockall" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="Additionally use SteamDB for DLCs"
|
2020-12-28 09:27:37 -05:00
|
|
|
IsChecked="{Binding UseSteamDb, Mode=TwoWay}" HorizontalAlignment="Left"
|
|
|
|
Margin="10,10,0,0" VerticalAlignment="Top" Grid.Row="1" />
|
2021-01-04 10:14:10 -05:00
|
|
|
<CheckBox Content="Ignore unknown DLC from SteamDB" IsEnabled="{Binding UseSteamDb}"
|
|
|
|
IsChecked="{Binding IgnoreUnknown, Mode=TwoWay}" HorizontalAlignment="Left"
|
|
|
|
Margin="10,10,0,0" VerticalAlignment="Top" Grid.Row="2" />
|
2020-12-25 10:49:51 -05:00
|
|
|
<!-- Text="{Binding Dlcs, Converter={StaticResource DlcConv}, Mode=TwoWay}"-->
|
|
|
|
<!-- Text="{Binding DlcsString, Mode=TwoWay}"-->
|
2021-01-01 10:27:42 -05:00
|
|
|
<wcl:WatermarkTextBox
|
|
|
|
Text="{Binding Dlcs, Converter={StaticResource DlcConv}, Mode=TwoWay}"
|
|
|
|
Margin="10,10,10,0" Watermark="List of DLCs...
0000 = DLC Name"
|
|
|
|
TextWrapping="Wrap" AcceptsReturn="True"
|
2021-01-05 06:30:34 -05:00
|
|
|
VerticalScrollBarVisibility="Visible" Padding="5,5,5,5"
|
2021-01-04 10:14:10 -05:00
|
|
|
FontFamily="../resources/#Courier Prime" Grid.Row="3" />
|
2020-12-28 09:27:37 -05:00
|
|
|
<Button Content="Get DLCs for AppID" Margin="0,10,10,10" Height="19.96" HorizontalAlignment="Right"
|
2021-01-04 10:14:10 -05:00
|
|
|
VerticalAlignment="Bottom" Width="108" Command="{Binding GetListOfDlcCommand}" Grid.Row="4" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
2021-01-13 07:04:35 -05:00
|
|
|
<GroupBox Header="Status" Grid.Row="1" VerticalAlignment="Bottom" IsEnabled="False" Margin="0,10,0,0">
|
2020-12-25 10:49:51 -05:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2020-12-28 09:27:37 -05:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid.ColumnDefinitions>
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="CreamAPI DLL applied" Margin="10,10,0,10"
|
2020-12-28 09:27:37 -05:00
|
|
|
Grid.Column="0" IsChecked="{Binding DllApplied, Mode=TwoWay}" />
|
2021-01-01 10:27:42 -05:00
|
|
|
<CheckBox Content="CreamAPI Config exists" Margin="10,10,0,10"
|
2020-12-28 09:27:37 -05:00
|
|
|
Grid.Column="1" IsChecked="{Binding ConfigExists, Mode=TwoWay}" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</Grid>
|
2020-12-28 09:27:37 -05:00
|
|
|
<Button Content="Save" Command="{Binding SaveCommand}" Margin="0,10,55,10" HorizontalAlignment="Right"
|
|
|
|
Width="40" Height="20" VerticalAlignment="Bottom" Grid.Row="7" />
|
|
|
|
<Button Content="Reset" Command="{Binding ResetFormCommand}" Margin="0,10,10,10" Height="20"
|
|
|
|
VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="40" Grid.Row="7" />
|
2020-12-25 10:49:51 -05:00
|
|
|
<StatusBar Grid.Row="8">
|
|
|
|
<StatusBarItem Height="30" Margin="0,0,0,0">
|
2021-01-01 10:27:42 -05:00
|
|
|
<TextBlock Text="{Binding Status, Mode=TwoWay}" />
|
2020-12-25 10:49:51 -05:00
|
|
|
</StatusBarItem>
|
|
|
|
</StatusBar>
|
|
|
|
</Grid>
|
|
|
|
</views:MvxWpfView>
|