Example #1
0
        private void texIDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (currentNut != null)
            {
                if (currentNut.Nodes.Count == 0)
                {
                    return;
                }

                using (var texIdSelector = new TexIdSelector())
                {
                    texIdSelector.Set(((NutTexture)currentNut.Nodes[0]).HashId);
                    texIdSelector.ShowDialog();
                    if (texIdSelector.exitStatus == TexIdSelector.ExitStatus.Opened)
                    {
                        currentNut.ChangeTextureIds(texIdSelector.getNewTexId());
                        FillForm();
                        Edited = true;
                    }
                }
            }
        }