Exemplo n.º 1
0
        public List <STAnimationTrack> FindTargets(BxlanPaiTag group)
        {
            foreach (LytAnimGroup grp in AnimGroups)
            {
                foreach (SubAnimGroup sub in grp.SubAnimGroups)
                {
                    if (sub.PaiTag == group)
                    {
                        return(sub.GetTracks());
                    }
                }
            }

            return(new List <STAnimationTrack>());
        }
Exemplo n.º 2
0
        public STAnimationTrack FindTarget(BxlanPaiTag group, int index)
        {
            var tracks = FindTargets(group);

            Console.WriteLine($"tracks {tracks.Count}");

            if (index < tracks.Count)
            {
                return(tracks[index]);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 3
0
        public bool LoadTag(BxlanPaiTag group)
        {
            activeTag = group;

            curveTypeCB.LoadEnum(typeof(CurveType));
            curveTypeCB.SelectedItem = CurveType.Hermite;

            //Go through each group type
            //If either all targets are used, or is not supported we will return false
            if (group.Type == "PaneSRT")
            {
                return(LoadEnum(typeof(LPATarget)));
            }
            else if (group.Type == "Visibility")
            {
                return(LoadEnum(typeof(LVITarget)));
            }
            else if (group.Type == "TextureSRT")
            {
                return(LoadEnum(typeof(LTSTarget)));
            }
            else if (group.Type == "VertexColor")
            {
                return(LoadEnum(typeof(LVCTarget)));
            }
            else if (group.Type == "TexturePattern")
            {
                return(LoadEnum(typeof(LTPTarget)));
            }
            else if (group.Type == "IndTextureSRT")
            {
                return(LoadEnum(typeof(LIMTarget)));
            }
            else if (group.Type == "AlphaTest")
            {
            }
            else if (group.Type == "FontShadow")
            {
                return(LoadEnum(typeof(LCTTarget)));
            }
            else if (group.Type == "PerCharacterTransformCurve")
            {
            }

            return(false);
        }
Exemplo n.º 4
0
        public void InsertKey(Type groupType)
        {
            var    group    = SearchGroup(groupType);
            string platform = "F";

            if (animEntry is BFLAN.PaiEntry)
            {
                //First we find the proper group to insert our key
                //If it doesn't exist, create it.
                if (groupType == typeof(LytPaneSRTGroup))
                {
                    if (group == null)
                    {
                        var tag = new BxlanPaiTag($"{platform}LPA");
                        group = new LytPaneSRTGroup(tag);
                        animEntry.Tags.Add(tag);
                        SubAnimGroups.Add(group);
                    }
                }
            }
        }
Exemplo n.º 5
0
 public LytIndirectSRTGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 6
0
 public LytTextureSRTGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 7
0
 public LytMaterialColorGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 8
0
 public LytVertexColorGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 9
0
 public LytVisibiltyGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 10
0
 public LytTexturePatternGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 11
0
 public LytPaneSRTGroup(BxlanPaiTag entry)
 {
     Tag = entry;
 }
Exemplo n.º 12
0
 public LytPerCharacterTransformCurveGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 13
0
 public LytFontShadowGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 14
0
 public LytAlphaTestGroup(BxlanPaiTag entry)
 {
 }
Exemplo n.º 15
0
 public LytMaterialColorGroup(BxlanPaiTag entry) : base(entry)
 {
     IsRLAN = entry is BRLAN.PaiTag;
 }
Exemplo n.º 16
0
 public SubAnimGroup(BxlanPaiTag entry)
 {
     PaiTag = entry;
 }