From b163719b69c9e6d0609b98fd377f6b852dd531a9 Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Mon, 6 Nov 2023 23:57:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=A3=85=20=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E7=BC=96=E8=BE=91=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet.ModMaker/Models/I18nData.cs | 16 ++ VPet.ModMaker/Styles.xaml | 6 + VPet.ModMaker/VPet.ModMaker.csproj | 1 + .../ViewModels/ModEdit/ModEditWindowVM.cs | 11 +- .../ModEdit/FoodEdit/FoodEditWindow.xaml | 3 - .../ModEdit/I18nEdit/I18nEditWindow.xaml | 22 ++- .../ModEdit/I18nEdit/I18nEditWindow.xaml.cs | 179 ++++++++++++++++-- 7 files changed, 210 insertions(+), 28 deletions(-) create mode 100644 VPet.ModMaker/Models/I18nData.cs diff --git a/VPet.ModMaker/Models/I18nData.cs b/VPet.ModMaker/Models/I18nData.cs new file mode 100644 index 0000000..0cfbcb6 --- /dev/null +++ b/VPet.ModMaker/Models/I18nData.cs @@ -0,0 +1,16 @@ +using HKW.HKWViewModels.SimpleObservable; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VPet.ModMaker.Models; + +public class I18nData +{ + public ObservableValue Id { get; } = new(); + public ObservableCollection Cultures { get; } = new(); + public ObservableCollection> Datas { get; } = new(); +} diff --git a/VPet.ModMaker/Styles.xaml b/VPet.ModMaker/Styles.xaml index e37b495..7883356 100644 --- a/VPet.ModMaker/Styles.xaml +++ b/VPet.ModMaker/Styles.xaml @@ -40,6 +40,7 @@ BasedOn="{StaticResource {x:Type TextBlock}}" TargetType="TextBlock"> +