mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Some adjustments
This commit is contained in:
parent
f8d63441a7
commit
846cbb8eea
2 changed files with 5 additions and 5 deletions
|
@ -335,8 +335,8 @@ namespace FirstPlugin
|
|||
public ToolStripItem[] GetContextMenuItems()
|
||||
{
|
||||
List<ToolStripItem> Items = new List<ToolStripItem>();
|
||||
Items.Add(new STToolStipMenuItem("Save", null, SaveAction, Keys.Control | Keys.S));
|
||||
Items.Add(new STToolStripSeparator());
|
||||
//Items.Add(new STToolStipMenuItem("Save", null, SaveAction, Keys.Control | Keys.S));
|
||||
//Items.Add(new STToolStripSeparator());
|
||||
Items.Add(new STToolStipMenuItem("Export", null, ExportAction, Keys.Control | Keys.E) );
|
||||
Items.Add(new STToolStipMenuItem("Replace", null, ReplaceAction, Keys.Control | Keys.R) { Enabled = false});
|
||||
return Items.ToArray();
|
||||
|
|
|
@ -101,13 +101,10 @@ namespace LayoutBXLYT
|
|||
public Dictionary<string, STGenericTexture> GetTextures()
|
||||
{
|
||||
Dictionary<string, STGenericTexture> textures = new Dictionary<string, STGenericTexture>();
|
||||
Console.WriteLine($"GetTextures {IFileInfo.ArchiveParent != null}");
|
||||
if (IFileInfo.ArchiveParent != null)
|
||||
{
|
||||
foreach (var file in IFileInfo.ArchiveParent.Files)
|
||||
{
|
||||
Console.WriteLine($"GetTextures {file.FileName}");
|
||||
|
||||
try
|
||||
{
|
||||
if (Utils.GetExtension(file.FileName) == ".tpl")
|
||||
|
@ -127,6 +124,7 @@ namespace LayoutBXLYT
|
|||
STErrorDialog.Show($"Failed to load texture {file.FileName}. ", "Layout Editor", ex.ToString());
|
||||
}
|
||||
}
|
||||
Console.WriteLine($"textures {textures.Count}");
|
||||
}
|
||||
|
||||
return textures;
|
||||
|
@ -474,6 +472,8 @@ namespace LayoutBXLYT
|
|||
|
||||
public void Write(FileWriter writer)
|
||||
{
|
||||
RecalculateMaterialReferences();
|
||||
|
||||
writer.SetByteOrder(IsBigEndian);
|
||||
writer.WriteSignature(Magic);
|
||||
if (Magic == "TYLR")
|
||||
|
|
Loading…
Reference in a new issue