修复置顶设置的错误 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>()
{
"ChatGPT.API.Framework.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",
"Panuon.WPF.dll","steam_api.dll","Panuon.WPF.UI.dll","steam_api64.dll",
"LinePutScript.dll","Facepunch.Steamworks.Win32.dll", "Facepunch.Steamworks.Win64.dll",
"VPet-Simulator.Core.dll","VPet-Simulator.Windows.Interface.dll","LinePutScript.Localization.WPF.dll",
"CSCore.dll"
};

View File

@ -5,8 +5,8 @@
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
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"
Width="250" Topmost="True" Closed="Window_Closed" pu:WindowXCaption.Height="0"
SizeToContent="Height" Loaded="Window_SourceInitialized" LocationChanged="WindowX_LocationChanged" Background="{x:Null}">
Width="250" Closed="Window_Closed" pu:WindowXCaption.Height="0" SizeToContent="Height"
Loaded="Window_SourceInitialized" LocationChanged="WindowX_LocationChanged" Background="{x:Null}">
<WindowChrome.WindowChrome>
<WindowChrome GlassFrameThickness="-1" />
</WindowChrome.WindowChrome>

View File

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