예제 #1
0
 public static void ShowGtxMipmapWarning(NUT nut)
 {
     if (nut.ContainsGtxTextures())
     {
         MessageBox.Show("Mipmaps will not be exported correctly for some textures.", "GTX textures detected");
     }
 }
예제 #2
0
        public static void PromptUserToConfirmMipRegenIfGtx(NUT nut)
        {
            if (nut.ContainsGtxTextures())
            {
                MessageBox.Show("Mipmaps will not be exported correctly for some textures.", "GTX textures detected");

                // TODO: Doesn't work properly in game.
                //DialogResult result = MessageBox.Show("Mipmaps will not be exported correctly for some textures. " +
                //    "Would you like to regenerate all mipmaps? Note: this will modify the existing textures.",
                //    "GTX textures detected", MessageBoxButtons.YesNo);
                //if (result == DialogResult.Yes)
                //{
                //    foreach (NutTexture texture in nut.Nodes)
                //    {
                //        NUT.RegenerateMipmapsFromTexture2D(texture);
                //    }
                //}
            }
        }