修复置顶设置的错误 Fix #175

This commit is contained in:
ZouJin 2023-09-04 13:01:16 +08:00
parent 20021342ca
commit 00facd5bef
3 changed files with 9 additions and 4 deletions

View File

@ -18,8 +18,8 @@ namespace VPet_Simulator.Windows
{ {
public static HashSet<string> LoadedDLL { get; } = new HashSet<string>() public static HashSet<string> LoadedDLL { get; } = new HashSet<string>()
{ {
"ChatGPT.API.Framework.dll","Panuon.WPF.dll","steam_api.dll","Panuon.WPF.UI.dll","steam_api64.dll", "Panuon.WPF.dll","steam_api.dll","Panuon.WPF.UI.dll","steam_api64.dll",
"LinePutScript.dll","Newtonsoft.Json.dll","Facepunch.Steamworks.Win32.dll", "Facepunch.Steamworks.Win64.dll", "LinePutScript.dll","Facepunch.Steamworks.Win32.dll", "Facepunch.Steamworks.Win64.dll",
"VPet-Simulator.Core.dll","VPet-Simulator.Windows.Interface.dll","LinePutScript.Localization.WPF.dll", "VPet-Simulator.Core.dll","VPet-Simulator.Windows.Interface.dll","LinePutScript.Localization.WPF.dll",
"CSCore.dll" "CSCore.dll"
}; };

View File

@ -5,8 +5,8 @@
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ShowInTaskbar="False" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ShowInTaskbar="False"
xmlns:local="clr-namespace:VPet_Simulator.Windows" mc:Ignorable="d" WindowStyle="None" Title="MainWindow" xmlns:local="clr-namespace:VPet_Simulator.Windows" mc:Ignorable="d" WindowStyle="None" Title="MainWindow"
Width="250" Topmost="True" Closed="Window_Closed" pu:WindowXCaption.Height="0" Width="250" Closed="Window_Closed" pu:WindowXCaption.Height="0" SizeToContent="Height"
SizeToContent="Height" Loaded="Window_SourceInitialized" LocationChanged="WindowX_LocationChanged" Background="{x:Null}"> Loaded="Window_SourceInitialized" LocationChanged="WindowX_LocationChanged" Background="{x:Null}">
<WindowChrome.WindowChrome> <WindowChrome.WindowChrome>
<WindowChrome GlassFrameThickness="-1" /> <WindowChrome GlassFrameThickness="-1" />
</WindowChrome.WindowChrome> </WindowChrome.WindowChrome>

View File

@ -115,6 +115,11 @@ namespace VPet_Simulator.Windows
var point = Set.StartRecordPoint; var point = Set.StartRecordPoint;
Left = point.X; Top = point.Y; Left = point.X; Top = point.Y;
} }
if (Set.TopMost)
{
Topmost= true;
}
//不存在就关掉 //不存在就关掉
var modpath = new DirectoryInfo(ModPath + @"\0000_core\pet\vup"); var modpath = new DirectoryInfo(ModPath + @"\0000_core\pet\vup");