mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 05:40:45 +00:00
sprite export settings added to export dialog
This commit is contained in:
@@ -1142,8 +1142,6 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
boolean parallel = Configuration.parallelSpeedUp.get();
|
||||
String scriptsFolder = Path.combine(outDir, ScriptExportSettings.EXPORT_FOLDER_NAME);
|
||||
Path.createDirectorySafe(new File(scriptsFolder));
|
||||
Boolean singleScriptFile = parseBooleanConfigValue(formats.get("singlescript"));
|
||||
if (singleScriptFile == null) {
|
||||
singleScriptFile = Configuration.scriptExportSingleFile.get();
|
||||
@@ -1161,6 +1159,8 @@ public class CommandLineArgumentParser {
|
||||
as3classes = parseSelectClassOld(args);
|
||||
}
|
||||
|
||||
String scriptsFolder = Path.combine(outDir, ScriptExportSettings.EXPORT_FOLDER_NAME);
|
||||
Path.createDirectorySafe(new File(scriptsFolder));
|
||||
String singleFileName = Path.combine(scriptsFolder, swf.getShortFileName() + scriptExportSettings.getFileExtension());
|
||||
try (FileTextWriter writer = scriptExportSettings.singleFile ? new FileTextWriter(Configuration.getCodeFormatting(), new FileOutputStream(singleFileName)) : null) {
|
||||
scriptExportSettings.singleFileWriter = writer;
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.jpexs.decompiler.flash.exporters.modes.MovieExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ShapeExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.SoundExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.SpriteExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.SymbolClassExportMode;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.TextExportMode;
|
||||
import com.jpexs.decompiler.flash.gui.tagtree.TagTreeModel;
|
||||
@@ -76,6 +77,7 @@ public class ExportDialog extends AppDialog {
|
||||
TagTreeModel.FOLDER_SCRIPTS,
|
||||
TagTreeModel.FOLDER_BINARY_DATA,
|
||||
TagTreeModel.FOLDER_FRAMES,
|
||||
TagTreeModel.FOLDER_SPRITES,
|
||||
TagTreeModel.FOLDER_BUTTONS,
|
||||
TagTreeModel.FOLDER_FONTS,
|
||||
TagTreeModel.FOLDER_MORPHSHAPES,
|
||||
@@ -92,6 +94,7 @@ public class ExportDialog extends AppDialog {
|
||||
{ASMSource.class, ScriptPack.class},
|
||||
{DefineBinaryDataTag.class},
|
||||
{Frame.class},
|
||||
{Frame.class},
|
||||
{ButtonTag.class},
|
||||
{FontTag.class},
|
||||
{MorphShapeTag.class},
|
||||
@@ -108,6 +111,7 @@ public class ExportDialog extends AppDialog {
|
||||
ScriptExportMode.class,
|
||||
BinaryDataExportMode.class,
|
||||
FrameExportMode.class,
|
||||
SpriteExportMode.class,
|
||||
ButtonExportMode.class,
|
||||
FontExportMode.class,
|
||||
MorphShapeExportMode.class,
|
||||
|
||||
@@ -67,6 +67,15 @@ frames.canvas = HTML5 Canvas
|
||||
frames.pdf = PDF
|
||||
frames.bmp = BMP
|
||||
|
||||
sprites = Sprites
|
||||
sprites.png = PNG
|
||||
sprites.gif = GIF
|
||||
sprites.avi = AVI
|
||||
sprites.svg = SVG
|
||||
sprites.canvas = HTML5 Canvas
|
||||
sprites.pdf = PDF
|
||||
sprites.bmp = BMP
|
||||
|
||||
buttons = Buttons
|
||||
buttons.png = PNG
|
||||
buttons.svg = SVG
|
||||
|
||||
@@ -67,6 +67,15 @@ frames.canvas = HTML5 V\u00e1szon
|
||||
frames.pdf = PDF
|
||||
frames.bmp = BMP
|
||||
|
||||
sprites = Szpr\u00e1jtok
|
||||
sprites.png = PNG
|
||||
sprites.gif = GIF
|
||||
sprites.avi = AVI
|
||||
sprites.svg = SVG
|
||||
sprites.canvas = HTML5 V\u00e1szon
|
||||
sprites.pdf = PDF
|
||||
sprites.bmp = BMP
|
||||
|
||||
buttons = Gombok
|
||||
buttons.png = PNG
|
||||
buttons.svg = SVG
|
||||
|
||||
Reference in New Issue
Block a user