David Capello
32fd67e187
[lua] Add ev.button property onclick of shades widget
2020-03-27 16:14:00 -03:00
David Capello
45fc74f596
lua: Fix crash on program exit if some metatable.__gc calls print()
2019-12-11 23:46:33 -03:00
David Capello
ff2af4f3e8
lua: Add app.fs object with some functions/properties for file names
2019-12-11 15:39:40 -03:00
David Capello
d6c6b00b32
Now using -script from CLI can return an error code (exit code != 0)
2019-11-01 15:04:22 -03:00
David Capello
aa66ff35a2
Refactor DocExporter::DataFormat -> SpriteSheetDataFormat
2019-10-07 17:22:27 -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
9143523827
Add params to ReplaceColor command (now this filter can be used from a script without UI)
2019-07-16 09:31:25 -03:00
David Capello
0264964c4e
lua: Add app.preferences object
2019-04-24 21:14:20 -03:00
David Capello
d35251d431
lua: Add Version() class
2019-04-21 00:04:49 -03:00
David Capello
8a821c83fd
lua: Add Brush class and app.useTool{ brush } parameter
2019-04-18 22:33:48 -03:00
David Capello
396824383f
lua: Add app.activeTool + Tool object
2019-03-23 09:19:10 -03:00
David Capello
4dd7febb99
lua: Add support to specify ExportSpriteSheet params
2019-01-08 16:42:01 -03:00
David Capello
0fef9bfa6b
lua: Add ColorSpace class
2019-01-03 17:18:10 -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
bf916fe029
lua: Add Range and RangeType
2018-11-23 13:10:12 -03:00
David Capello
61225b318a
lua: Add support to load relative paths with dofile()
2018-11-21 17:42:47 -03:00
David Capello
7029e05dc4
lua: Avoid crashes executing transactions without an active sprite
...
This is true even for background Dialogs with buttons that will
try to create a transaction for a nil app.activeSprite.
With this change we introduced a new way to handle the app::Console window,
it'll be alive almost the entire execution of the program (so if we
close it, it's hidden, but then will appear in the same location if
it's open again, and the text is cleared).
2018-11-20 19:42:53 -03:00
David Capello
c91d4b1430
lua: Rename ColorMode.GRAYSCALE to ColorMode.GRAY
2018-11-13 21:04:31 -03:00
David Capello
bccd3f1bf8
lua: add Dialog()
2018-10-11 12:01:21 -03:00
David Capello
f6e3aa9fd8
Add security dialog to access files from scripts
2018-09-17 13:14:56 -03:00
David Capello
aed23f4751
lua: use the active EngineDelegate::onConsolePrint() in print() function
...
This is needed to output print() messages in the DevConsoleView when
it's open.
2018-09-14 20:38:27 -03:00
David Capello
eb56884677
lua: use our base::open_file_raw to open files from io lib funcs
2018-09-13 16:55:53 -03:00
David Capello
02388e2d6a
lua: add app.sprites
2018-09-12 12:55:56 -03:00
David Capello
4ab94e9982
lua: add Sprite/Image.spec (ImageSpec metatable)
2018-09-11 21:52:53 -03:00
David Capello
03c663da21
lua: add functions to create layers/frames/cels/tags/slices
...
Some extra additions:
* Layer.cels
* AniDir constants
* Slice property setters
* Tag.sprite
* Fixed frame numbers in Tag properties
2018-09-11 18:29:15 -03:00
David Capello
0b72249fcd
lua: add BlendMode constants
2018-09-10 15:11:59 -03:00
David Capello
f66d355249
Avoid unused var in release mode
2018-09-10 14:35:54 -03:00
David Capello
4dd57bd483
lua: show full filename when an assert() fails
2018-09-06 11:48:18 -03:00
David Capello
4a143cb902
lua: move user data fields to each class
2018-09-05 09:22:59 -03:00
David Capello
fa34453a1b
lua: add app.command.CommandName()
2018-09-04 17:21:33 -03:00
David Capello
f456f3cba3
lua: Initial support for sprite properties
...
Frames, Palettes/Color, Layers, Cels, Tags, Slices, etc.
2018-09-04 16:10:32 -03:00
David Capello
a107dd29a4
lua: add image iterators
...
In this way we can use:
local img = Image(32, 32)
for it in img:pixels() do
local pixelValue = it() -- get pixel
...
it(pixelValue) -- set pixel
end
2018-09-03 18:20:23 -03:00
David Capello
c5a5a7858c
lua: use base::Chrono for os.clock() (which has more precision)
2018-09-03 13:29:10 -03:00
David Capello
bc092b4512
lua: add some standard libraries and disable some insecure functions
2018-09-03 12:08:47 -03:00
David Capello
3edc7c7b9a
Share scripting engine in the whole App instance life
2018-08-31 14:30:32 -03:00
David Capello
4fe66f2ffb
Change scripting language to Lua
2018-08-22 14:54:51 -03:00