mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复idel动画不显示A+支持SingleIDEL动画
This commit is contained in:
parent
9d9e4bfc87
commit
096cf95efd
@ -295,15 +295,24 @@ namespace VPet_Simulator.Core
|
||||
{
|
||||
var idelname = list[i];
|
||||
var ig = Core.Graph.FindGraphs(idelname, AnimatType.A_Start, Core.Save.Mode);
|
||||
if (ig != null)
|
||||
if (ig != null && ig.Count != 0)
|
||||
{
|
||||
looptimes = 0;
|
||||
CountNomal = 0;
|
||||
DisplayBLoopingToNomal(idelname, Core.Graph.GraphConfig.GetDuration(idelname));
|
||||
Display(ig[Function.Rnd.Next(ig.Count)], () =>
|
||||
DisplayBLoopingToNomal(idelname, Core.Graph.GraphConfig.GetDuration(idelname)));
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ig = Core.Graph.FindGraphs(idelname, AnimatType.Single, Core.Save.Mode);
|
||||
if (ig != null && ig.Count != 0)
|
||||
{
|
||||
looptimes = 0;
|
||||
CountNomal = 0;
|
||||
Display(ig[Function.Rnd.Next(ig.Count)], DisplayToNomal);
|
||||
return true;
|
||||
}
|
||||
list.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user