Skip to content

Commit

Permalink
v1.0.2-part3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengXiaoPi committed Oct 3, 2024
1 parent dcaf8e8 commit 718d513
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
18 changes: 0 additions & 18 deletions Datas/Constants.cs

This file was deleted.

15 changes: 14 additions & 1 deletion MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
MouseDown="WindowDragMove"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
MouseLeftButtonUp="Window_MouseLeftButtonUp"
ResizeMode="CanMinimize"
Loaded="WindowLoaded">
<Window.Resources>
<Style x:Key="NoHover" TargetType="Button">
Expand Down Expand Up @@ -715,7 +716,7 @@ From="1" To="0" Duration="0:0:0.3"/>
</ComboBox.Clip>
</ComboBox>
<Label Content="切换API节点" HorizontalAlignment="Left" Margin="100,80,0,0" VerticalAlignment="Top" Height="41" Width="494" FontSize="22" Foreground="#FFFFEED4" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Medium"/>
<ComboBox x:Name="APICombobox" Panel.ZIndex="5" Margin="304,85,70,280" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Medium" Foreground="Black" FontSize="16" SelectionChanged="APIComboboxSelectionChanged">
<ComboBox x:Name="APICombobox" Panel.ZIndex="5" Margin="304,87,70,278" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Medium" Foreground="Black" FontSize="16" SelectionChanged="APIComboboxSelectionChanged">
<ComboBox.Clip>
<RectangleGeometry Rect="0,0,290,31" RadiusX="3" RadiusY="3"/>
</ComboBox.Clip>
Expand Down Expand Up @@ -748,6 +749,16 @@ From="1" To="0" Duration="0:0:0.3"/>
</EventTrigger>
</Button.Triggers>
</Button>
<Button HorizontalAlignment="Left" Margin="271,37,0,0" VerticalAlignment="Top" Height="28" Width="28" Style="{StaticResource NoHover}" Background="#FFFFEED4" Click="WhyShouldIUseThis">
<Button.Clip>
<RectangleGeometry Rect="0,0,28,28" RadiusX="14" RadiusY="14"/>
</Button.Clip>
</Button>
<Button HorizontalAlignment="Left" Margin="271,88,0,0" VerticalAlignment="Top" Height="28" Width="28" Style="{StaticResource NoHover}" Background="#FFFFEED4" Click="WhyShouldIUseThis">
<Button.Clip>
<RectangleGeometry Rect="0,0,28,28" RadiusX="14" RadiusY="14"/>
</Button.Clip>
</Button>
<Label Content="卸载" HorizontalAlignment="Left" IsHitTestVisible="False" Margin="531,130,0,0" VerticalAlignment="Top" Height="38" Width="52" FontSize="16" Foreground="Black" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Heavy"/>
<Label Content="切换模组开关状态" HorizontalAlignment="Left" Margin="100,179,0,0" VerticalAlignment="Top" Height="41" Width="494" FontSize="22" Foreground="#FFFFEED4" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Medium"/>
<Image x:Name="ChangeStatuHover" Panel.ZIndex="5" IsHitTestVisible="False" Opacity="0" HorizontalAlignment="Left" Height="34" Margin="512,184,0,0" VerticalAlignment="Top" Width="80" Source="/Picture/SettingButtonHover.png"/>
Expand Down Expand Up @@ -777,6 +788,8 @@ From="1" To="0" Duration="0:0:0.3"/>
</Button.Triggers>
</Button>
<Label Content="开关" HorizontalAlignment="Left" IsHitTestVisible="False" Margin="531,183,0,0" VerticalAlignment="Top" Height="38" Width="52" FontSize="16" Foreground="Black" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Heavy"/>
<Label Content="?" HorizontalAlignment="Left" IsHitTestVisible="False" Margin="276,34,0,0" VerticalAlignment="Top" Height="38" Width="52" FontSize="16" Foreground="Black" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Heavy"/>
<Label Content="?" HorizontalAlignment="Left" IsHitTestVisible="False" Margin="276,85,0,0" VerticalAlignment="Top" Height="38" Width="52" FontSize="16" Foreground="Black" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Heavy"/>
</Grid>
<Grid x:Name="AboutPage" Visibility="Collapsed" Panel.ZIndex="5" Margin="62,55,54,32" Grid.Column="2" Grid.Row="1">
<Label HorizontalAlignment="Center" Margin="0,15,0,0" VerticalAlignment="Top" Height="357" Width="644" FontSize="15" Foreground="#FFFFEED4" FontFamily="/Fonts/#Source Han Sans CN" FontWeight="Medium">
Expand Down
7 changes: 5 additions & 2 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* 现在请关闭这个文件去玩点别的吧。
*/
using Downloader;
using LLC_MOD_Toolbox.Datas;
using log4net;
using Microsoft.Win32;
using Newtonsoft.Json;
Expand Down Expand Up @@ -549,6 +548,10 @@ private async void APIComboboxSelectionChanged(object sender, System.Windows.Con
}
APPChangeAPIUI = false;
}
private void WhyShouldIUseThis(object sender, RoutedEventArgs e)
{
OpenUrl("https://www.zeroasso.top/docs/installer/nodes");
}
#endregion
#region 常用方法
public static void Unarchive(string archivePath, string output)
Expand Down Expand Up @@ -685,7 +688,7 @@ public static string CalculateSHA256(string filePath)
try {
return Path.Combine(
File.ReadAllLines(libraryFoldersPath).Reverse()
.SkipWhile(n => !n.Contains($"\"{Constants.GAME_APPID}\"\t\t"))
.SkipWhile(n => !n.Contains($"\"1973530\"\t\t"))
.First(n => n.Contains("path"))
.Split('"')[^2].Replace(@"\\", @"\"),
"steamapps","common", "Limbus Company");
Expand Down

0 comments on commit 718d513

Please sign in to comment.