mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修改切换窗格时动画对比方式
This commit is contained in:
parent
1745a8f351
commit
210d2abf91
@ -502,7 +502,7 @@ namespace VPet_Simulator.Core
|
|||||||
GraphDisplayHandler?.Invoke(graph.GraphInfo);
|
GraphDisplayHandler?.Invoke(graph.GraphInfo);
|
||||||
var PetGridTag = Dispatcher.Invoke(() => PetGrid.Tag);
|
var PetGridTag = Dispatcher.Invoke(() => PetGrid.Tag);
|
||||||
var PetGrid2Tag = Dispatcher.Invoke(() => PetGrid2.Tag);
|
var PetGrid2Tag = Dispatcher.Invoke(() => PetGrid2.Tag);
|
||||||
if (PetGridTag == graph)
|
if (graph.Equals(PetGridTag))
|
||||||
{
|
{
|
||||||
petgridcrlf = true;
|
petgridcrlf = true;
|
||||||
((IGraph)(PetGrid2Tag)).Stop(true);
|
((IGraph)(PetGrid2Tag)).Stop(true);
|
||||||
@ -514,7 +514,7 @@ namespace VPet_Simulator.Core
|
|||||||
graph.Run(PetGrid, EndAction);//(x) => PetGrid.Child = x
|
graph.Run(PetGrid, EndAction);//(x) => PetGrid.Child = x
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (PetGrid2Tag == graph)
|
else if (graph.Equals(PetGrid2Tag))
|
||||||
{
|
{
|
||||||
petgridcrlf = false;
|
petgridcrlf = false;
|
||||||
((IGraph)(PetGridTag)).Stop(true);
|
((IGraph)(PetGridTag)).Stop(true);
|
||||||
|
@ -7,7 +7,7 @@ namespace VPet_Simulator.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 动画显示接口
|
/// 动画显示接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IGraph
|
public interface IGraph : IEquatable<object>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 从0开始运行该动画
|
/// 从0开始运行该动画
|
||||||
|
@ -330,7 +330,5 @@ namespace VPet_Simulator.Core
|
|||||||
return new Task(() => Animations[0].Run(img, Control));
|
return new Task(() => Animations[0].Run(img, Control));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user