修复显示同名动画时错乱的错误

This commit is contained in:
ZouJin 2024-04-18 23:06:08 +08:00
parent 47d378b69e
commit 45a6f33447

View File

@ -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: