mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
为默认PNG引擎增加识别标准
This commit is contained in:
parent
fbfc40f5eb
commit
3f68b42b85
@ -85,6 +85,15 @@ namespace VPet_Simulator.Core
|
||||
return;
|
||||
}
|
||||
var paths = p.GetFiles("*.png");
|
||||
if (paths.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if (paths.Length == 1)
|
||||
{
|
||||
Picture.LoadGraph(graph, paths[0], info);
|
||||
return;
|
||||
}
|
||||
|
||||
bool isLoop = info[(gbol)"loop"];
|
||||
PNGAnimation pa = new PNGAnimation(graph, path.FullName, paths, new GraphInfo(path, info), isLoop);
|
||||
|
@ -45,6 +45,8 @@ namespace VPet_Simulator.Core
|
||||
PNGAnimation.LoadGraph(graph, path, info);
|
||||
return;
|
||||
}
|
||||
if (path.Extension != ".png")
|
||||
return;
|
||||
int length = info.GetInt("length");
|
||||
if (length == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user