From 3cf7bbb25c14c59ef989944bd26b8b7f7f1061c9 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Tue, 8 Jul 2014 16:58:32 -0400 Subject: [PATCH] Added 'Copy All' function to the 'Copy To' dialog for Unreal Export Table --- .../Editors/UnrealEngine/UnrealPackageEditor.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs index 8265e612..e7c9639e 100644 --- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs +++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.UnrealEngine.UserInterface.WindowsForms/Editors/UnrealEngine/UnrealPackageEditor.cs @@ -239,6 +239,23 @@ namespace UniversalEditor.Editors.UnrealEngine } } } + else + { + FolderBrowserDialog dlg = new FolderBrowserDialog(); + if (dlg.ShowDialog() == DialogResult.OK) + { + foreach (ListViewItem lvi in lvExportTable.Items) + { + ExportTableEntry ete = (lvi.Tag as ExportTableEntry); + if (ete == null) continue; + + string fileName = dlg.SelectedPath + System.IO.Path.DirectorySeparatorChar.ToString() + ete.Name.Name; + byte[] data = ete.GetData(); + if (data == null) data = new byte[0]; + System.IO.File.WriteAllBytes(fileName, data); + } + } + } } } }