Martín Capello
6534d37b40
Add custom properties serialization/deserialization lua tests
2023-01-06 19:28:02 -03:00
David Capello
d590d3f39a
Add nullptr_t to doc::UserData::Variant to fix bug when undoing an previously unexistent property
2023-01-06 14:36:51 -03:00
David Capello
645605305f
[lua] Add undo information when we modify user data properties
2023-01-03 11:14:19 -03:00
David Capello
427efef257
[lua] Add possibility to set the whole properties object
2023-01-03 09:00:36 -03:00
David Capello
b9537dbbe0
[lua] Add object.properties("extID") syntax to get extension properties
2023-01-03 08:34:14 -03:00
David Capello
9138592e98
[lua] Add support to set/get tables (arrays/maps) into user properties
2023-01-02 19:51:07 -03:00
David Capello
9f0491ddb6
[lua] Add support to iterate properties using pairs()
2023-01-02 14:36:49 -03:00
David Capello
ef0596fd01
[lua] Add __len operator to Properties
2023-01-02 12:54:37 -03:00
David Capello
76a398b162
[lua] Add access to user data properties in Sprite object ( aseprite/api#88 )
...
This is a basic implementation where we can only access basic
properties (not maps or vectors yet).
2023-01-02 12:54:37 -03:00
David Capello
8447a097c6
[lua] Add Image.id and Image.version getters
2022-12-26 17:20:27 -03:00
David Capello
909ebd6dcb
[lua] New Rectangle(point, size) constructor
2022-12-21 13:01:03 -03:00
David Capello
4d880bd5b7
[lua] Add Rectangle.origin and Rectangle.size properties
2022-12-20 18:04:51 -03:00
David Capello
f50bbff5d4
Minor formatting in rectangle.lua tests
2022-12-20 17:52:16 -03:00
David Capello
914e14377c
[lua] Add Image.bounds and Image:shrinkBounds()
2022-12-19 12:27:30 -03:00
David Capello
bd674dcb31
Add user data to tilesets (only logic side + scripting properties)
...
There is no UI yet to set Tileset user data (color and text).
2022-11-08 19:23:56 -03:00
David Capello
38c0400927
Fix Doc::isModified() when we are in a similar UndoState to the saved one
...
If the current UndoState doesn't modify the "saved state" (e.g. there
is a sequence of undoes/redoes that doesn't modify the saved version
of the sprite compared to the current one), we can indicate that we
are in the saved state anyway (!Doc::isModified).
2022-11-02 09:58:18 -03:00
David Capello
c7cafca69a
Merge remote-tracking branch 'tests/main'
2022-10-25 15:30:38 -03:00