David Capello
|
4c5637f636
|
Add missing doc::Image(ImageSpec) impl
|
2018-09-11 16:53:09 -03:00 |
|
David Capello
|
83285d1717
|
Remove unused variable
|
2018-09-11 15:02:08 -03:00 |
|
David Capello
|
9f23f0be55
|
lua: change Frame.frame property to Frame.frameNumber
|
2018-09-10 16:14:13 -03:00 |
|
David Capello
|
5a6ff70edc
|
lua: include stacktrace when we access an invalid property
|
2018-09-10 16:00:02 -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
|
c12fd2a5f4
|
lua: add Sprite.transparentColor
|
2018-09-10 14:35:45 -03:00 |
|
David Capello
|
d8fb99576e
|
lua: Palette() ctor by default is a 256 colors palette
|
2018-09-10 14:34:35 -03:00 |
|
David Capello
|
4eefcaaa09
|
lua: add Sprite:setPalette()
|
2018-09-10 13:49:41 -03:00 |
|
David Capello
|
10d7020b23
|
lua: add Image:pixels(Rectangle) function
|
2018-09-07 18:03:33 -03:00 |
|
David Capello
|
f604ac95dd
|
lua: add app.alert() function
|
2018-09-07 16:42:58 -03:00 |
|
David Capello
|
ef23e1b307
|
lua: add app.isUIAvailable
|
2018-09-07 16:06:32 -03:00 |
|
David Capello
|
d91fe69c15
|
lua: add Selection(Rectangle) ctor
|
2018-09-07 14:47:17 -03:00 |
|
David Capello
|
6abda997d4
|
lua: Add Selection:add/subtract/intersect/__eq
|
2018-09-07 14:44:54 -03:00 |
|
Gaspar Capello
|
336407fab6
|
Enhancement undo show tooltips option (fix #1827)
|
2018-09-06 15:26:42 -03:00 |
|
David Capello
|
3035820d39
|
Add script::ScopedEngineDelegate
|
2018-09-06 15:12:48 -03:00 |
|
David Capello
|
0e3be4ec91
|
Add Zughy-32 palette
|
2018-09-06 15:01:11 -03:00 |
|
David Capello
|
26d510fffd
|
Support more commands without UI
- BackgroundFromLayer
- CelOpacity
- LayerFromBackground
- RemoveLayer
|
2018-09-06 14:18:59 -03:00 |
|
David Capello
|
2cac540d34
|
lua: add cel.opacity getter/setter
|
2018-09-06 13:22:12 -03:00 |
|
David Capello
|
240a83b7a0
|
lua: add Layer.isTransparent/isBackground
|
2018-09-06 13:02:50 -03:00 |
|
David Capello
|
eb1ebfe728
|
lua: add app.fg/bgColor
|
2018-09-06 13:02:23 -03:00 |
|
David Capello
|
4dd57bd483
|
lua: show full filename when an assert() fails
|
2018-09-06 11:48:18 -03:00 |
|
David Capello
|
2fa07f17bf
|
Always run script tests
|
2018-09-05 19:40:07 -03:00 |
|
David Capello
|
f5b8675d77
|
Make NewLayer command available in non-UI compilation
|
2018-09-05 19:36:40 -03:00 |
|
David Capello
|
57aa2de6d9
|
Create submenus in File > Scripts for each directory in the user scripts/ folder
|
2018-09-05 14:21:11 -03:00 |
|
David Capello
|
674e108b00
|
Don't show the .lua extension in File > Scripts
|
2018-09-05 14:07:05 -03:00 |
|
David Capello
|
bc247395ca
|
Fix RunScript command description when a filename is specified
|
2018-09-05 14:03:45 -03:00 |
|
David Capello
|
798d6df5ff
|
Add File > Scripts menu
|
2018-09-05 13:35:13 -03:00 |
|
David Capello
|
e82847987f
|
Remove link to donate page in Help menu
|
2018-09-05 11:28:20 -03:00 |
|
David Capello
|
eb946438f5
|
lua: add __eq to some other metatables
|
2018-09-05 09:41:44 -03:00 |
|
David Capello
|
4a143cb902
|
lua: move user data fields to each class
|
2018-09-05 09:22:59 -03:00 |
|
David Capello
|
853415332b
|
NewLayer can be called in batch mode
|
2018-09-04 17:30:34 -03:00 |
|
David Capello
|
8ba664e306
|
lua: add Layer.isImage/isGroup properties
|
2018-09-04 17:30:18 -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
|
24b28ae064
|
lua: use push_new instead of push_obj with move ctor
|
2018-09-03 18:37:45 -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
|
c7a80f6530
|
Update clip module
|
2018-09-03 17:08:18 -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
|
b638aa3d6b
|
Define ENABLE_SCRIPTING in app AND main
main needs ENABLE_SCRIPTING definition so when we include "app/app.h"
the class includes the field for a script::Engine pointer.
|
2018-09-02 20:19:52 -03:00 |
|
David Capello
|
da6475aeac
|
lua: Add Selection:contains() function
|
2018-08-31 15:06:33 -03:00 |
|
David Capello
|
f971b6d1bd
|
lua: Add Selection.isEmpty property
|
2018-08-31 15:06:03 -03:00 |
|
David Capello
|
dcf99b7354
|
lua: Add Rectangle.isEmpty property
|
2018-08-31 15:05:27 -03:00 |
|
David Capello
|
3edc7c7b9a
|
Share scripting engine in the whole App instance life
|
2018-08-31 14:30:32 -03:00 |
|
David Capello
|
f292b4b96a
|
lua: Add Image:putImage() method
|
2018-08-30 23:21:44 -03:00 |
|
David Capello
|
edb1c7a7cb
|
Remove empty Params in Sprite_saveAs()
|
2018-08-30 22:49:09 -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
|
514180abfc
|
Minor rename SelectionObject -> SelectionObj
|
2018-08-30 20:18:36 -03:00 |
|
David Capello
|
5dd09187b3
|
Remove unnecessary if-condition from Selection_deselect()
|
2018-08-30 20:17:49 -03:00 |
|