Example #1
0
        public void NewTexPatAnim()
        {
            var type = MaterialAnimation.AnimationType.TexturePattern;

            BFRESGroupNode group = null;

            if (IsWiiU)
            {
                group = GetOrCreateFolder <FTXP>();
                FTXP anim = new FTXP(new ResU.TexPatternAnim());
                group.AddNode(anim, "NewTexturePatternAnim_ftp");
            }
            else
            {
                group = GetOrCreateFolder <FMAA>(type);
                FMAA fmaa = new FMAA(new ResNX.MaterialAnim());
                group.AddNode(fmaa, "NewTexturePatternAnim_ftp");
            }

            AddFolder(group);
        }
Example #2
0
        public void NewTexSrtAnim()
        {
            var type = MaterialAnimation.AnimationType.TextureSrt;

            BFRESGroupNode group = null;

            if (IsWiiU)
            {
                group = GetOrCreateFolder <FSHU>(type);
                FSHU fshu = new FSHU(new ResU.ShaderParamAnim(), type);
                group.AddNode(fshu, "NewTextureTransformAnim_fts");
            }
            else
            {
                group = GetOrCreateFolder <FMAA>(type);
                FMAA fmaa = new FMAA(new ResNX.MaterialAnim());
                group.AddNode(fmaa, "NewTextureTransformAnim_fts");
            }

            AddFolder(group);
        }
Example #3
0
        public void NewMatVisAnim()
        {
            BFRESGroupNode group = null;

            if (IsWiiU)
            {
                group = GetOrCreateFolder <FVIS>(VisibiltyAnimType.Material);
                FVIS anim = new FVIS(new ResU.VisibilityAnim()
                {
                    Type = ResU.VisibilityAnimType.Material
                });
                group.AddNode(anim, "NewMatVisAnim_fvm");
            }
            else
            {
                group = GetOrCreateFolder <FMAA>(MaterialAnimation.AnimationType.Visibilty);
                FMAA fmaa = new FMAA(new ResNX.MaterialAnim());
                group.AddNode(fmaa, "NewMatVisAnim_fvm");
            }

            AddFolder(group);
        }
Example #4
0
        public void NewSceneAnim()
        {
            BFRESGroupNode group = GetOrCreateFolder <FSCN>();
            FSCN           fshu  = null;

            if (IsWiiU)
            {
                fshu = new FSCN(new ResU.SceneAnim());
            }
            else
            {
                fshu = new FSCN(new ResNX.SceneAnim());
            }

            group.AddNode(fshu, "NewSceneVisAnim");
            AddFolder(group);
        }
Example #5
0
        public void NewShapeAnim()
        {
            BFRESGroupNode group = GetOrCreateFolder <FSHA>();
            FSHA           anim  = null;

            if (IsWiiU)
            {
                anim = new FSHA(new ResU.ShapeAnim());
            }
            else
            {
                anim = new FSHA(new ResNX.ShapeAnim());
            }

            group.AddNode(anim, "NewShapeAnim");
            AddFolder(group);
        }
Example #6
0
        public void NewBoneVisAnim()
        {
            BFRESGroupNode group = GetOrCreateFolder <FVIS>(VisibiltyAnimType.Bone);

            FVIS anim = null;

            if (IsWiiU)
            {
                anim = new FVIS(new ResU.VisibilityAnim()
                {
                    Type = ResU.VisibilityAnimType.Bone
                });
            }
            else
            {
                anim = new FVIS(new ResNX.VisibilityAnim());
            }

            group.AddNode(anim, "NewBoneVisAnim");
            AddFolder(group);
        }