mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-15 09:27:08 +00:00
And more fixes for material animation importing
This commit is contained in:
parent
5e9a86461c
commit
a02267c692
5 changed files with 21 additions and 12 deletions
Binary file not shown.
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue