1
0
mirror of synced 2024-12-02 02:57:23 +01:00

Add seperate export filer for FMDL to remove unused types atm

This commit is contained in:
KillzXGaming 2019-04-11 19:43:04 -04:00
parent 937102c154
commit dada4bb9c3
6 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -437,7 +437,8 @@ namespace Bfres.Structs
Nodes.Clear();
}
public override string ExportFilter => FileFilters.GetFilter(typeof(FMDL));
public override string ExportFilter => FileFilters.GetFilter(typeof(FMDL), null, true);
public override string ImportFilter => FileFilters.GetFilter(typeof(FMDL));
public override void Export(string FileName)
{

View File

@ -87,7 +87,7 @@
// stPropertyGrid1
//
this.stPropertyGrid1.AutoScroll = true;
this.stPropertyGrid1.DisableHintDisplay = true;
this.stPropertyGrid1.ShowHintDisplay = true;
this.stPropertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stPropertyGrid1.Location = new System.Drawing.Point(0, 0);
this.stPropertyGrid1.Name = "stPropertyGrid1";

View File

@ -13,6 +13,7 @@ namespace FirstPlugin
public static string BNTX_TEX = GetFilter(".bftex", ".dds",".astc", ".png", ".tga", ".jpg", ".tiff", ".gif");
public static string FTEX = GetFilter(".bftex", ".dds", ".dds2", ".png", ".tga", ".jpg", ".tiff", ".gif");
public static string FMDL = GetFilter(".bfmdl", ".dae", ".fbx", ".obj", ".csv");
public static string FMDL_EXPORT = GetFilter(".bfmdl", ".dae");
public static string FSKL = GetFilter(".bfskl");
public static string FSHP = GetFilter(".bfobj");
public static string BONE = GetFilter(".bfbn");
@ -30,9 +31,10 @@ namespace FirstPlugin
public static string FSCN = GetFilter(".bfscn");
public static string FSHA = GetFilter(".bfspa");
public static string GetFilter(Type type, object CheckAnimEffect = null)
public static string GetFilter(Type type, object CheckAnimEffect = null, bool IsExporting = false)
{
if (type == typeof(TextureData)) return BNTX_TEX;
else if (type == typeof(FMDL) && IsExporting) return FMDL_EXPORT;
else if (type == typeof(FMDL)) return FMDL;
else if (type == typeof(FSHP)) return FSHP;
else if (type == typeof(FMAT)) return FMAT;