mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复显示同名动画时错乱的错误
This commit is contained in:
parent
47d378b69e
commit
45a6f33447
@ -659,10 +659,26 @@ public partial class MPFriends : WindowX, IMPFriend
|
|||||||
{
|
{
|
||||||
case AnimatType.A_Start:
|
case AnimatType.A_Start:
|
||||||
gi.Animat = AnimatType.B_Loop;
|
gi.Animat = AnimatType.B_Loop;
|
||||||
Main.Display(gi.Name, AnimatType.B_Loop, () => DisplayAuto(gi));
|
var img = Core.Graph.FindGraphs(gi.Name, gi.Animat, Core.Save.Mode).FindAll(x => x.GraphInfo.Type == gi.Type);
|
||||||
|
if (img.Count != 0)
|
||||||
|
{
|
||||||
|
Main.Display(img[Function.Rnd.Next(img.Count)], () => DisplayAuto(gi));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Main.DisplayToNomal();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case AnimatType.B_Loop:
|
case AnimatType.B_Loop:
|
||||||
Main.Display(gi.Name, AnimatType.B_Loop, () => DisplayAuto(gi));
|
img = Core.Graph.FindGraphs(gi.Name, gi.Animat, Core.Save.Mode).FindAll(x => x.GraphInfo.Type == gi.Type);
|
||||||
|
if (img.Count != 0)
|
||||||
|
{
|
||||||
|
Main.Display(img[Function.Rnd.Next(img.Count)], () => DisplayAuto(gi));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Main.DisplayToNomal();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case AnimatType.C_End:
|
case AnimatType.C_End:
|
||||||
case AnimatType.Single:
|
case AnimatType.Single:
|
||||||
|
Loading…
Reference in New Issue
Block a user