mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Add the same for GTX
This commit is contained in:
parent
bb6178f4d8
commit
55cb4ad489
2 changed files with 11 additions and 2 deletions
|
@ -110,6 +110,14 @@ namespace FirstPlugin
|
||||||
Text = FileName;
|
Text = FileName;
|
||||||
|
|
||||||
ReadGx2(new FileReader(stream));
|
ReadGx2(new FileReader(stream));
|
||||||
|
|
||||||
|
string name = System.IO.Path.GetFileNameWithoutExtension(Text);
|
||||||
|
foreach (var image in textures) {
|
||||||
|
if (Nodes.Count == 1)
|
||||||
|
image.Text = $"{name}";
|
||||||
|
else
|
||||||
|
image.Text = $"{name}_{textures.IndexOf(image)}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolStripItem[] GetContextMenuItems()
|
public ToolStripItem[] GetContextMenuItems()
|
||||||
|
|
|
@ -70,12 +70,13 @@ namespace FirstPlugin
|
||||||
NutHeader = new Header();
|
NutHeader = new Header();
|
||||||
NutHeader.Read(new FileReader(stream));
|
NutHeader.Read(new FileReader(stream));
|
||||||
|
|
||||||
|
string name = System.IO.Path.GetFileNameWithoutExtension(Text);
|
||||||
foreach (var image in NutHeader.Images)
|
foreach (var image in NutHeader.Images)
|
||||||
{
|
{
|
||||||
if (NutHeader.Images.Count == 1)
|
if (NutHeader.Images.Count == 1)
|
||||||
image.Text = $"{Text}";
|
image.Text = $"{name}";
|
||||||
else
|
else
|
||||||
image.Text = $"{Text}_{Nodes.Count}";
|
image.Text = $"{name}_{Nodes.Count}";
|
||||||
Nodes.Add(image);
|
Nodes.Add(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue