Exemplo n.º 1
0
        public override void contributeToTreeView(TreeView treeView)
        {
            TreeNode rootNode = new TreeNode(this.GetType().Name);

            rootNode.Expand();
            ContextInfo.AddToList(new ContextInfo {
                DataType = DataType.ClientToServerHeader
            });
            rootNode.Nodes.Add("i_stackID = " + Utility.FormatHex(i_stackID));
            ContextInfo.AddToList(new ContextInfo {
                DataType = DataType.ObjectID
            });
            TreeNode locationNode = rootNode.Nodes.Add("i_loc = " + Utility.FormatHex(i_loc));

            ContextInfo.AddToList(new ContextInfo {
                Length = 4
            }, updateDataIndex: false);
            InventoryLocation.contributeToTreeNode(locationNode, i_loc);
            // Now skip i_loc dword
            ContextInfo.DataIndex += 4;
            rootNode.Nodes.Add("i_amount = " + i_amount);
            ContextInfo.AddToList(new ContextInfo {
                Length = 4
            });
            treeView.Nodes.Add(rootNode);
        }
Exemplo n.º 2
0
        public override void contributeToTreeView(TreeView treeView)
        {
            TreeNode rootNode = new TreeNode(this.GetType().Name);

            rootNode.Expand();
            ContextInfo.AddToList(new ContextInfo {
                DataType = DataType.ClientToServerHeader
            });
            rootNode.Nodes.Add("i_item = " + Utility.FormatHex(i_item));
            ContextInfo.AddToList(new ContextInfo {
                DataType = DataType.ObjectID
            });
            var equipMaskNode = rootNode.Nodes.Add("i_equipMask = " + Utility.FormatHex(i_equipMask));

            ContextInfo.AddToList(new ContextInfo {
                Length = 4
            }, updateDataIndex: false);
            InventoryLocation.contributeToTreeNode(equipMaskNode, i_equipMask);
            rootNode.ExpandAll();
            treeView.Nodes.Add(rootNode);
        }
Exemplo n.º 3
0
        public void contributeToTreeNode(TreeNode node)
        {
            TreeNode ilistIIDNode = node.Nodes.Add("iid_ = " + Utility.FormatHex(iid_));

            ContextInfo.AddToList(new ContextInfo {
                DataType = DataType.ObjectID
            });
            TreeNode ilistLocNode = node.Nodes.Add("loc_ = " + Utility.FormatHex(loc_));

            ContextInfo.AddToList(new ContextInfo {
                Length = 4
            }, updateDataIndex: false);
            InventoryLocation.contributeToTreeNode(ilistLocNode, loc_);
            // Now skip _loc dword
            ContextInfo.DataIndex += 4;
            TreeNode ilistPriorityNode = node.Nodes.Add("priority_ = " + priority_);

            ContextInfo.AddToList(new ContextInfo {
                Length = 4
            });
        }