ME3Explorer.KFreonTPFTools3.GetTexFromNode C# (CSharp) Method

GetTexFromNode() private method

private GetTexFromNode ( myTreeNode node, TPFTexInfo &tex ) : int
node KFreonLib.GUI.myTreeNode
tex KFreonLib.Textures.TPFTexInfo
return int
        private int GetTexFromNode(myTreeNode node, out TPFTexInfo tex)
        {
            tex = null;

            // Heff: Cancellation check
            if (cts.IsCancellationRequested)
                return -1;

            if (node.TexInd >= LoadedTexes.Count)
                return 0;

            if (node.TexInds.Count != 0)
                tex = LoadedTexes[node.TexInds[0]].FileDuplicates[node.TexInds[1]];
            else
                tex = LoadedTexes[node.TexInd];
            return node.TexInd;
        }
KFreonTPFTools3