Commit Graph

13 Commits

Author SHA1 Message Date
Christian Kaiser 7578fbd592 [lua] Add sprite.undoHistory 2025-07-25 12:22:48 -03:00
David Capello 09538f9a1a clang-format all files 2024-12-16 14:52:19 -03:00
Gaspar Capello 68730c1c1b [lua] Add get/set 'tilemapMode' Site object 2024-09-03 11:44:25 -03:00
David Capello cd342f5630 [lua] Add events handling with Sprite.events & App.events
Added a new Events object with :on() and :off() methods to start or
stop listening to a specific event respectively. This also allows to
add several callbacks for the same event.

Replaced the temporal Site.onChange & Sprite.onChange implementations.

Related to several issues (enable more possibilities for): #138, #1403, #1949, #2965, #2980
2021-10-07 18:56:39 -03:00
David Capello 0ca411690b Remove trailing whitespaces 2021-10-06 19:17:10 -03:00
lampysprites bf53fa26cd Make onChange callbacks more predictable 2021-10-04 12:17:25 +07:00
lampysprites 83c03a3158 Expose site observer to lua API 2021-10-02 20:09:35 +07:00
David Capello ecec485fe6 lua: Add Site.frameNumber 2018-11-22 15:05:21 -03:00
David Capello 34d1906034 lua: use ObjectId to refer doc objects from script variables
This should fix several crashes using objects in invalid ways where
the object doesn't exist anymore (e.g. an undo deleted referenced
objects in scripts).
2018-11-20 18:12:43 -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 17366056b6 Use a ImageObj with a ImageRef for scripts
Also added __gc/new/clone methods, and colorMode property.
2018-08-30 20:47:11 -03:00
David Capello 4fe66f2ffb Change scripting language to Lua 2018-08-22 14:54:51 -03:00
David Capello 587f697bda js: Add Site class and app.site property 2018-08-20 15:15:38 -03:00