Commit Graph

6324 Commits

Author SHA1 Message Date
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
Gaspar Capello
7b4609d2d1 Fix move symmetry when zoom tool is active (fix #1845) 2018-08-30 18:13:03 -03:00
Gaspar Capello
6eaebefb90 Minor changes functions newLayer and newGroup 2018-08-30 18:10:45 -03:00
David Capello
492f1954a1 Update submodules 2018-08-30 18:03:30 -03:00
David Capello
1be9a80ae6 Update libarchive 2018-08-30 17:48:40 -03:00
Gaspar Capello
93d0b94929 Enhancement new layer below (issue #1822) 2018-08-30 13:31:48 -03:00
David Capello
03d363d1a6 Use ninja in travis 2018-08-29 11:47:06 -03:00
David Capello
dcc4abdeeb Run tests with xvfb-run (not cmake) 2018-08-29 11:05:17 -03:00
David Capello
d930f01ccb Update laf module 2018-08-29 10:24:35 -03:00
David Capello
3bfc029ebf Add dependencies for Fedora 2018-08-29 10:24:13 -03:00
David Capello
039e064d6b ui library doesn't depend on pixman directly
ui-lib depends on laf-gfx which already depends on pixman.
2018-08-29 10:23:15 -03:00
David Capello
9e5f026581 Update freetype module 2018-08-27 14:08:49 -03:00
David Capello
256c00747b Add ENABLE_ASEPRITE_EXE option 2018-08-27 11:48:33 -03:00
David Capello
f110132222 Travis should fail if tests fail 2018-08-24 19:14:20 -03:00
David Capello
13daafa56e Fix include directory for cmark.h 2018-08-24 19:13:50 -03:00
David Capello
0f18365d48 Update freetype module 2018-08-24 18:31:25 -03:00
David Capello
217ee45652 Update submodules 2018-08-24 18:29:31 -03:00
David Capello
4faa875cef Set LAF_OS_BACKEND only if it's not specified 2018-08-24 18:27:19 -03:00
David Capello
1b5fd7ccef Add ENABLE_NEWS and disable curl if it's not needed 2018-08-24 18:24:05 -03:00
David Capello
44a713a693 Change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR in some cases 2018-08-24 18:20:08 -03:00
David Capello
abcd7bdf2e Add GEN_EXE var to customize code generator 2018-08-24 18:06:22 -03:00
David Capello
d4674e981a Compile lua only if ENABLE_SCRIPTING is enabled 2018-08-24 17:53:08 -03:00
David Capello
f8cb1db917 Remove webserver (never used) 2018-08-24 17:39:51 -03:00
David Capello
0fe4586bab Minor update in readme files 2018-08-23 17:49:20 -03:00
David Capello
070a6dcb42 Some changes in INSTALL instructions 2018-08-23 17:35:05 -03:00
David Capello
860edf6439 Merge branch 'os' (related to #139) 2018-08-23 17:27:52 -03:00