mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
#修复
- 启动时报错的问题
This commit is contained in:
parent
7a2fa5c261
commit
51fc7c1c78
@ -40,9 +40,12 @@ public class ModMaker : MainPlugin
|
|||||||
Application.Current.Resources.MergedDictionaries.Add(ModMakerInfo.NativeStyles);
|
Application.Current.Resources.MergedDictionaries.Add(ModMakerInfo.NativeStyles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public I18nResource<string, string> I18nResource { get; } =
|
||||||
|
new() { FillDefaultValueForNewCulture = true, DefaultValue = string.Empty };
|
||||||
|
|
||||||
public override void Setting()
|
public override void Setting()
|
||||||
{
|
{
|
||||||
if (Maker == null)
|
if (Maker is null)
|
||||||
{
|
{
|
||||||
// 载入ModMaker资源
|
// 载入ModMaker资源
|
||||||
Maker = new ModMakerWindow();
|
Maker = new ModMakerWindow();
|
||||||
@ -52,7 +55,7 @@ public class ModMaker : MainPlugin
|
|||||||
foreach (var pet in MW.Pets)
|
foreach (var pet in MW.Pets)
|
||||||
ModMakerInfo.MainPets.TryAdd(
|
ModMakerInfo.MainPets.TryAdd(
|
||||||
pet.Name,
|
pet.Name,
|
||||||
new(pet, true) { I18nResource = ModInfoModel.Current.I18nResource }
|
new(pet, true) { I18nResource = I18nResource }
|
||||||
);
|
);
|
||||||
//Maker.ModMaker = this;
|
//Maker.ModMaker = this;
|
||||||
Maker.Show();
|
Maker.Show();
|
||||||
|
@ -31,7 +31,7 @@ public static class ModMakerInfo
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 游戏版本
|
/// 游戏版本
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static int GameVersion { get; set; } = 100;
|
public static int GameVersion { get; set; } = 11000;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 本体的宠物
|
/// 本体的宠物
|
||||||
|
@ -515,7 +515,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存为 <see cref="GraphInfo.GraphType.Raised_Dynamic"/> 或 <see cref="GraphInfo.GraphType.Raised_Static"/> 样式
|
/// 保存为 <see cref="GraphInfo.GraphType.Raised_Dynamic"/> 或 <see cref="GraphInfo.GraphType.Raised_Static"/> 样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">路径</param>
|
/// <param name="path">路径</param>
|
||||||
/// <param name="animeTypeModel">模型</param>
|
|
||||||
void SaveRaised(string path)
|
void SaveRaised(string path)
|
||||||
{
|
{
|
||||||
var animePath = Path.Combine(path, "Raise");
|
var animePath = Path.Combine(path, "Raise");
|
||||||
@ -530,7 +529,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存为 <see cref="GraphInfo.GraphType.Switch_Up"/> 或 <see cref="GraphInfo.GraphType.Switch_Down"/> 或 <see cref="GraphInfo.GraphType.Switch_Thirsty"/> 或 <see cref="GraphInfo.GraphType.Switch_Hunger"/>
|
/// 保存为 <see cref="GraphInfo.GraphType.Switch_Up"/> 或 <see cref="GraphInfo.GraphType.Switch_Down"/> 或 <see cref="GraphInfo.GraphType.Switch_Thirsty"/> 或 <see cref="GraphInfo.GraphType.Switch_Hunger"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">路径</param>
|
/// <param name="path">路径</param>
|
||||||
/// <param name="animeTypeModel">模型</param>
|
|
||||||
void SaveSwitch(string path)
|
void SaveSwitch(string path)
|
||||||
{
|
{
|
||||||
var animePath = Path.Combine(path, "Switch");
|
var animePath = Path.Combine(path, "Switch");
|
||||||
@ -543,7 +541,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存成默认样式
|
/// 保存成默认样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path"></param>
|
/// <param name="path"></param>
|
||||||
/// <param name="animeTypeModel"></param>
|
|
||||||
void SaveDefault(string path)
|
void SaveDefault(string path)
|
||||||
{
|
{
|
||||||
var animePath = Path.Combine(path, GraphType.ToString());
|
var animePath = Path.Combine(path, GraphType.ToString());
|
||||||
@ -555,7 +552,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存成多类型样式
|
/// 保存成多类型样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path"></param>
|
/// <param name="path"></param>
|
||||||
/// <param name="animeTypeModel"></param>
|
|
||||||
void SaveMultiType(string path)
|
void SaveMultiType(string path)
|
||||||
{
|
{
|
||||||
var animePath = Path.Combine(path, GraphType.ToString());
|
var animePath = Path.Combine(path, GraphType.ToString());
|
||||||
@ -567,7 +563,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存为 Happy/A/0 的路径样式
|
/// 保存为 Happy/A/0 的路径样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path"></param>
|
/// <param name="path"></param>
|
||||||
/// <param name="animeTypeModel"></param>
|
|
||||||
void SaveWithModeType(string path)
|
void SaveWithModeType(string path)
|
||||||
{
|
{
|
||||||
if (HappyAnimes.Count > 0)
|
if (HappyAnimes.Count > 0)
|
||||||
@ -628,7 +623,6 @@ public class AnimeTypeModel : ObservableObjectX
|
|||||||
/// 保存为 Happy/0 的路径样式
|
/// 保存为 Happy/0 的路径样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="animePath"></param>
|
/// <param name="animePath"></param>
|
||||||
/// <param name="animeType"></param>
|
|
||||||
void SaveWithAnimeType(string animePath)
|
void SaveWithAnimeType(string animePath)
|
||||||
{
|
{
|
||||||
if (HappyAnimes.Count > 0)
|
if (HappyAnimes.Count > 0)
|
||||||
|
@ -13,6 +13,15 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Configurations>Debug;Release;Test</Configurations>
|
<Configurations>Debug;Release;Test</Configurations>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<DebugType>embedded</DebugType>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<DebugType>embedded</DebugType>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Test|AnyCPU'">
|
||||||
|
<DebugType>embedded</DebugType>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Resources\food.png" />
|
<EmbeddedResource Include="Resources\food.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user