mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复uriStringNull问题
This commit is contained in:
parent
815f8df53c
commit
61080ac8e3
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user