diff --git a/VPet.ModMaker/App.xaml.cs b/VPet.ModMaker/App.xaml.cs
index 708af23..37c61ba 100644
--- a/VPet.ModMaker/App.xaml.cs
+++ b/VPet.ModMaker/App.xaml.cs
@@ -11,5 +11,7 @@ namespace VPet.ModMaker
///
/// Interaction logic for App.xaml
///
- public partial class App : Application { }
+ public partial class App : Application
+ {
+ }
}
diff --git a/VPet.ModMaker/Models/ModMaker.cs b/VPet.ModMaker/Models/ModMaker.cs
index c480213..84fe804 100644
--- a/VPet.ModMaker/Models/ModMaker.cs
+++ b/VPet.ModMaker/Models/ModMaker.cs
@@ -23,7 +23,6 @@ public class ModMaker : MainPlugin
public ModMaker(IMainWindow mainwin)
: base(mainwin) { }
-
public override void LoadPlugin()
{
Set = MW.Set.FindLine("ModMaker");
@@ -41,11 +40,12 @@ public class ModMaker : MainPlugin
modset.Items.Add(menuset);
}
-
public override void Setting()
{
if (Maker == null)
{
+ // 载入ModMaker资源
+ Application.Current.Resources.MergedDictionaries.Add(new ModMakerStyles());
Maker = new ModMakerWindow();
Maker.ModMaker = this;
Maker.Show();
diff --git a/VPet.ModMaker/Properties/DesignTimeResources.xaml b/VPet.ModMaker/Properties/DesignTimeResources.xaml
new file mode 100644
index 0000000..6ffe8bc
--- /dev/null
+++ b/VPet.ModMaker/Properties/DesignTimeResources.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VPet.ModMaker/Styles.cs b/VPet.ModMaker/Styles.cs
new file mode 100644
index 0000000..314fbdc
--- /dev/null
+++ b/VPet.ModMaker/Styles.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace VPet.ModMaker;
+
+public partial class ModMakerStyles : ResourceDictionary
+{
+ public ModMakerStyles()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/VPet.ModMaker/Styles.xaml b/VPet.ModMaker/Styles.xaml
index f50a7f4..1c68f3c 100644
--- a/VPet.ModMaker/Styles.xaml
+++ b/VPet.ModMaker/Styles.xaml
@@ -27,4 +27,5 @@
+
\ No newline at end of file
diff --git a/VPet.ModMaker/VPet.ModMaker.csproj b/VPet.ModMaker/VPet.ModMaker.csproj
index 2ce01ae..ff1f6d2 100644
--- a/VPet.ModMaker/VPet.ModMaker.csproj
+++ b/VPet.ModMaker/VPet.ModMaker.csproj
@@ -49,7 +49,8 @@
4
- VPet.ModMaker.App
+
+
@@ -76,10 +77,10 @@
4.0
- ..\packages\VPet-Simulator.Core.1.0.3\lib\net462\VPet-Simulator.Core.dll
+ ..\packages\VPet-Simulator.Core.1.0.5.1\lib\net462\VPet-Simulator.Core.dll
- ..\packages\VPet-Simulator.Windows.Interface.1.0.3\lib\net462\VPet-Simulator.Windows.Interface.dll
+ ..\packages\VPet-Simulator.Windows.Interface.1.0.5.2\lib\net462\VPet-Simulator.Windows.Interface.dll
@@ -105,6 +106,7 @@
+
@@ -197,6 +199,11 @@
Designer
MSBuild:Compile
+
+ MSBuild:Compile
+ Designer
+ true
+
Designer
MSBuild:Compile
diff --git a/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs b/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs
index ef733a0..d8263e8 100644
--- a/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs
+++ b/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs
@@ -59,6 +59,7 @@ public class ModMakerWindowVM
private void SaveHistories()
{
+ Directory.CreateDirectory(nameof(ModMaker));
if (File.Exists(ModMakerInfo.HistoryFile) is false)
File.Create(ModMakerInfo.HistoryFile).Close();
var lps = new LPS();
diff --git a/VPet.ModMaker/packages.config b/VPet.ModMaker/packages.config
index ad4a52b..46fc1db 100644
--- a/VPet.ModMaker/packages.config
+++ b/VPet.ModMaker/packages.config
@@ -4,6 +4,6 @@
-
-
+
+
\ No newline at end of file