示例#1
0
        private void LoadTagEntry(BxlanPaiTagEntry entry, TreeNode root, int index)
        {
            var nodeEntry = new GroupTargetWrapper(entry.TargetName)
            {
                Tag = entry
            };

            root.Nodes.Add(nodeEntry);

            for (int i = 0; i < entry.KeyFrames.Count; i++)
            {
                var keyNode = new KeyNodeWrapper($"Key Frame {i}")
                {
                    Tag = entry.KeyFrames[i]
                };
                nodeEntry.Nodes.Add(keyNode);
            }
        }
示例#2
0
            private void AddTarget(object sender, EventArgs e)
            {
                AddGroupTargetDialog dlg = new AddGroupTargetDialog();
                bool canLoad             = dlg.LoadTag(GroupTag);

                if (dlg.ShowDialog() == DialogResult.OK && canLoad)
                {
                    BxlanPaiTagEntry target = dlg.GetGroupTarget();
                    target.Index = (byte)GroupTag.Entries.Count;
                    GroupTag.Entries.Add(target);

                    var nodeEntry = new GroupTargetWrapper(target.TargetName)
                    {
                        Tag = target
                    };
                    Nodes.Add(nodeEntry);
                }
            }