David Capello
f26ce64208
[lua] Update scripting API version to 36
2025-09-22 09:04:57 -03:00
David Capello
b2b2583176
[lua] Update scripting API version to 35
2025-08-07 20:18:10 -03:00
David Capello
b6cbeefb6e
[lua] Update scripting API version to 34
2025-06-20 10:00:33 -03:00
David Capello
03422e7251
[lua] Update scripting API version to 33
2025-06-07 12:08:00 -03:00
David Capello
f7f93c64f2
[lua] Update scripting API version to 32
2025-02-26 09:38:31 -03:00
David Capello
2106c18f63
[lua] Update scripting API version to 31
2025-01-07 11:50:18 -03:00
David Capello
b2e4f78b69
clang-format all files
2024-12-16 10:10:34 -03:00
David Capello
21565a9349
[lua] Update scripting API version to 30
2024-11-19 13:15:27 -03:00
David Capello
384813421c
[lua] Update scripting API version to 29
...
This should have been changed for v1.3.9.
2024-10-06 20:41:08 -03:00
David Capello
6f09bde511
Allow backslash (\) in filenames on Linux and macOS ( fix #3936 )
...
We required a new app.os object to skip some tests on non-Windows
platforms when we check for backslashes in app.fs functions.
2024-05-08 14:46:16 -03:00
David Capello
14696de980
[lua] Update API version
2024-02-12 18:53:15 -03:00
David Capello
922ebf3039
[lua] Increment scripting API version
2023-08-21 20:49:58 -03:00
David Capello
48275d51c2
[lua] Add new AfterAddTile event for tile management plugins
...
Replaced the App BeforePaintEmptyTilemap event (introduced in
c26351712a
) with the new Sprite
AfterAddTile event triggered by draw_image_into_new_tilemap_cel().
This new event handles two cases:
1) When the user paints on an empty tilemap cel, a new tile is
created, so the tile management plugin can handle AfterAddTile
to know the existence of this new tile. (This case was disabled
with fae3c6566c
, then handled with
c26351712a
, now handled with this
patch).
2) When we copy & paste cels (or drag & drop cels) in the timeline
between layers, if a new tile is created, the AfterAddTile is
called and the plugin can associate tiles with its internal
information (e.g. folders)
Related to: https://github.com/aseprite/Attachment-System/issues/135
2023-07-07 18:40:06 -03:00
David Capello
da70dd3892
Increment scripting API version
2023-05-18 12:42:35 -03:00
David Capello
636cce6f0d
[lua] Add Uuid type ( fix #3809 )
2023-04-12 13:51:37 -03:00
David Capello
23557a190b
[lua] Add Plugin:newMenuGroup() to add submenus ( fix #3731 )
2023-03-09 16:41:37 -03:00
David Capello
6b21fec417
[lua] Add "ev" args to "change" sprite event, to ask for "ev.fromUndo"
...
In this way we can know if the event was generated from a
undo/redo/undo history change and not from the direct user
manipulation of the sprite.
Useful for scripts like in #3539
2022-09-29 12:10:09 -03:00
David Capello
2789e41d48
[lua] New API version 20
2022-08-31 09:36:27 -03:00
David Capello
ddc1b76214
Convert SaveFileBaseCommand to CommandWithNewParams
...
With this patch we fixed some use cases:
* We can show the ui with a default filename { filename=..., ui=true }
* We can specify fromFrame/toFrame for SaveFileCopyAs
2022-06-13 17:04:12 -03:00
David Capello
2a908f79df
lua: Dialog() must return nil if there is no UI available
...
This avoids some crashes when running in --batch mode and some script
tries to create a Dialog().
2022-04-05 20:45:34 -03:00
David Capello
97389dd1a3
[lua] New API version
2022-02-04 14:08:19 -03:00
David Capello
bed6a8d8b1
[lua] Increment API version
2021-11-16 09:08:39 -03:00
David Capello
b5d230d52f
Increment Lua API version
2021-09-30 15:01:57 -03:00
David Capello
d7a1c71df0
lua: Add support for selection tools in app.useTool()
...
Fix https://github.com/aseprite/api/issues/37
2021-04-22 13:51:56 -03:00
David Capello
14893fbaf8
[lua] Add functions to make/remove directories with app.fs
2020-10-22 11:36:52 -03:00
David Capello
7656627605
[lua] Fix calling onclose Dialog event when we close the app (fix https://github.com/aseprite/api/issues/28 )
2020-07-28 10:35:38 -03:00
David Capello
68720424c0
[lua] Dialog:modify{} now can modify the text of a separator
...
Fixes https://github.com/aseprite/api/issues/27
2020-05-11 12:26:43 -03:00
David Capello
28248bf228
[lua] Add Tag.color property (fix https://github.com/aseprite/api/issues/24 )
2020-03-19 08:41:29 -03:00
David Capello
9d818e0304
lua: Update scripting API number to 9
2019-12-17 15:07:59 -03:00
David Capello
48c4e49d67
Fix Layer.stackIndex setter when we use a stackIndex greater than the current one
2019-11-29 11:08:18 -03:00
David Capello
30b2585037
Save grid bounds inside .aseprite files and doc::Sprite ( fix #688 )
2019-10-10 15:08:59 -03:00
David Capello
845c2071da
[lua] Update API version to 6
2019-09-11 19:20:43 -03:00
David Capello
1ef67cada4
lua: Support more filters from scripts (BrightnessContrast, Despeckle, HueSaturation, InvertColor, Outline)
2019-07-18 11:47:26 -03:00
David Capello
e9d8392a46
lua: Several app.useTool() calls can be used in one transaction now ( fix aseprite/api#18 )
2019-06-28 16:44:52 -03:00
David Capello
8966f7846f
lua: Add Sprite:close() function
2018-12-20 09:25:41 -03:00
David Capello
b2cafe4108
lua: Add app.params and --script-param
...
Now parameters for scripts can be specified from the CLI with
--script-params and from gui.xml or .aseprite-keys from <param>
sections.
2018-12-10 16:45:30 -03:00
David Capello
bdf3b25209
lua: add app.apiVersion property
2018-11-13 22:31:14 -03:00