修复uriStringNull问题

This commit is contained in:
ZouJin 2023-08-15 15:09:47 +10:00
parent 815f8df53c
commit 61080ac8e3
2 changed files with 18 additions and 4 deletions

View File

@ -77,10 +77,24 @@ namespace VPet_Simulator.Core
PetGrid2.Visibility = Visibility.Collapsed;
Task.Run(() =>
{
while (!ig.IsReady)
//while (!ig.IsReady)
//{
// Thread.Sleep(100);
//}//新功能:等待所有图像加载完成再跑
foreach(var igs in Core.Graph.GraphsList.Values)
{
Thread.Sleep(100);
foreach(var ig2 in igs.Values)
{
foreach(var ig3 in ig2)
{
while (!ig3.IsReady)
{
Thread.Sleep(100);
}
}
}
}
ig.Run(PetGrid, () =>
{
IsWorking = true;

View File

@ -78,7 +78,7 @@ namespace VPet_Simulator.Core
/// </summary>
public bool IsLoop { get; set; }
/// <summary>
/// 是否循环播放
/// 是否继续播放
/// </summary>
public bool IsContinue { get; set; } = false;
/// <summary>
@ -88,7 +88,7 @@ namespace VPet_Simulator.Core
/// <summary>
/// 是否准备完成
/// </summary>
public bool IsReady { get; private set; } = false;
public bool IsReady => true;
/// <summary>
/// 动画停止时运行的方法
/// </summary>