1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix last frame display in param animation viewer

This commit is contained in:
KillzXGaming 2019-06-09 14:43:51 -04:00
parent 7bd1abf12a
commit e4e58a3bfb
7 changed files with 10 additions and 5 deletions

Binary file not shown.

View File

@ -79,7 +79,7 @@ namespace FirstPlugin.Forms
ColumnHeader valueColumn = new ColumnHeader() { Text = $"{(TexSRT)track.AnimDataOffset}" };
listViewCustom1.Columns.Add(valueColumn);
}
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
{
if (IsKeyed(paramAnim, Frame))
{
@ -104,7 +104,7 @@ namespace FirstPlugin.Forms
ColumnHeader valueColumn = new ColumnHeader() { Text = $"Value {col}" };
listViewCustom1.Columns.Add(valueColumn);
}
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
{
if (IsKeyed(paramAnim, Frame))
{

View File

@ -31,7 +31,7 @@ namespace Switch_Toolbox.Library.Forms
for (int i = 0; i < Files.Count; i++)
{
if (Files[i].FileType == FileType.Image)
if (Files[i].FileType == FileType.Image || Files[i].FileType == FileType.Archive)
{
Textures.AddRange(GetTextures(Files[i]));
}
@ -156,8 +156,13 @@ namespace Switch_Toolbox.Library.Forms
if (Format is TreeNodeFile)
{
foreach (var node in ((TreeNodeFile)Format).Nodes)
if (node is STGenericTexture) Textures.Add((STGenericTexture)node);
foreach (var node in TreeViewExtensions.Collect(((TreeNodeFile)Format).Nodes))
{
if (node is STGenericTexture)
Textures.Add((STGenericTexture)node);
else if (node is IFileFormat)
GetTextures((IFileFormat)node);
}
}
return Textures;