VRCMelonAssistant/ModAssistant/Pages/Options.xaml
2020-02-02 04:00:52 +00:00

82 lines
5.6 KiB
XML

<Page x:Class="ModAssistant.Pages.Options"
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:local="clr-namespace:ModAssistant.Pages"
mc:Ignorable="d"
d:DesignHeight="629" d:DesignWidth="1182"
Title="{DynamicResource Options:Title}">
<Page.Resources>
</Page.Resources>
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<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="auto"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Margin="15,5,5,5" Text="{DynamicResource Options:PageTitle}" FontSize="24" FontWeight="Bold" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="1" Margin="5" Text="{DynamicResource Options:InstalFolder}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16"/>
<Border Grid.ColumnSpan="2" Grid.Row="2" Margin="5" Background="LightGray" Height="30" MinWidth="450" >
<TextBlock Name="DirectoryTextBlock" Margin="5" Text="{Binding InstallDirectory}" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"/>
</Border>
<Button Grid.Row="2" Grid.Column="2" Margin="3" Height="30" Width="80" Content="{DynamicResource Options:SelectFolderButton}" Click="SelectDirButton_Click"/>
<Button Grid.Row="2" Grid.Column="3" Margin="3" Height="30" Width="80" Content="{DynamicResource Options:OpenFolderButton}" Click="OpenDirButton_Click"/>
<TextBlock Grid.Row="3" Margin="5" Text="{DynamicResource Options:SaveSelectedMods}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16" />
<CheckBox Grid.Row="3" Grid.Column="1" Name="SaveSelected" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding SaveSelection, Mode=TwoWay}" Checked="SaveSelected_Checked" Unchecked="SaveSelected_Unchecked"/>
<TextBlock Grid.Row="4" Margin="5" Text="{DynamicResource Options:CheckInstalledMods}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16" />
<CheckBox Grid.Row="4" Grid.Column="1" Name="CheckInstalled" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding CheckInstalledMods, Mode=TwoWay}" Checked="CheckInstalled_Checked" Unchecked="CheckInstalled_Unchecked"/>
<TextBlock Grid.Row="5" Margin="50,5,5,5" Text="{DynamicResource Options:SelectInstalledMods}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16" />
<CheckBox Grid.Row="5" Grid.Column="1" Name="SelectInstalled" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding SelectInstalledMods, Mode=TwoWay}" Checked="SelectInstalled_Checked" Unchecked="SelectInstalled_Unchecked"/>
<TextBlock Grid.Row="6" Margin="5" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16">
<TextBlock Text="{DynamicResource Options:EnableOneClickInstalls}" />: ↳
</TextBlock>
<TextBlock Grid.Row="7" Margin="50,5,5,5" Text="{DynamicResource Options:BeatSaver}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16" />
<CheckBox Grid.Row="7" Grid.Column="1" Name="BeatSaverProtocolHandler" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding BeatSaverProtocolHandlerEnabled}" Checked="BeatSaverProtocolHandler_Checked" Unchecked="BeatSaverProtocolHandler_Unchecked"/>
<TextBlock Grid.Row="8" Margin="50,5,5,5" Text="{DynamicResource Options:ModelSaber}" FontWeight="Bold" HorizontalAlignment="Left" FontSize="16" />
<CheckBox Grid.Row="8" Grid.Column="1" Name="ModelSaberProtocolHandler" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding ModelSaberProtocolHandlerEnabled}" Checked="ModelSaberProtocolHandler_Checked" Unchecked="ModelSaberProtocolHandler_Unchecked"/>
<StackPanel Grid.Row="12" Margin="5" Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock FontWeight="Bold" FontSize="16">
<TextBlock Text="{DynamicResource Options:GameType}" />:&#160;
</TextBlock>
<TextBlock Name="GameTypeTextBlock" Text="{Binding InstallType}" FontSize="16"/>
</StackPanel>
<TextBlock Grid.Row="13" Margin="15,5,5,5" Text="{DynamicResource Options:Diagnostics}" FontSize="24" FontWeight="Bold" HorizontalAlignment="Left"/>
<StackPanel Grid.Row="14" Margin="0" Orientation="Horizontal" HorizontalAlignment="Left">
<Button Margin="5" Height="30" Width="80" Content="{DynamicResource Options:OpenLogsButton}" Click="OpenLogsDirButton_Click"/>
<Button Margin="5" Height="30" x:Name="YeetBSIPA" Width="100" Content="{DynamicResource Options:UninstallBSIPAButton}" Click="YeetBSIPAButton_Click"/>
<Button Margin="5" Height="30" Width="110" Background="Red" Content="{DynamicResource Options:RemoveAllModsButton}" Click="YeetModsButton_Click"/>
</StackPanel>
</Grid>
</Page>