public TextureListObject(UInt32 imageHeaderOffset, TextureNode node)
        {
            name = "Texture " + (DatFile.textureList.Items.Count +1) + " (" + imageHeaderOffset.ToString("x8") + ")";
            this.node = node;
            imageHeader = node.imageHeader;
            paletteHeader = node.paletteHeader;
            imageBitmap = TPL.ConvertFromTextureMelee(imageHeader, paletteHeader, out imageSize);





        }
Exemple #2
0
        private static void BuildImageHeader(TreeNode parent, UInt32 offset, ref TextureNode texNode)
        {
            var newImageHeader = new ImageHeader(file, offset);

            var newTreeNode = new TreeNode("ImageHeader");
            newTreeNode.Tag = newImageHeader;
            parent.Nodes.Add(newTreeNode);
            texNode.imageHeader = newImageHeader;
        }