提交 61080ac8 编写于 作者: Z ZouJin

修复uriStringNull问题

上级 815f8df5
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册