示例#1
0
        private void UI_ExportW3DFButton_Click(object sender, EventArgs e)
        {
            UI_ExportSaveDialog.Filter   = "Warcraft 3D File (*.w3df)|*.w3df";
            UI_ExportSaveDialog.FileName = Path.GetFileNameWithoutExtension(loadedFile.BaseName) + ".w3df";
            if (UI_ExportSaveDialog.ShowDialog() == DialogResult.OK)
            {
                W3DFWriter writer = new W3DFWriter(UI_ExportSaveDialog.FileName, meshes.Where(m => m.ShouldRender), texManager);

                writer.Write();
                writer.Close();

                //loadingWindow = new LoadingWindow("Exporting WMO as W3DF...", "*Distant echoes of murloc chanting*");
                //loadingWindow.ShowDialog();
            }
        }
示例#2
0
        private void UI_ExportW3DFButton_Click(object sender, EventArgs e)
        {
            UI_ExportSaveDialog.Filter = "Warcraft 3D File (*.w3df)|*.w3df";
            UI_ExportSaveDialog.FileName = Path.GetFileNameWithoutExtension(loadedFile.BaseName) + ".w3df";
            if (UI_ExportSaveDialog.ShowDialog() == DialogResult.OK)
            {
                W3DFWriter writer = new W3DFWriter(UI_ExportSaveDialog.FileName, meshes.Where(m => m.ShouldRender), texManager);

                writer.Write();
                writer.Close();

                //loadingWindow = new LoadingWindow("Exporting WMO as W3DF...", "*Distant echoes of murloc chanting*");
                //loadingWindow.ShowDialog();
            }
        }