0
0
mirror of https://github.com/sp-tarkov/patcher.git synced 2025-02-12 22:50:46 -05:00
patcher/Patcher/PatchGenerator/Views/OptionsView.axaml

36 lines
1.6 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
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:cc="using:PatchGenerator.CustomControls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="PatchGenerator.Views.OptionsView">
<Grid ColumnDefinitions="2*,10,2*" RowDefinitions="*,10, AUTO, 10, AUTO" Margin="10">
<cc:FolderSelector FolderPath="{Binding GenerationInfo.SourceFolderPath, Mode=TwoWay}"/>
<cc:FolderSelector Grid.Column="2"
FolderPath="{Binding GenerationInfo.TargetFolderPath, Mode=TwoWay}"/>
<TextBox Text="{Binding GenerationInfo.PatchName}"
Grid.Row="2" Grid.ColumnSpan="3"
Watermark="Output Folder Name"
/>
<!-- UNRESOLVED ISSUES: disabling for now -->
<!-- <CheckBox Content="Zip Generated Files" Grid.Row="4" -->
<!-- IsChecked="{Binding GenerationInfo.AutoZip}"/> -->
<Button Content="Generate Patches" Grid.ColumnSpan="3" Grid.Row="4"
HorizontalAlignment="Right"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
FontSize="15"
FontWeight="SemiBold"
Height="50"
Width="200"
Command="{Binding GeneratePatches}"
IsEnabled="{Binding GenerationInfo.ReadyToRun}"
/>
</Grid>
</UserControl>