Skip to content

Commit

Permalink
Updated to version 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
RampantDespair committed Jun 11, 2023
1 parent 78d36a1 commit 8ad0632
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
19 changes: 13 additions & 6 deletions Aseprite-Exporter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ function exportSpineJsonStart(fileName, dlgData)

json:write('{ ')
json:write('"skeleton": { ')
json:write(string.format([["images": "%s" }, ]], dlgData.outputSubPath .. "/"))
json:write(string.format([["images": "%s", ]], "./" .. dlgData.imagesPath .. "/"))
json:write(string.format([["audio": "%s" ]], "./" .. dlgData.audioPath .. "/"))
json:write('}, ')
json:write('"bones": [ { ')
json:write('"name": "root" ')
json:write('} ')
Expand Down Expand Up @@ -236,25 +238,30 @@ dlg:file{
onchange = function()
dlg:modify{
id = "outputPath",
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.outputSubPath)
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.imagesPath)
}
end
}
dlg:entry{
id = "outputSubPath",
label = "Output SubPath:",
id = "imagesPath",
label = "Images Path:",
text = "sprite",
onchange = function()
dlg:modify{
id = "outputPath",
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.outputSubPath)
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.imagesPath)
}
end
}
dlg:entry{
id = "audioPath",
label = "Audio Path:",
text = "sound"
}
dlg:label{
id = "outputPath",
label = "Output Path:",
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.outputSubPath)
text = app.fs.joinPath(app.fs.filePath(dlg.data.outputFile), dlg.data.imagesPath)
}
dlg:separator{
id = "separator2",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Aseprite-Exporter
---
### Showcase
![showcase](media/showcase-v2.1.png)
![showcase](media/showcase-v2.3.png)

### Features
- Configurable output path & subpath
- Configurable output path
- Configurable images & sound paths
- Export layers using different naming patterns & settings
- Convert SpriteSheet into importable Spine data
- Configurable root positioning for Spine
Expand Down
File renamed without changes
File renamed without changes
Binary file added media/showcase-v2.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ad0632

Please sign in to comment.