private void OnExportTerrainButtonClicked() { if (_isUpdatingUI) { return; } string outputFolder = MessageBox.BrowseFolderDialog(null, null, "Select the output folder"); TerrainTools.ExportTerrain(CarveTab.SelectedTerrain, outputFolder); }
/// <summary> /// Exports the selected items. /// </summary> private void ExportSelection() { string outputFolder = MessageBox.BrowseFolderDialog(Editor.Windows.MainWindow, null, "Select the output folder"); if (outputFolder == null) { return; } var selection = _view.Selection; for (int i = 0; i < selection.Count; i++) { if (Export(selection[i], outputFolder)) { return; } } }