Ejemplo n.º 1
0
        public void LoadAnimations(BxlanHeader bxlan, TreeNode root, bool LoadRoot = true)
        {
            ActiveAnim = bxlan;

            if (LoadRoot)
            {
                treeView1.Nodes.Add(root);
            }

            if (bxlan is BxlanHeader)
            {
                var header = bxlan as BxlanHeader;
                var pat1   = new TreeNode("Tag Info")
                {
                    Tag = header.AnimationTag
                };
                var pai1 = new AnimInfoWrapper("Animation Info", ParentLayout)
                {
                    Tag = header.AnimationInfo
                };

                for (int i = 0; i < header.AnimationInfo.Entries.Count; i++)
                {
                    LayoutAnimTreeLoader.LoadAnimationEntry(header.AnimationInfo.Entries[i], pai1, treeView1);
                }

                root.Nodes.Add(pat1);
                root.Nodes.Add(pai1);
            }
        }
Ejemplo n.º 2
0
 public void LoadAnimationEntry(BxlanHeader bxlan, BxlanPaiEntry entry)
 {
     ActiveAnim = bxlan;
     LayoutAnimTreeLoader.LoadAnimationEntry(entry, null, treeView1);
 }
Ejemplo n.º 3
0
 private void PopulateTreeview(BxlanHeader anim, BxlanPaiEntry entry)
 {
     treeView1.Nodes.Clear();
     LayoutAnimTreeLoader.LoadAnimationEntry(entry, null, treeView1);
     treeView1.ExpandAll();
 }