mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-02 10:34:33 +12:00
Add ReinstallInstalled option to UI
This commit is contained in:
parent
2799bdd4aa
commit
2dea0440e0
|
@ -95,6 +95,7 @@
|
|||
<sys:String x:Key="Options:SaveSelectedMods">Options:SaveSelectedMods</sys:String>
|
||||
<sys:String x:Key="Options:CheckInstalledMods">Options:CheckInstalledMods</sys:String>
|
||||
<sys:String x:Key="Options:SelectInstalledMods">Options:SelectInstalledMods</sys:String>
|
||||
<sys:String x:Key="Options:ReinstallInstalledMods">Options:Reinstall Installed Mods</sys:String>
|
||||
<sys:String x:Key="Options:EnableOneClickInstalls">Options:EnableOneClickInstalls</sys:String>
|
||||
<sys:String x:Key="Options:BeatSaver">Options:BeatSaver</sys:String>
|
||||
<sys:String x:Key="Options:ModelSaber">Options:ModelSaber</sys:String>
|
||||
|
|
|
@ -135,6 +135,7 @@
|
|||
<sys:String x:Key="Options:SaveSelectedMods">Save Selected Mods</sys:String>
|
||||
<sys:String x:Key="Options:CheckInstalledMods">Detect Installed Mods</sys:String>
|
||||
<sys:String x:Key="Options:SelectInstalledMods">Select Installed Mods</sys:String>
|
||||
<sys:String x:Key="Options:ReinstallInstalledMods">Reinstall Installed Mods</sys:String>
|
||||
<sys:String x:Key="Options:EnableOneClickInstalls">Enable OneClick™ Installs</sys:String>
|
||||
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
|
||||
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
|
||||
|
|
|
@ -127,6 +127,7 @@
|
|||
<sys:String x:Key="Options:SaveSelectedMods">保存选中的Mod</sys:String>
|
||||
<sys:String x:Key="Options:CheckInstalledMods">检查已安装的Mod</sys:String>
|
||||
<sys:String x:Key="Options:SelectInstalledMods">选中已安装的Mod</sys:String>
|
||||
<sys:String x:Key="Options:ReinstallInstalledMods">Reinstall Installed Mods</sys:String>
|
||||
<sys:String x:Key="Options:EnableOneClickInstalls">在以下站点启用OneClick™一键安装:</sys:String>
|
||||
<sys:String x:Key="Options:BeatSaver">BeatSaver</sys:String>
|
||||
<sys:String x:Key="Options:ModelSaber">ModelSaber</sys:String>
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
|
@ -135,9 +136,26 @@
|
|||
Checked="SelectInstalled_Checked"
|
||||
IsChecked="{Binding SelectInstalledMods, Mode=TwoWay}"
|
||||
Unchecked="SelectInstalled_Unchecked" />
|
||||
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="6"
|
||||
Margin="50,5,5,5"
|
||||
HorizontalAlignment="Left"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Text="{DynamicResource Options:ReinstallInstalledMods}" />
|
||||
<CheckBox
|
||||
Name="ReinstallInstalled"
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Checked="ReinstallInstalled_Checked"
|
||||
IsChecked="{Binding ReinstallInstalledMods, Mode=TwoWay}"
|
||||
Unchecked="ReinstallInstalled_Unchecked" />
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="7"
|
||||
Margin="5"
|
||||
HorizontalAlignment="Left"
|
||||
FontSize="16"
|
||||
|
@ -147,7 +165,7 @@
|
|||
</TextBlock>
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="7"
|
||||
Grid.Row="8"
|
||||
Margin="50,5,5,5"
|
||||
HorizontalAlignment="Left"
|
||||
FontSize="16"
|
||||
|
@ -155,7 +173,7 @@
|
|||
Text="{DynamicResource Options:BeatSaver}" />
|
||||
<CheckBox
|
||||
Name="BeatSaverProtocolHandler"
|
||||
Grid.Row="7"
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
|
@ -164,7 +182,7 @@
|
|||
Unchecked="BeatSaverProtocolHandler_Unchecked" />
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="8"
|
||||
Grid.Row="9"
|
||||
Margin="50,5,5,5"
|
||||
HorizontalAlignment="Left"
|
||||
FontSize="16"
|
||||
|
@ -172,7 +190,7 @@
|
|||
Text="{DynamicResource Options:ModelSaber}" />
|
||||
<CheckBox
|
||||
Name="ModelSaberProtocolHandler"
|
||||
Grid.Row="8"
|
||||
Grid.Row="9"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace ModAssistant.Pages
|
|||
public bool SaveSelection { get; set; }
|
||||
public bool CheckInstalledMods { get; set; }
|
||||
public bool SelectInstalledMods { get; set; }
|
||||
public bool ReinstallInstalledMods { get; set; }
|
||||
public bool ModelSaberProtocolHandlerEnabled { get; set; }
|
||||
public bool BeatSaverProtocolHandlerEnabled { get; set; }
|
||||
public string LogURL { get; private set; }
|
||||
|
@ -33,8 +34,13 @@ namespace ModAssistant.Pages
|
|||
SaveSelection = App.SaveModSelection;
|
||||
CheckInstalledMods = App.CheckInstalledMods;
|
||||
SelectInstalledMods = App.SelectInstalledMods;
|
||||
ReinstallInstalledMods = App.ReinstallInstalledMods;
|
||||
if (!CheckInstalledMods)
|
||||
{
|
||||
SelectInstalled.IsEnabled = false;
|
||||
ReinstallInstalled.IsEnabled = false;
|
||||
}
|
||||
|
||||
|
||||
UpdateHandlerStatus();
|
||||
|
||||
|
@ -85,6 +91,7 @@ namespace ModAssistant.Pages
|
|||
CheckInstalledMods = true;
|
||||
Properties.Settings.Default.Save();
|
||||
SelectInstalled.IsEnabled = true;
|
||||
ReinstallInstalled.IsEnabled = true;
|
||||
|
||||
if (MainWindow.ModsOpened)
|
||||
{
|
||||
|
@ -99,6 +106,7 @@ namespace ModAssistant.Pages
|
|||
CheckInstalledMods = false;
|
||||
Properties.Settings.Default.Save();
|
||||
SelectInstalled.IsEnabled = false;
|
||||
ReinstallInstalled.IsEnabled = false;
|
||||
|
||||
if (MainWindow.ModsOpened)
|
||||
{
|
||||
|
@ -142,6 +150,22 @@ namespace ModAssistant.Pages
|
|||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void ReinstallInstalled_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.ReinstallInstalled = true;
|
||||
App.ReinstallInstalledMods = true;
|
||||
ReinstallInstalledMods = true;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void ReinstallInstalled_Unchecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.ReinstallInstalled = false;
|
||||
App.ReinstallInstalledMods = false;
|
||||
ReinstallInstalledMods = false;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private async void OpenLogsDirButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue