mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
@ -137,7 +137,7 @@ public class ClickTextModel : ObservableObjectX
|
|||||||
|
|
||||||
public void InitializeI18nResource()
|
public void InitializeI18nResource()
|
||||||
{
|
{
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Text), true),])
|
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Text), true),])
|
||||||
);
|
);
|
||||||
|
@ -125,7 +125,7 @@ public class FoodModel : ObservableObjectX
|
|||||||
|
|
||||||
public void InitializeI18nResource()
|
public void InitializeI18nResource()
|
||||||
{
|
{
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(
|
new(
|
||||||
this,
|
this,
|
||||||
|
@ -85,7 +85,7 @@ public class LowTextModel : ObservableObjectX
|
|||||||
|
|
||||||
public void InitializeI18nResource()
|
public void InitializeI18nResource()
|
||||||
{
|
{
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Text), true)])
|
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Text), true)])
|
||||||
);
|
);
|
||||||
|
@ -36,7 +36,7 @@ public class ModInfoModel : ObservableObjectX
|
|||||||
Pets.CollectionChanged += Pets_CollectionChanged;
|
Pets.CollectionChanged += Pets_CollectionChanged;
|
||||||
I18nResource.PropertyChanged += I18nResource_PropertyChanged;
|
I18nResource.PropertyChanged += I18nResource_PropertyChanged;
|
||||||
I18nResource.Cultures.SetChanged += Cultures_SetChanged;
|
I18nResource.Cultures.SetChanged += Cultures_SetChanged;
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(
|
new(
|
||||||
this,
|
this,
|
||||||
|
@ -212,6 +212,8 @@ public class PetModel : ObservableObjectX
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
foreach (var work in Works)
|
||||||
|
work.I18nResource = I18nResource;
|
||||||
if (FromMain)
|
if (FromMain)
|
||||||
{
|
{
|
||||||
foreach (var cultureName in LocalizeCore.AvailableCultures)
|
foreach (var cultureName in LocalizeCore.AvailableCultures)
|
||||||
|
@ -141,7 +141,7 @@ public class SelectTextModel : ObservableObjectX
|
|||||||
|
|
||||||
public void InitializeI18nResource()
|
public void InitializeI18nResource()
|
||||||
{
|
{
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(
|
new(
|
||||||
this,
|
this,
|
||||||
|
@ -141,7 +141,7 @@ public class WorkModel : ObservableObjectX
|
|||||||
|
|
||||||
public void InitializeI18nResource()
|
public void InitializeI18nResource()
|
||||||
{
|
{
|
||||||
I18nResource.I18nObjectInfos.Add(
|
I18nResource?.I18nObjectInfos.Add(
|
||||||
this,
|
this,
|
||||||
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Name), true),])
|
new(this, OnPropertyChanged, [(nameof(ID), ID, nameof(Name), true),])
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user