コード例 #1
0
        public SCLANode NewSCLA()
        {
            SCLANode node = new SCLANode {
                FileType = ARCFileType.MiscData
            };

            _resource.AddChild(node);

            BaseWrapper w = FindResource(node, false);

            w.EnsureVisible();
            w.TreeView.SelectedNode = w;
            return(node);
        }
コード例 #2
0
        public override ResourceNode Duplicate()
        {
            if (_resource._parent == null)
            {
                return(null);
            }
            _resource.Rebuild();
            SCLANode newNode = NodeFactory.FromAddress(null, _resource.WorkingUncompressed.Address, _resource.WorkingUncompressed.Length) as SCLANode;

            _resource._parent.InsertChild(newNode, true, _resource.Index + 1);
            newNode.Populate();
            newNode.FileType      = ((SCLANode)_resource).FileType;
            newNode.FileIndex     = ((SCLANode)_resource).FileIndex;
            newNode.GroupID       = ((SCLANode)_resource).GroupID;
            newNode.RedirectIndex = ((SCLANode)_resource).RedirectIndex;
            newNode.Name          = _resource.Name;
            return(newNode);
        }