And more fixes for material animation importing

This commit is contained in:
KillzXGaming 2019-06-01 19:49:45 -04:00
parent 5e9a86461c
commit a02267c692
5 changed files with 21 additions and 12 deletions

Binary file not shown.

View file

@ -318,7 +318,7 @@ namespace Bfres.Structs
}
else
{
FMAA fmaaClr = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.ShaderParam);
FMAA fmaaClr = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Color);
fmaaClr.Replace(FileName);
Nodes.Add(fmaaClr);
}
@ -333,7 +333,7 @@ namespace Bfres.Structs
}
else
{
FMAA fmaaSrt = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.ShaderParam);
FMAA fmaaSrt = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.TextureSrt);
fmaaSrt.Replace(FileName);
Nodes.Add(fmaaSrt);
}
@ -356,10 +356,19 @@ namespace Bfres.Structs
Nodes.Add(fbnv);
break;
case BRESGroupType.MatVisAnim:
FVIS fmtv = new FVIS(new ResU.VisibilityAnim() { Type = ResU.VisibilityAnimType.Material });
fmtv.Text = ResourceName;
fmtv.Replace(FileName, resFileNX, resFileU);
Nodes.Add(fmtv);
if (IsWiiU)
{
FVIS fmtv = new FVIS(new ResU.VisibilityAnim() { Type = ResU.VisibilityAnimType.Material });
fmtv.Text = ResourceName;
fmtv.Replace(FileName, resFileNX, resFileU);
Nodes.Add(fmtv);
}
else
{
FMAA fmaaVis = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Visibilty);
fmaaVis.Replace(FileName);
Nodes.Add(fmaaVis);
}
break;
case BRESGroupType.ShapeAnim:
FSHA fsha = new FSHA();

View file

@ -26,12 +26,12 @@ namespace FirstPlugin
public static string FMAA = GetFilter(".bfmaa", ".gif");
public static string FSHU_REPLACE_PARAM = GetFilter(".fmaa", ".bfshu");
public static string FSHU_REPLACE_SRT = GetFilter(".fmaa", ".bftsh");
public static string FSHU_REPLACE_COLOR = GetFilter(".fmaa", ".bfcsh", ".clr0");
public static string FSHU_EXPORT_PARAM = GetFilter(".fmaa", ".bfshu");
public static string FSHU_EXPORT_SRT = GetFilter(".fmaa", ".bftsh");
public static string FSHU_EXPORT_COLOR = GetFilter(".fmaa", ".bfcsh");
public static string FSHU_REPLACE_PARAM = GetFilter(".bfmaa", ".bfshu");
public static string FSHU_REPLACE_SRT = GetFilter(".bfmaa", ".bftsh");
public static string FSHU_REPLACE_COLOR = GetFilter(".bfmaa", ".bfcsh", ".clr0");
public static string FSHU_EXPORT_PARAM = GetFilter(".bfmaa", ".bfshu");
public static string FSHU_EXPORT_SRT = GetFilter(".bfmaa", ".bftsh");
public static string FSHU_EXPORT_COLOR = GetFilter(".bfmaa", ".bfcsh");
public static string FCLH = GetFilter(".bfcsh");
public static string FSTH = GetFilter(".bfsth");