Commit Graph

1003 Commits

Author SHA1 Message Date
David Capello
3e478d3efa Transform/scale/rotate multiple cels at the same time (fix #1148, #1172, #1238, #1364)
Requested in twitter, the forum, and in several other places and
frequently over all these years:
https://community.aseprite.org/t/scaling-multiple-frames-simultaneously/240
2019-09-05 15:03:13 -03:00
David Capello
ad1a39714e [lua] Add Image:resize() function
Closes: https://community.aseprite.org/t/3633
2019-08-13 18:16:30 -03:00
David Capello
f317f9594d Add support to use ColorQuantization from scripts 2019-08-12 16:42:30 -03:00
David Capello
35aaa18ee3 [lua] Add app.range.colors + Move/CopyColors commands
Closes: https://community.aseprite.org/t/2512
2019-08-10 14:37:18 -03:00
David Capello
744bd36408 Fix transparent color for sprites created w/NewSpriteFromSelection
Fixes https://community.aseprite.org/t/3629
2019-08-06 16:18:01 -03:00
David Capello
d32fd97da5 Replace base::SharedPtr with std::shared_ptr
We can remove our smart pointer (base::SharedPtr) as we're already
using C++11 compilers on all platforms.
2019-08-01 19:16:16 -03:00
David Capello
4264f199cd Create the ContextWriter+Tx from UI thread on filters (related to #2122)
When we create a Tx the active site is queried, and the UIContext
needs access to the UI to calculate the active site correctly.
2019-07-29 12:13:53 -03:00
David Capello
b5547251f5 We cannot create a ContextReader in the filter background thread
This is because ContextReader gets the activeSite, which (in case of
the UIContext) asks to the UI thread this information (app::Editor).
2019-07-26 12:06:21 -03:00
David Capello
f248d8ed65
Merge pull request #2117 from Gasparoken/refactor-sprite-size
Refactor sprite size command params
2019-07-26 10:49:54 -03:00
Gaspar Capello
3e1584e638 Refactor sprite size command params 2019-07-26 09:30:28 -03:00
David Capello
4c4c20ace6 [lua] Add support to use ColorCurve/ConvolutionMatrix commands from scripts 2019-07-25 22:23:38 -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
814250e325 Add support to call ReplaceColor from scripts when the UI is disabled (e.g. from CLI) 2019-07-16 16:36:09 -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
655ce92836 Use a Tx instead of a Transaction on FilterManagerImpl (fix #2108) 2019-07-15 14:30:59 -03:00
David Capello
1ae29dfc3c Check if the context can show the new layer name dialog 2019-07-10 12:45:53 -03:00
David Capello
757fadeaf0 Add New Layer via Cut/Copy commands (fix #1567) 2019-07-02 15:28:05 -03:00
David Capello
a0ebecca50 Make NewLayerCommand compilable when ENABLE_UI is not defined 2019-06-28 18:53:23 -03:00
David Capello
fe4106457f Add "Edit > Paste Special > Paste As New Sprite" option (fix #1024) 2019-06-28 18:51:14 -03:00
David Capello
ff6538a68e Add Edit > Paste Special > Paste As New (Reference) Layer (fix #672, fix #1748) 2019-06-27 15:34:56 -03:00
David Capello
056eb28670 Fix crash destroying temporal docs (e.g. adding new reference layer) 2019-06-25 15:53:31 -03:00
David Capello
8405add137 Fix error using an invalid crop_image() with Width < 1, Height < 1 when using New Brush with right-click outside the canvas bounds 2019-06-07 18:39:36 -03:00
David Capello
45a09f1a15 Disable keepEditedSpriteData checkbox if dataRecovery is disabled 2019-06-07 15:12:39 -03:00
David Capello
2a364c3ad2 Fix saving general.keep_closed_sprite_on_memory_for preference with decimals 2019-06-07 13:27:31 -03:00
David Capello
c7d1e4a472 New option to configure how much time we keep a closed sprite on RAM 2019-06-07 13:17:21 -03:00
David Capello
91665c62c3 Fix bug showing invalid warning in Edit > Pref when "keep edited sprite data lifespan" wasn't modified 2019-05-27 23:53:57 -03:00
David Capello
54883012bb Put "Reopen Closed File" and "Clear Recent Files" options inside "File > Open Recent" menu 2019-05-27 23:53:57 -03:00
David Capello
cdb98d4cd5 Add File > Reopen Closed File command 2019-05-27 23:53:57 -03:00
David Capello
1b62515cd2 Add "Recover Files..." option in Home tab
We've changed the way the "recover files" option works:
* Now it's an option that is always available (so we can open files
  even from sessions that were correctly closed in the past)
* We can open sessions from other Aseprite versions (as in a "best
  effort" approach, if it works, ok, if it doesn't -> contact user
  support)
2019-05-27 23:53:57 -03:00
David Capello
25cec1543c Fix "Repeat Last Export": params weren' filled with DocPref if ui=false
The "Repeat Last Export" command needs to copy DocPref to params, even
when the UI not used (also we must copy the DocPref to the params only
if sprite sheet type is not defined, which means that a script didn't
specify it).
2019-05-27 23:53:57 -03:00
David Capello
2eba51a62d Fix minor warning 2019-05-11 13:42:50 -03:00
David Capello
bd18248be9 Fix compilation when ENABLE_SCRIPTING is defined 2019-05-08 15:53:55 -03:00
David Capello
dd8a49a19c Add option to disable changing the display color profile depending on the current monitor 2019-05-08 10:55:56 -03:00
David Capello
e8716cbb6e Improve context bar for slice tool (combobox of slices + action buttons) 2019-05-07 10:28:37 -03:00
David Capello
73de6c8b1d Add ability to edit multiple slices
Related to #721 and #1651, still need more work to give a better UX to
edit static and animated slices.
2019-05-02 16:26:13 -03:00
David Capello
e197a8670c Add an option to trim areas outside the canvas bounds on Sprite > Canvas Size (fix #1111) 2019-04-23 14:40:26 -03:00
David Capello
bbba80c809 Modify Canvas Size to be more "tool like" (easier to change the edges size, C keyboard shortcut) 2019-04-22 15:57:45 -03:00
David Capello
d24fc0a93a lua: Add Sprite:flatten() 2019-04-17 15:00:51 -03:00
David Capello
17895dce69 Support MergeDownLayer when ENABLE_UI is not defined 2019-04-17 00:16:52 -03:00
David Capello
dba3f3cdfb Minor improvement in ChangePixelFormat dialog
Moved the progress bar in other at the left of the OK button and the
progress bar appears only if we have to report a progress value > 0
2019-04-17 00:07:33 -03:00
David Capello
9746a30564 Convert place field of outline command into a ButtonSet 2019-04-16 18:12:07 -03:00
David Capello
266352cfec Use fgColor by default on Outline filter always 2019-04-16 17:55:31 -03:00
David Capello
8551fbda26 Add possibility to select any matrix to run the OutlineFilter 2019-04-16 17:54:42 -03:00
David Capello
11c8ba3605 Fix merging down linked layers (https://community.aseprite.org/t/2894) 2019-04-13 17:19:29 -03:00
David Capello
61d1e7c46c Add Horizontal and Vertical outline options in OutlineCommand 2019-04-11 23:21:14 -03:00
David Capello
c690747bd2 Improve color conversion preview without clearing the old image
It is better for continuous preview feedback to keep the old image so
the new preview result is painted above the old one (and there is no
flicker effects).
2019-04-03 21:19:44 -03:00
David Capello
109e6fa205 Add render::Dithering() class to store all dithering parameters 2019-04-03 19:32:24 -03:00
David Capello
fcf272bb69 Add amount parameter to Error Diffusion algorithm 2019-04-03 18:45:18 -03:00
David Capello
02aa8f2205 Fix using UI widgets from background thread on ChangePixelFormat + merge layers checkbox 2019-04-03 11:34:36 -03:00
David Capello
495058e8ff Save last used dithering algorithm converting RGB -> Indexed 2019-04-03 11:05:54 -03:00