// // Bundle Export event handler // private void ExportHandler(BundleExportProgressEventArgs args) { if (InvokeRequired) { Invoke(new Action <BundleExportProgressEventArgs>(ExportHandler), args); return; } pb_progress.Value = args.TotalProgress; pb_stageProgress.Value = args.StageProgress; if (args.ExportStage == BundleExportStage.TextureAtlasGeneration) { lbl_progress.Text = args.StageDescription; } else if (args.ExportStage == BundleExportStage.SavingToDisk) { lbl_progress.Text = @"Saving to disk..."; } else if (args.ExportStage == BundleExportStage.Ended) { lbl_progress.Text = @"Export successful!"; } var sheetArgs = args as SheetGenerationBundleExportProgressEventArgs; if (sheetArgs != null) { InvalidateSheetNode(sheetArgs.Sheet); } else { InvalidateTreeView(); } }
// // Bundle Export event handler // private void ExportHandler(BundleExportProgressEventArgs args) { if (InvokeRequired) { Invoke(new Action <BundleExportProgressEventArgs>(ExportHandler), args); return; } pb_progress.Value = args.StageProgress; if (args.ExportStage == BundleExportStage.TextureAtlasGeneration) { lbl_progress.Text = @"Exporting atlas for " + _sheet.Name + @"..."; } else if (args.ExportStage == BundleExportStage.SavingToDisk) { lbl_progress.Text = @"Saving to disk..."; } else if (args.ExportStage == BundleExportStage.Ended) { lbl_progress.Text = @"Export successful!"; } }