public static void CreatePackFromDirectory() { string sourceFolder = DialogUtils.OpenDirectory( "Select folder that contains the assets you wish to pack", "", "", DialogUtils.DirectoryIsEmpty); if (sourceFolder == null) { return; } string[] files = Directory.GetFiles(sourceFolder); var destinationFile = DialogUtils.SaveFile( "Select destination to save created pack file", sourceFolder, "Assets_256", "pack"); if (destinationFile != null) { CreatePackFromFiles(files, destinationFile); DialogUtils.DisplayDialog("Export Successful", "Successfully packed and saved " + files.Length + " assets to " + destinationFile); } }
public void OpenForgelightGameFolder() { string path = DialogUtils.OpenDirectory( "Select folder containing Forgelight game files.", "", "", CheckGivenAssetDirectory); if (path != null) { LoadNewForgelightGame(path); } }