VRCMelonAssistant/ModAssistant/Pages/Options.xaml

288 lines
9.8 KiB
Plaintext
Raw Normal View History

2020-02-26 22:48:54 +13:00
<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:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ModAssistant.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{DynamicResource Options:Title}"
d:DesignHeight="629"
d:DesignWidth="1182"
mc:Ignorable="d">
<Page.Resources />
2020-02-17 14:57:58 +13:00
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
2020-02-26 22:48:54 +13:00
<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" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
2020-02-17 14:57:58 +13:00
<Grid.ColumnDefinitions>
2020-02-26 22:48:54 +13:00
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
2019-12-19 17:13:44 +13:00
</Grid.ColumnDefinitions>
2019-04-22 18:41:43 +12:00
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="0"
Margin="15,5,5,5"
HorizontalAlignment="Left"
FontSize="24"
FontWeight="Bold"
Text="{DynamicResource Options:PageTitle}" />
2019-04-22 18:41:43 +12:00
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="1"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:InstallFolder}" />
<Border
Grid.Row="2"
Grid.ColumnSpan="2"
Height="30"
MinWidth="450"
Margin="5"
Background="{DynamicResource DirectoryBackground}"
BorderBrush="{DynamicResource DirectoryOutline}"
BorderThickness="1">
<TextBlock
Name="DirectoryTextBlock"
Margin="5"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="16"
Text="{Binding InstallDirectory}" />
2020-02-17 14:57:58 +13:00
</Border>
2020-02-26 22:48:54 +13:00
<Button
Grid.Row="2"
Grid.Column="2"
Width="93"
Height="30"
Margin="3"
Click="SelectDirButton_Click"
Content="{DynamicResource Options:SelectFolderButton}" />
<Button
Grid.Row="2"
Grid.Column="3"
Width="93"
Height="30"
Margin="3"
Click="OpenDirButton_Click"
Content="{DynamicResource Options:OpenFolderButton}" />
2019-04-22 18:41:43 +12:00
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="3"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:SaveSelectedMods}" />
<CheckBox
Name="SaveSelected"
Grid.Row="3"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="SaveSelected_Checked"
IsChecked="{Binding SaveSelection, Mode=TwoWay}"
Unchecked="SaveSelected_Unchecked" />
2019-04-22 18:41:43 +12:00
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="4"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:CheckInstalledMods}" />
<CheckBox
Name="CheckInstalled"
Grid.Row="4"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="CheckInstalled_Checked"
IsChecked="{Binding CheckInstalledMods, Mode=TwoWay}"
Unchecked="CheckInstalled_Unchecked" />
2019-05-19 03:32:14 +12:00
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="5"
Margin="50,5,5,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:SelectInstalledMods}" />
<CheckBox
Name="SelectInstalled"
Grid.Row="5"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="SelectInstalled_Checked"
IsChecked="{Binding SelectInstalledMods, Mode=TwoWay}"
Unchecked="SelectInstalled_Unchecked" />
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="6"
Margin="5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold">
<TextBlock Text="{DynamicResource Options:EnableOneClickInstalls}" />
: ↳
2020-02-02 17:00:52 +13:00
</TextBlock>
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="7"
Margin="50,5,5,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:BeatSaver}" />
<CheckBox
Name="BeatSaverProtocolHandler"
Grid.Row="7"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="BeatSaverProtocolHandler_Checked"
IsChecked="{Binding BeatSaverProtocolHandlerEnabled}"
Unchecked="BeatSaverProtocolHandler_Unchecked" />
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="8"
Margin="50,5,5,5"
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold"
Text="{DynamicResource Options:ModelSaber}" />
<CheckBox
Name="ModelSaberProtocolHandler"
Grid.Row="8"
Grid.Column="1"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Checked="ModelSaberProtocolHandler_Checked"
IsChecked="{Binding ModelSaberProtocolHandlerEnabled}"
Unchecked="ModelSaberProtocolHandler_Unchecked" />
2020-02-26 22:48:54 +13:00
<StackPanel
Grid.Row="12"
Margin="5"
HorizontalAlignment="Left"
Orientation="Horizontal">
<TextBlock FontSize="16" FontWeight="Bold">
<TextBlock Text="{DynamicResource Options:GameType}" />
:&#160;
2020-02-02 17:00:52 +13:00
</TextBlock>
2020-02-26 22:48:54 +13:00
<TextBlock
Name="GameTypeTextBlock"
FontSize="16"
Text="{Binding InstallType}" />
2020-02-03 19:03:41 +13:00
</StackPanel>
2020-02-08 12:49:03 +13:00
2020-02-26 22:48:54 +13:00
<StackPanel
Grid.Row="13"
Grid.ColumnSpan="2"
Margin="5"
HorizontalAlignment="Stretch">
2020-02-08 12:49:03 +13:00
<Grid>
<Grid.ColumnDefinitions>
2020-02-26 22:48:54 +13:00
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
2020-02-08 12:49:03 +13:00
</Grid.ColumnDefinitions>
2020-02-26 22:48:54 +13:00
<TextBlock
HorizontalAlignment="Left"
FontSize="16"
FontWeight="Bold">
<TextBlock Text="{DynamicResource Options:ApplicationTheme}" />
:&#160;
2020-02-17 15:16:22 +13:00
</TextBlock>
2020-02-26 22:48:54 +13:00
<ComboBox
Name="ApplicationThemeComboBox"
Grid.Column="2"
Height="30"
HorizontalAlignment="Stretch"
VerticalContentAlignment="Center"
SelectionChanged="ApplicationThemeComboBox_SelectionChanged" />
2020-02-08 12:49:03 +13:00
</Grid>
</StackPanel>
2020-02-26 22:48:54 +13:00
<Button
Name="ApplicationThemeExportTemplate"
Grid.Row="13"
Grid.Column="2"
Width="93"
Height="30"
Margin="3"
Click="ApplicationThemeExportTemplate_Click"
Content="{DynamicResource Options:ExportTemplateButton}" />
<Button
Name="ApplicationThemeOpenThemesFolder"
Grid.Row="13"
Grid.Column="3"
Width="93"
Height="30"
Margin="3"
Click="ApplicationThemeOpenThemesFolder_Click"
Content="{DynamicResource Options:OpenFolderButton}" />
2020-02-26 22:48:54 +13:00
<TextBlock
Grid.Row="14"
Margin="15,5,5,5"
HorizontalAlignment="Left"
FontSize="24"
FontWeight="Bold"
Text="{DynamicResource Options:Diagnostics}" />
<StackPanel
Grid.Row="15"
Margin="0"
HorizontalAlignment="Left"
Orientation="Horizontal">
<Button
Width="80"
Height="30"
Margin="5"
Click="OpenLogsDirButton_Click"
Content="{DynamicResource Options:OpenLogsButton}" />
<Button
x:Name="OpenAppData"
Width="100"
Height="30"
Margin="5"
Click="OpenAppDataButton_Click"
Content="{DynamicResource Options:OpenAppDataButton}" />
<Button
x:Name="YeetBSIPA"
Width="100"
Height="30"
Margin="5"
Click="YeetBSIPAButton_Click"
Content="{DynamicResource Options:UninstallBSIPAButton}" />
<Button
Width="110"
Height="30"
Margin="5"
Background="{DynamicResource ButtonDangerBackground}"
Click="YeetModsButton_Click">
<TextBlock Foreground="White" Text="{DynamicResource Options:RemoveAllModsButton}" />
2020-02-14 17:44:51 +13:00
</Button>
</StackPanel>
</Grid>
2019-04-22 18:41:43 +12:00
</Page>