mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Some adjusments. Add option to hide all fmdls with rightclicking folder
This commit is contained in:
parent
a8632d7112
commit
29ad8dee78
10 changed files with 71 additions and 59 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -92,6 +92,11 @@ namespace Bfres.Structs
|
|||
ContextMenuStrip.Items.Add(new STToolStripSeparator());
|
||||
ContextMenuStrip.Items.Add(new STToolStipMenuItem("Batch Generate Mipmaps", null, BatchGenerateMipmapsAction, Keys.Control | Keys.M));
|
||||
}
|
||||
if (Type == BRESGroupType.Models)
|
||||
{
|
||||
ContextMenuStrip.Items.Add(new STToolStripSeparator());
|
||||
ContextMenuStrip.Items.Add(new STToolStipMenuItem("Hide All Models", null, HideAllModelsAction, Keys.Control | Keys.H));
|
||||
}
|
||||
}
|
||||
|
||||
public override string ExportFilter { get { return GetSubfileExtensions(); } }
|
||||
|
@ -100,6 +105,8 @@ namespace Bfres.Structs
|
|||
protected void NewAction(object sender, EventArgs e) { NewSubFile(); }
|
||||
protected void BatchGenerateMipmapsAction(object sender, EventArgs e) { BatchGenerateMipmaps(); }
|
||||
|
||||
protected void HideAllModelsAction(object sender, EventArgs e) { HideAllModels(); }
|
||||
|
||||
public void BatchGenerateMipmaps()
|
||||
{
|
||||
foreach (FTEX texture in Nodes)
|
||||
|
@ -109,6 +116,14 @@ namespace Bfres.Structs
|
|||
}
|
||||
}
|
||||
|
||||
public void HideAllModels()
|
||||
{
|
||||
for (int i = 0; i < Nodes.Count; i++)
|
||||
{
|
||||
Nodes[i].Checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
public BFRESGroupNode(string name) : base() { Text = name; }
|
||||
public BFRESGroupNode(BRESGroupType type) : base() { Type = type; SetNameByType(); }
|
||||
|
||||
|
|
|
@ -224,12 +224,12 @@ namespace FirstPlugin
|
|||
botwTex.Add((TEXR)((SectionBase)node).BinaryData);
|
||||
}
|
||||
|
||||
TreeNode textureFolder = new TreeNode("Textures");
|
||||
ptcl.Nodes.Add(textureFolder);
|
||||
|
||||
int index = 0;
|
||||
if (botwTex.Count > 0)
|
||||
{
|
||||
TreeNode textureFolder = new TreeNode("Textures");
|
||||
ptcl.Nodes.Add(textureFolder);
|
||||
|
||||
List<TEXR> TextureList = new List<TEXR>();
|
||||
|
||||
foreach (var emitter in emitters)
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace FirstPlugin
|
|||
{
|
||||
DecompressedData.Clear();
|
||||
|
||||
TexName = Path.GetFileNameWithoutExtension(FileName);
|
||||
TexName = STGenericTexture.SetNameFromPath(FileName);
|
||||
Format = TextureData.GenericToBntxSurfaceFormat(Runtime.PreferredTexFormat);
|
||||
|
||||
GenerateMipmaps = true;
|
||||
|
|
Binary file not shown.
91
Toolbox/MainForm.Designer.cs
generated
91
Toolbox/MainForm.Designer.cs
generated
|
@ -53,6 +53,11 @@
|
|||
this.mainSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.fileAssociationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.consoleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.requestFeatureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.reportBugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.requestFeatureToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.githubToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.stPanel1 = new Switch_Toolbox.Library.Forms.STPanel();
|
||||
this.tabForms = new Switch_Toolbox.Library.Forms.STTabControl();
|
||||
this.tabControlContextMenuStrip = new Switch_Toolbox.Library.Forms.STContextMenuStrip(this.components);
|
||||
|
@ -64,11 +69,6 @@
|
|||
this.stToolStrip1 = new Switch_Toolbox.Library.Forms.STToolStrip();
|
||||
this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.updateToolstrip = new System.Windows.Forms.ToolStripButton();
|
||||
this.requestFeatureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.reportBugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.requestFeatureToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.githubToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.stPanel1.SuspendLayout();
|
||||
this.tabControlContextMenuStrip.SuspendLayout();
|
||||
|
@ -247,7 +247,7 @@
|
|||
// mainSettingsToolStripMenuItem
|
||||
//
|
||||
this.mainSettingsToolStripMenuItem.Name = "mainSettingsToolStripMenuItem";
|
||||
this.mainSettingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.mainSettingsToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
|
||||
this.mainSettingsToolStripMenuItem.Text = "Main Settings";
|
||||
this.mainSettingsToolStripMenuItem.Click += new System.EventHandler(this.mainSettingsToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -255,7 +255,7 @@
|
|||
//
|
||||
this.fileAssociationsToolStripMenuItem.Enabled = false;
|
||||
this.fileAssociationsToolStripMenuItem.Name = "fileAssociationsToolStripMenuItem";
|
||||
this.fileAssociationsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.fileAssociationsToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
|
||||
this.fileAssociationsToolStripMenuItem.Text = "File Associations";
|
||||
this.fileAssociationsToolStripMenuItem.Click += new System.EventHandler(this.fileAssociationsToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -266,6 +266,45 @@
|
|||
this.consoleToolStripMenuItem.Text = "Console";
|
||||
this.consoleToolStripMenuItem.Click += new System.EventHandler(this.consoleToolStripMenuItem_Click);
|
||||
//
|
||||
// requestFeatureToolStripMenuItem
|
||||
//
|
||||
this.requestFeatureToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.aboutToolStripMenuItem1,
|
||||
this.reportBugToolStripMenuItem,
|
||||
this.requestFeatureToolStripMenuItem1,
|
||||
this.githubToolStripMenuItem});
|
||||
this.requestFeatureToolStripMenuItem.Name = "requestFeatureToolStripMenuItem";
|
||||
this.requestFeatureToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
|
||||
this.requestFeatureToolStripMenuItem.Text = "Help";
|
||||
//
|
||||
// aboutToolStripMenuItem1
|
||||
//
|
||||
this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
|
||||
this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||
this.aboutToolStripMenuItem1.Text = "About";
|
||||
this.aboutToolStripMenuItem1.Click += new System.EventHandler(this.aboutToolStripMenuItem1_Click);
|
||||
//
|
||||
// reportBugToolStripMenuItem
|
||||
//
|
||||
this.reportBugToolStripMenuItem.Name = "reportBugToolStripMenuItem";
|
||||
this.reportBugToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.reportBugToolStripMenuItem.Text = "Report Bug";
|
||||
this.reportBugToolStripMenuItem.Click += new System.EventHandler(this.reportBugToolStripMenuItem_Click);
|
||||
//
|
||||
// requestFeatureToolStripMenuItem1
|
||||
//
|
||||
this.requestFeatureToolStripMenuItem1.Name = "requestFeatureToolStripMenuItem1";
|
||||
this.requestFeatureToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||
this.requestFeatureToolStripMenuItem1.Text = "Request Feature";
|
||||
this.requestFeatureToolStripMenuItem1.Click += new System.EventHandler(this.requestFeatureToolStripMenuItem1_Click);
|
||||
//
|
||||
// githubToolStripMenuItem
|
||||
//
|
||||
this.githubToolStripMenuItem.Name = "githubToolStripMenuItem";
|
||||
this.githubToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.githubToolStripMenuItem.Text = "Github";
|
||||
this.githubToolStripMenuItem.Click += new System.EventHandler(this.githubToolStripMenuItem_Click);
|
||||
//
|
||||
// stPanel1
|
||||
//
|
||||
this.stPanel1.Controls.Add(this.menuStrip1);
|
||||
|
@ -395,44 +434,6 @@
|
|||
this.updateToolstrip.ToolTipText = "Update Tool";
|
||||
this.updateToolstrip.Click += new System.EventHandler(this.updateToolstrip_Click);
|
||||
//
|
||||
// requestFeatureToolStripMenuItem
|
||||
//
|
||||
this.requestFeatureToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.aboutToolStripMenuItem1,
|
||||
this.reportBugToolStripMenuItem,
|
||||
this.requestFeatureToolStripMenuItem1,
|
||||
this.githubToolStripMenuItem});
|
||||
this.requestFeatureToolStripMenuItem.Name = "requestFeatureToolStripMenuItem";
|
||||
this.requestFeatureToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
|
||||
this.requestFeatureToolStripMenuItem.Text = "Help";
|
||||
//
|
||||
// reportBugToolStripMenuItem
|
||||
//
|
||||
this.reportBugToolStripMenuItem.Name = "reportBugToolStripMenuItem";
|
||||
this.reportBugToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.reportBugToolStripMenuItem.Text = "Report Bug";
|
||||
this.reportBugToolStripMenuItem.Click += new System.EventHandler(this.reportBugToolStripMenuItem_Click);
|
||||
//
|
||||
// requestFeatureToolStripMenuItem1
|
||||
//
|
||||
this.requestFeatureToolStripMenuItem1.Name = "requestFeatureToolStripMenuItem1";
|
||||
this.requestFeatureToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||
this.requestFeatureToolStripMenuItem1.Text = "Request Feature";
|
||||
//
|
||||
// githubToolStripMenuItem
|
||||
//
|
||||
this.githubToolStripMenuItem.Name = "githubToolStripMenuItem";
|
||||
this.githubToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.githubToolStripMenuItem.Text = "Github";
|
||||
this.githubToolStripMenuItem.Click += new System.EventHandler(this.githubToolStripMenuItem_Click);
|
||||
//
|
||||
// aboutToolStripMenuItem1
|
||||
//
|
||||
this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
|
||||
this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||
this.aboutToolStripMenuItem1.Text = "About";
|
||||
this.aboutToolStripMenuItem1.Click += new System.EventHandler(this.aboutToolStripMenuItem1_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AllowDrop = true;
|
||||
|
|
|
@ -1160,13 +1160,12 @@ namespace Toolbox
|
|||
System.Diagnostics.Process.Start("https://github.com/KillzXGaming/Switch-Toolbox");
|
||||
}
|
||||
|
||||
private void reportBugToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var dialog = new GithubIssueDialog();
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
dialog.CreateIssue();
|
||||
private void reportBugToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
System.Diagnostics.Process.Start("https://github.com/KillzXGaming/Switch-Toolbox/issues");
|
||||
}
|
||||
|
||||
private void requestFeatureToolStripMenuItem1_Click(object sender, EventArgs e) {
|
||||
System.Diagnostics.Process.Start("https://github.com/KillzXGaming/Switch-Toolbox/issues");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,9 +123,6 @@
|
|||
<metadata name="tabControlContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>249, 17</value>
|
||||
</metadata>
|
||||
<metadata name="stToolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>132, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="BtnMdiMinimize.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
|
Loading…
Reference in a new issue