Skip to content

Commit 6cad8d3

Browse files
committed
Add "recent" param in SaveFile/ExportSpriteSheet commands
1 parent 326136b commit 6cad8d3

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ end
2828

2929
* [`app.apiVersion`](api/app.md#appapiversion) is `28`
3030
* New [`app.os`](api/app_os.md#appos) with some properties about the running platform
31+
* New `recent` parameter to [SaveFile](api/command/SaveFile.md#savefile) and [ExportSpriteSheet](api/command/ExportSpriteSheet.md#exportspritesheet) commands
3132

3233
## v1.3.3
3334

api/command/ExportSpriteSheet.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
```lua
44
app.command.ExportSpriteSheet {
55
ui=true,
6+
recent=true,
67
askOverwrite=true,
78
type=SpriteSheetType.HORIZONTAL,
89
columns=0,
@@ -39,7 +40,12 @@ app.command.ExportSpriteSheet {
3940
This is similar to
4041
using [the `-sheet` argument from the CLI](https://www.aseprite.org/docs/cli/#sheet).
4142

42-
* `ui`
43+
* `ui`: Shows the dialog to export the sprite sheet.
44+
* `recent`: Only available since v1.3.7, it adds the output file
45+
(`textureFilename`) to the list of recent files. By default, if it's
46+
not specified, it depends on the `ui` parameter: if the Export
47+
Sprite Sheet dialog is displayed, the selected output filename will
48+
be added to the recent list.
4349
* `askOverwrite`
4450
* `type` ([SpriteSheetType](../spritesheettype.md#spritesheettype))
4551
* `columns`

api/command/SaveFile.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
```lua
44
app.command.SaveFile {
55
ui=true,
6+
recent=true,
67
filename="",
78
filenameFormat="",
89
tag="",
@@ -35,6 +36,9 @@ Parameters:
3536
show the UI (`false` by default) if the sprite has an associated
3637
file. `SaveFileAs` and `SaveFileCopyAs` will show the UI by
3738
default.
39+
* `recent`: Only available since v1.3.7, it adds the file to the list
40+
of recent files. By default it depends if the dialog to select the
41+
filename is displayed (depends on the value of the `ui` parameter).
3842
* `filename`: The filename where to save the sprite. The default
3943
values is the
4044
* `filenameFormat`: Special value similar to [--filename-format](https://www.aseprite.org/docs/cli/#filename-format)

0 commit comments

Comments
 (0)