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>()); }
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); } }
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); }
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); } } } }
public LytIndirectSRTGroup(BxlanPaiTag entry) { }
public LytTextureSRTGroup(BxlanPaiTag entry) { }
public LytMaterialColorGroup(BxlanPaiTag entry) { }
public LytVertexColorGroup(BxlanPaiTag entry) { }
public LytVisibiltyGroup(BxlanPaiTag entry) { }
public LytTexturePatternGroup(BxlanPaiTag entry) { }
public LytPaneSRTGroup(BxlanPaiTag entry) { Tag = entry; }
public LytPerCharacterTransformCurveGroup(BxlanPaiTag entry) { }
public LytFontShadowGroup(BxlanPaiTag entry) { }
public LytAlphaTestGroup(BxlanPaiTag entry) { }
public LytMaterialColorGroup(BxlanPaiTag entry) : base(entry) { IsRLAN = entry is BRLAN.PaiTag; }
public SubAnimGroup(BxlanPaiTag entry) { PaiTag = entry; }