From 5d8fef7808be51ad9efc541c3b74460bdbd9fcbc Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Sun, 8 Oct 2023 21:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ VPet.ModMaker/Models/ModModel/ModInfoModel.cs | 2 ++ VPet.ModMaker/ViewModels/ModEdit/ModEditWindowVM.cs | 5 ++++- VPet.ModMaker/Views/ModMakerWindow.xaml | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79f3c6a..ffe9ab0 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ # VPet.ModMaker + +《虚拟桌宠模拟器》MOD 制作器 0 门槛,打开就能用。支持所有游戏内容(动画,文本,效果皆可)。跟随游戏更新,出新内容,MOD 制作器也会跟随更新,立即上手制作吧! + +[游戏本体](https://store.steampowered.com/app/1920960) +[MOD制作器]() +[MOD制作器Github](https://github.com/LorisYounger/VPet.ModMaker) + +## [Wiki](https://github.com/LorisYounger/VPet.ModMaker/wiki) + +[简体中文Wiki](https://github.com/LorisYounger/VPet.ModMaker/wiki/%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%E4%B8%BB%E9%A1%B5%E9%9D%A2) \ No newline at end of file diff --git a/VPet.ModMaker/Models/ModModel/ModInfoModel.cs b/VPet.ModMaker/Models/ModModel/ModInfoModel.cs index bf4fe2f..42b92e2 100644 --- a/VPet.ModMaker/Models/ModModel/ModInfoModel.cs +++ b/VPet.ModMaker/Models/ModModel/ModInfoModel.cs @@ -684,6 +684,8 @@ public class ModInfoModel : I18nModel /// 路径 private void SaveImage(string path) { + if (Foods.Count == 0) + return; var imagePath = Path.Combine(path, "image"); Directory.CreateDirectory(imagePath); if (Foods.Count > 0) diff --git a/VPet.ModMaker/ViewModels/ModEdit/ModEditWindowVM.cs b/VPet.ModMaker/ViewModels/ModEdit/ModEditWindowVM.cs index 5eff170..6919e8a 100644 --- a/VPet.ModMaker/ViewModels/ModEdit/ModEditWindowVM.cs +++ b/VPet.ModMaker/ViewModels/ModEdit/ModEditWindowVM.cs @@ -160,7 +160,10 @@ public class ModEditWindowVM /// private void Save() { - if (MessageBox.Show("确定保存吗".Translate()) is not MessageBoxResult.Yes) + if ( + MessageBox.Show("确定保存吗".Translate(), "", MessageBoxButton.YesNo) + is not MessageBoxResult.Yes + ) return; if (string.IsNullOrEmpty(ModInfo.Value.SourcePath.Value)) diff --git a/VPet.ModMaker/Views/ModMakerWindow.xaml b/VPet.ModMaker/Views/ModMakerWindow.xaml index 7c064d9..b9bcd55 100644 --- a/VPet.ModMaker/Views/ModMakerWindow.xaml +++ b/VPet.ModMaker/Views/ModMakerWindow.xaml @@ -81,7 +81,7 @@ + Text="{Binding LastTime, StringFormat={}yyyy/MM/dd HH:mm}" />