mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-12-24 20:03:08 +00:00
f51dd17f94
Add in nutexb file format. While not finished, it can preview and export them. Batch exporting for nuteb (tools menu). Rework GTX code. This is WIP and not finished. Add XTX code. Unifnished atm. Add saving for wii u and include fmat exporting. Proper error handling for assimp and texture swizzling.
353 lines
20 KiB
C#
353 lines
20 KiB
C#
namespace FirstPlugin
|
|
{
|
|
partial class NuTexEditor
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NuTexEditor));
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
|
this.splitter1 = new System.Windows.Forms.Splitter();
|
|
this.panel2 = new System.Windows.Forms.Panel();
|
|
this.panel4 = new System.Windows.Forms.Panel();
|
|
this.pictureBoxCustom1 = new Switch_Toolbox.Library.Forms.PictureBoxCustom();
|
|
this.panel3 = new System.Windows.Forms.Panel();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.arrayLevelCounterLabel = new System.Windows.Forms.Label();
|
|
this.btnRightArray = new System.Windows.Forms.Button();
|
|
this.btnLeftArray = new System.Windows.Forms.Button();
|
|
this.imageBGComboBox = new System.Windows.Forms.ComboBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.texSizeMipsLabel = new System.Windows.Forms.Label();
|
|
this.mipLevelCounterLabel = new System.Windows.Forms.Label();
|
|
this.BtnMipsRight = new System.Windows.Forms.Button();
|
|
this.BtmMipsLeft = new System.Windows.Forms.Button();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.replaceSurfaceLevelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.exportSurfaceLevelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.panel1.SuspendLayout();
|
|
this.panel2.SuspendLayout();
|
|
this.panel4.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxCustom1)).BeginInit();
|
|
this.panel3.SuspendLayout();
|
|
this.contextMenuStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.panel1.Controls.Add(this.propertyGrid1);
|
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(593, 296);
|
|
this.panel1.TabIndex = 1;
|
|
//
|
|
// propertyGrid1
|
|
//
|
|
this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.propertyGrid1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
|
this.propertyGrid1.CategoryForeColor = System.Drawing.Color.WhiteSmoke;
|
|
this.propertyGrid1.CategorySplitterColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.propertyGrid1.CommandsActiveLinkColor = System.Drawing.Color.Red;
|
|
this.propertyGrid1.CommandsBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
|
|
this.propertyGrid1.CommandsDisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
|
|
this.propertyGrid1.CommandsForeColor = System.Drawing.Color.White;
|
|
this.propertyGrid1.DisabledItemForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
|
this.propertyGrid1.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
|
this.propertyGrid1.HelpBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45)))));
|
|
this.propertyGrid1.HelpForeColor = System.Drawing.Color.White;
|
|
this.propertyGrid1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
|
|
this.propertyGrid1.Name = "propertyGrid1";
|
|
this.propertyGrid1.SelectedItemWithFocusForeColor = System.Drawing.Color.Silver;
|
|
this.propertyGrid1.Size = new System.Drawing.Size(593, 299);
|
|
this.propertyGrid1.TabIndex = 2;
|
|
this.propertyGrid1.ToolbarVisible = false;
|
|
this.propertyGrid1.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
|
this.propertyGrid1.ViewBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.propertyGrid1.ViewForeColor = System.Drawing.Color.White;
|
|
this.propertyGrid1.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid1_PropertyValueChanged);
|
|
//
|
|
// splitter1
|
|
//
|
|
this.splitter1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.splitter1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.splitter1.Location = new System.Drawing.Point(0, 296);
|
|
this.splitter1.Name = "splitter1";
|
|
this.splitter1.Size = new System.Drawing.Size(593, 3);
|
|
this.splitter1.TabIndex = 2;
|
|
this.splitter1.TabStop = false;
|
|
//
|
|
// panel2
|
|
//
|
|
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.panel2.Controls.Add(this.panel4);
|
|
this.panel2.Controls.Add(this.panel3);
|
|
this.panel2.Controls.Add(this.button1);
|
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.panel2.Location = new System.Drawing.Point(0, 299);
|
|
this.panel2.Name = "panel2";
|
|
this.panel2.Size = new System.Drawing.Size(593, 297);
|
|
this.panel2.TabIndex = 3;
|
|
//
|
|
// panel4
|
|
//
|
|
this.panel4.Controls.Add(this.pictureBoxCustom1);
|
|
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.panel4.Location = new System.Drawing.Point(0, 80);
|
|
this.panel4.Name = "panel4";
|
|
this.panel4.Size = new System.Drawing.Size(593, 217);
|
|
this.panel4.TabIndex = 4;
|
|
//
|
|
// pictureBoxCustom1
|
|
//
|
|
this.pictureBoxCustom1.BackColor = System.Drawing.Color.Transparent;
|
|
this.pictureBoxCustom1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxCustom1.BackgroundImage")));
|
|
this.pictureBoxCustom1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.pictureBoxCustom1.Location = new System.Drawing.Point(0, 0);
|
|
this.pictureBoxCustom1.Name = "pictureBoxCustom1";
|
|
this.pictureBoxCustom1.Size = new System.Drawing.Size(593, 217);
|
|
this.pictureBoxCustom1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
this.pictureBoxCustom1.TabIndex = 0;
|
|
this.pictureBoxCustom1.TabStop = false;
|
|
//
|
|
// panel3
|
|
//
|
|
this.panel3.Controls.Add(this.label5);
|
|
this.panel3.Controls.Add(this.arrayLevelCounterLabel);
|
|
this.panel3.Controls.Add(this.btnRightArray);
|
|
this.panel3.Controls.Add(this.btnLeftArray);
|
|
this.panel3.Controls.Add(this.imageBGComboBox);
|
|
this.panel3.Controls.Add(this.label1);
|
|
this.panel3.Controls.Add(this.texSizeMipsLabel);
|
|
this.panel3.Controls.Add(this.mipLevelCounterLabel);
|
|
this.panel3.Controls.Add(this.BtnMipsRight);
|
|
this.panel3.Controls.Add(this.BtmMipsLeft);
|
|
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.panel3.Location = new System.Drawing.Point(0, 25);
|
|
this.panel3.Name = "panel3";
|
|
this.panel3.Size = new System.Drawing.Size(593, 55);
|
|
this.panel3.TabIndex = 2;
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.label5.AutoSize = true;
|
|
this.label5.ForeColor = System.Drawing.Color.White;
|
|
this.label5.Location = new System.Drawing.Point(342, 30);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(74, 13);
|
|
this.label5.TabIndex = 9;
|
|
this.label5.Text = "Array Counter:";
|
|
//
|
|
// arrayLevelCounterLabel
|
|
//
|
|
this.arrayLevelCounterLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.arrayLevelCounterLabel.AutoSize = true;
|
|
this.arrayLevelCounterLabel.ForeColor = System.Drawing.Color.White;
|
|
this.arrayLevelCounterLabel.Location = new System.Drawing.Point(415, 30);
|
|
this.arrayLevelCounterLabel.Name = "arrayLevelCounterLabel";
|
|
this.arrayLevelCounterLabel.Size = new System.Drawing.Size(42, 13);
|
|
this.arrayLevelCounterLabel.TabIndex = 8;
|
|
this.arrayLevelCounterLabel.Text = "00 / 00";
|
|
//
|
|
// btnRightArray
|
|
//
|
|
this.btnRightArray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnRightArray.Location = new System.Drawing.Point(533, 26);
|
|
this.btnRightArray.Name = "btnRightArray";
|
|
this.btnRightArray.Size = new System.Drawing.Size(57, 21);
|
|
this.btnRightArray.TabIndex = 7;
|
|
this.btnRightArray.Text = ">";
|
|
this.btnRightArray.UseVisualStyleBackColor = true;
|
|
this.btnRightArray.Click += new System.EventHandler(this.btnRightArray_Click);
|
|
//
|
|
// btnLeftArray
|
|
//
|
|
this.btnLeftArray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnLeftArray.Enabled = false;
|
|
this.btnLeftArray.Location = new System.Drawing.Point(470, 26);
|
|
this.btnLeftArray.Name = "btnLeftArray";
|
|
this.btnLeftArray.Size = new System.Drawing.Size(57, 21);
|
|
this.btnLeftArray.TabIndex = 6;
|
|
this.btnLeftArray.Text = "<";
|
|
this.btnLeftArray.UseVisualStyleBackColor = true;
|
|
this.btnLeftArray.Click += new System.EventHandler(this.btnLeftArray_Click);
|
|
//
|
|
// imageBGComboBox
|
|
//
|
|
this.imageBGComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.imageBGComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.imageBGComboBox.FormattingEnabled = true;
|
|
this.imageBGComboBox.Location = new System.Drawing.Point(215, 7);
|
|
this.imageBGComboBox.Name = "imageBGComboBox";
|
|
this.imageBGComboBox.Size = new System.Drawing.Size(121, 21);
|
|
this.imageBGComboBox.TabIndex = 5;
|
|
this.imageBGComboBox.SelectedIndexChanged += new System.EventHandler(this.imageBGComboBox_SelectedIndexChanged);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.label1.AutoSize = true;
|
|
this.label1.ForeColor = System.Drawing.Color.White;
|
|
this.label1.Location = new System.Drawing.Point(342, 7);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(67, 13);
|
|
this.label1.TabIndex = 4;
|
|
this.label1.Text = "Mip Counter:";
|
|
//
|
|
// texSizeMipsLabel
|
|
//
|
|
this.texSizeMipsLabel.AutoSize = true;
|
|
this.texSizeMipsLabel.ForeColor = System.Drawing.Color.White;
|
|
this.texSizeMipsLabel.Location = new System.Drawing.Point(127, 34);
|
|
this.texSizeMipsLabel.Name = "texSizeMipsLabel";
|
|
this.texSizeMipsLabel.Size = new System.Drawing.Size(42, 13);
|
|
this.texSizeMipsLabel.TabIndex = 3;
|
|
this.texSizeMipsLabel.Text = "00 / 00";
|
|
//
|
|
// mipLevelCounterLabel
|
|
//
|
|
this.mipLevelCounterLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.mipLevelCounterLabel.AutoSize = true;
|
|
this.mipLevelCounterLabel.ForeColor = System.Drawing.Color.White;
|
|
this.mipLevelCounterLabel.Location = new System.Drawing.Point(415, 7);
|
|
this.mipLevelCounterLabel.Name = "mipLevelCounterLabel";
|
|
this.mipLevelCounterLabel.Size = new System.Drawing.Size(42, 13);
|
|
this.mipLevelCounterLabel.TabIndex = 2;
|
|
this.mipLevelCounterLabel.Text = "00 / 00";
|
|
//
|
|
// BtnMipsRight
|
|
//
|
|
this.BtnMipsRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.BtnMipsRight.Location = new System.Drawing.Point(533, 3);
|
|
this.BtnMipsRight.Name = "BtnMipsRight";
|
|
this.BtnMipsRight.Size = new System.Drawing.Size(57, 21);
|
|
this.BtnMipsRight.TabIndex = 1;
|
|
this.BtnMipsRight.Text = ">";
|
|
this.BtnMipsRight.UseVisualStyleBackColor = true;
|
|
this.BtnMipsRight.Click += new System.EventHandler(this.BtnMipsRight_Click);
|
|
//
|
|
// BtmMipsLeft
|
|
//
|
|
this.BtmMipsLeft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.BtmMipsLeft.Enabled = false;
|
|
this.BtmMipsLeft.Location = new System.Drawing.Point(470, 3);
|
|
this.BtmMipsLeft.Name = "BtmMipsLeft";
|
|
this.BtmMipsLeft.Size = new System.Drawing.Size(57, 21);
|
|
this.BtmMipsLeft.TabIndex = 0;
|
|
this.BtmMipsLeft.Text = "<";
|
|
this.BtmMipsLeft.UseVisualStyleBackColor = true;
|
|
this.BtmMipsLeft.Click += new System.EventHandler(this.BtmMipsLeft_Click);
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
|
|
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Gray;
|
|
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))));
|
|
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button1.ForeColor = System.Drawing.Color.White;
|
|
this.button1.Location = new System.Drawing.Point(0, 0);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(593, 25);
|
|
this.button1.TabIndex = 1;
|
|
this.button1.Text = "Hide";
|
|
this.button1.UseVisualStyleBackColor = false;
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
//
|
|
// contextMenuStrip1
|
|
//
|
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.replaceSurfaceLevelToolStripMenuItem,
|
|
this.exportSurfaceLevelToolStripMenuItem});
|
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
this.contextMenuStrip1.Size = new System.Drawing.Size(188, 48);
|
|
//
|
|
// replaceSurfaceLevelToolStripMenuItem
|
|
//
|
|
this.replaceSurfaceLevelToolStripMenuItem.Name = "replaceSurfaceLevelToolStripMenuItem";
|
|
this.replaceSurfaceLevelToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
|
|
this.replaceSurfaceLevelToolStripMenuItem.Text = "Replace Surface Level";
|
|
//
|
|
// exportSurfaceLevelToolStripMenuItem
|
|
//
|
|
this.exportSurfaceLevelToolStripMenuItem.Name = "exportSurfaceLevelToolStripMenuItem";
|
|
this.exportSurfaceLevelToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
|
|
this.exportSurfaceLevelToolStripMenuItem.Text = "Export Surface Level";
|
|
//
|
|
// NuTexEditor
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.Controls.Add(this.panel2);
|
|
this.Controls.Add(this.splitter1);
|
|
this.Controls.Add(this.panel1);
|
|
this.Name = "NuTexEditor";
|
|
this.Size = new System.Drawing.Size(593, 596);
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel2.ResumeLayout(false);
|
|
this.panel4.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxCustom1)).EndInit();
|
|
this.panel3.ResumeLayout(false);
|
|
this.panel3.PerformLayout();
|
|
this.contextMenuStrip1.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.Button button1;
|
|
private System.Windows.Forms.Splitter splitter1;
|
|
private System.Windows.Forms.Panel panel2;
|
|
private Switch_Toolbox.Library.Forms.PictureBoxCustom pictureBoxCustom1;
|
|
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
|
private System.Windows.Forms.Panel panel4;
|
|
private System.Windows.Forms.Panel panel3;
|
|
private System.Windows.Forms.Label mipLevelCounterLabel;
|
|
private System.Windows.Forms.Button BtnMipsRight;
|
|
private System.Windows.Forms.Button BtmMipsLeft;
|
|
private System.Windows.Forms.Label texSizeMipsLabel;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.ComboBox imageBGComboBox;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.Label arrayLevelCounterLabel;
|
|
private System.Windows.Forms.Button btnRightArray;
|
|
private System.Windows.Forms.Button btnLeftArray;
|
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
|
private System.Windows.Forms.ToolStripMenuItem replaceSurfaceLevelToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem exportSurfaceLevelToolStripMenuItem;
|
|
}
|
|
}
|