Automatically asign materials by name if no new ones are imported

This commit is contained in:
KillzXGaming 2019-07-20 21:01:32 -04:00
parent ee5f01e44d
commit 5b1ba08874
4 changed files with 12 additions and 4 deletions

Binary file not shown.

View file

@ -771,7 +771,7 @@
this.tabPageAdvanced.Location = new System.Drawing.Point(4, 25); this.tabPageAdvanced.Location = new System.Drawing.Point(4, 25);
this.tabPageAdvanced.Name = "tabPageAdvanced"; this.tabPageAdvanced.Name = "tabPageAdvanced";
this.tabPageAdvanced.Padding = new System.Windows.Forms.Padding(3); this.tabPageAdvanced.Padding = new System.Windows.Forms.Padding(3);
this.tabPageAdvanced.Size = new System.Drawing.Size(192, 71); this.tabPageAdvanced.Size = new System.Drawing.Size(530, 333);
this.tabPageAdvanced.TabIndex = 0; this.tabPageAdvanced.TabIndex = 0;
this.tabPageAdvanced.Text = "Advanced Settings"; this.tabPageAdvanced.Text = "Advanced Settings";
// //
@ -788,7 +788,7 @@
this.stPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.stPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stPanel1.Location = new System.Drawing.Point(3, 3); this.stPanel1.Location = new System.Drawing.Point(3, 3);
this.stPanel1.Name = "stPanel1"; this.stPanel1.Name = "stPanel1";
this.stPanel1.Size = new System.Drawing.Size(186, 65); this.stPanel1.Size = new System.Drawing.Size(524, 327);
this.stPanel1.TabIndex = 17; this.stPanel1.TabIndex = 17;
// //
// tabPage1 // tabPage1
@ -805,7 +805,7 @@
this.tabPage1.Location = new System.Drawing.Point(4, 25); this.tabPage1.Location = new System.Drawing.Point(4, 25);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(530, 333); this.tabPage1.Size = new System.Drawing.Size(192, 71);
this.tabPage1.TabIndex = 2; this.tabPage1.TabIndex = 2;
this.tabPage1.Text = "Inject Mode"; this.tabPage1.Text = "Inject Mode";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;

View file

@ -19,6 +19,7 @@ namespace FirstPlugin
CanResize = false; CanResize = false;
ogSkinCountChkBox.Checked = true; ogSkinCountChkBox.Checked = true;
chkMapOriginalMaterials.Checked = true;
tabControl1.myBackColor = FormThemes.BaseTheme.FormBackColor; tabControl1.myBackColor = FormThemes.BaseTheme.FormBackColor;
@ -55,7 +56,14 @@ namespace FirstPlugin
public bool ResetColorParams; public bool ResetColorParams;
public bool LimitSkinCount => ogSkinCountChkBox.Checked; public bool LimitSkinCount => ogSkinCountChkBox.Checked;
public bool MapOriginalMaterials => chkMapOriginalMaterials.Checked; public bool MapOriginalMaterials
{
get
{
return chkMapOriginalMaterials.Checked && chkBoxImportMat.Checked;
}
}
public bool UseOriginalAttributes => chkOriginalAttributesFormats.Checked; public bool UseOriginalAttributes => chkOriginalAttributesFormats.Checked;
public bool UseOriginalAttributeFormats => chkOriginalAttributesFormats.Checked; public bool UseOriginalAttributeFormats => chkOriginalAttributesFormats.Checked;