From 3d70fa4b568ccfb3a04272a98ab65cc6c376c12f Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Wed, 25 Oct 2023 22:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E8=BA=AB=E4=BD=93?= =?UTF-8?q?=E8=A7=A6=E7=A2=B0=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet.ModMaker/Models/ModModel/PetModel.cs | 23 ++++++ VPet.ModMaker/VPet.ModMaker.csproj | 4 +- .../Views/ModEdit/PetEdit/PetEditWindow.xaml | 78 +++++++++++++++++++ VPet.ModMaker/packages.config | 4 +- 4 files changed, 105 insertions(+), 4 deletions(-) diff --git a/VPet.ModMaker/Models/ModModel/PetModel.cs b/VPet.ModMaker/Models/ModModel/PetModel.cs index 97e023e..7899232 100644 --- a/VPet.ModMaker/Models/ModModel/PetModel.cs +++ b/VPet.ModMaker/Models/ModModel/PetModel.cs @@ -36,6 +36,12 @@ public class PetModel : I18nModel public ObservableValue> TouchHeadRect { get; } = new(new(159, 16, 189, 178)); + /// + /// 身体区域 + /// + public ObservableValue> TouchBodyRect { get; } = + new(new(166, 206, 163, 136)); + /// /// 提起区域 /// @@ -99,6 +105,7 @@ public class PetModel : I18nModel { Id.Value = model.Id.Value; TouchHeadRect.Value = model.TouchHeadRect.Value.Copy(); + TouchBodyRect.Value = model.TouchBodyRect.Value.Copy(); TouchRaisedRect.Value = model.TouchRaisedRect.Value.Copy(); RaisePoint.Value = model.RaisePoint.Value.Copy(); foreach (var work in model.Works) @@ -122,6 +129,13 @@ public class PetModel : I18nModel loader.Config.TouchHeadSize.Height ); + TouchBodyRect.Value.SetValue( + loader.Config.TouchBodyLocate.X, + loader.Config.TouchBodyLocate.Y, + loader.Config.TouchBodySize.Width, + loader.Config.TouchBodySize.Height + ); + TouchRaisedRect.Value.Happy.Value.SetValue( loader.Config.TouchRaisedLocate[0].X, loader.Config.TouchRaisedLocate[0].Y, @@ -289,6 +303,15 @@ public class PetModel : I18nModel new Sub("sh", TouchHeadRect.Value.Height.Value), } ); + lps.Add( + new Line("touchbody") + { + new Sub("px", TouchBodyRect.Value.X.Value), + new Sub("py", TouchBodyRect.Value.Y.Value), + new Sub("sw", TouchBodyRect.Value.Width.Value), + new Sub("sh", TouchBodyRect.Value.Height.Value), + } + ); lps.Add( new Line("touchraised") { diff --git a/VPet.ModMaker/VPet.ModMaker.csproj b/VPet.ModMaker/VPet.ModMaker.csproj index 6d8bfad..7838a2d 100644 --- a/VPet.ModMaker/VPet.ModMaker.csproj +++ b/VPet.ModMaker/VPet.ModMaker.csproj @@ -78,10 +78,10 @@ 4.0 - ..\packages\VPet-Simulator.Core.1.0.8\lib\net462\VPet-Simulator.Core.dll + ..\packages\VPet-Simulator.Core.1.0.9\lib\net462\VPet-Simulator.Core.dll - ..\packages\VPet-Simulator.Windows.Interface.1.0.8\lib\net462\VPet-Simulator.Windows.Interface.dll + ..\packages\VPet-Simulator.Windows.Interface.1.0.9\lib\net462\VPet-Simulator.Windows.Interface.dll diff --git a/VPet.ModMaker/Views/ModEdit/PetEdit/PetEditWindow.xaml b/VPet.ModMaker/Views/ModEdit/PetEdit/PetEditWindow.xaml index 8c90c5f..978c203 100644 --- a/VPet.ModMaker/Views/ModEdit/PetEdit/PetEditWindow.xaml +++ b/VPet.ModMaker/Views/ModEdit/PetEdit/PetEditWindow.xaml @@ -89,6 +89,37 @@ +