128 Commits

Author SHA1 Message Date
David Capello
3e391670b9 Fix preview of certain tools in tiled mode (fix #2145)
Fixes #2145 and https://community.aseprite.org/t/3833
Regression introduced in: 6a88713213403179fb04938a99085e60bad7e873
2019-09-05 18:04:38 -03:00
David Capello
e9d8392a46 lua: Several app.useTool() calls can be used in one transaction now (fix aseprite/api#18) 2019-06-28 16:44:52 -03:00
David Capello
85ce7eea6e Fix compilation error when ENABLE_UI is undefined 2019-05-08 19:18:19 -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
40957c196f Minor refactor adding ToolLoop::onSliceRect() 2019-04-30 16:42:15 -03:00
rscotchmer
a08cfa9e13 Added support for 4 and 8 connected pixel fill method in paint bucket 2019-04-29 23:29:17 -03:00
David Capello
5cf762c9cf lua: Fix app.useTool() tests when we run in batch/non-UI mode
* Tools must use the default configuration when we run in -batch mode
* Fixed app_get_current_pixel_format() when ENABLE_UI is disabled so
  the color= parameter of app.useTool{} depends on the activeSprite
  color mode
2019-04-24 18:31:43 -03:00
David Capello
8a821c83fd lua: Add Brush class and app.useTool{ brush } parameter 2019-04-18 22:33:48 -03:00
David Capello
2812a95f1e lua: Add params to app.useTool() to change the cel where we'll draw 2019-03-23 16:34:51 -03:00
David Capello
3ec3f75d91 Add radial gradient
Related to:
* https://steamcommunity.com/app/431730/discussions/1/3182216552785250054/
* https://community.aseprite.org/t/radial-gradient/2711
* part of #1629
2019-03-19 20:54:25 -03:00
David Capello
33c6fc5f40 lua: Fix tools tests when ENABLE_UI is not defined 2019-03-18 13:30:17 -03:00
David Capello
1cb5949e9b lua: Add app.drawWithTool() function 2019-03-15 17:03:02 -03:00
Gaspar Capello
f53544842c Fix non-normal blend modes when the backdrop is transparent (fix #1096) 2019-03-09 12:40:31 -03:00
David Capello
6a1a21726e Show modified regions correctly in ToolLoop on visible areas in non-active editors
Regression introduced in 6a88713213403179fb04938a99085e60bad7e873
2019-02-21 08:20:00 -03:00
David Capello
6a88713213 Avoid validating hidden areas while we're in the tool loop for tools like line/square/ellipse, etc. 2019-02-20 17:29:20 -03:00
David Capello
e960a79a87 Move dirty area from ToolLoop impl to ToolLoopManager 2019-02-20 11:17:09 -03:00
David Capello
7594ebf25b Generate selection boundaries automatically after transactions
Now Transaction::commit() will regenerate mask boundaries
automatically if in the middle of the transaction the document
selection was modified. This is the first step to finally remove
update_screen_for_document() and any kind of manual screen
refresh.

This will be useful for scripting functions that modify the selection
too, because we wouldn't need to regenerate the selection boundaries
automatically from the script or from app.refresh() Lua function.

Related to #378
2019-02-15 17:14:44 -03:00
David Capello
fe9f8bc468 Add option to disable the alert about drawing with fg/bg index out of bounds 2018-09-13 10:53:14 -03:00
David Capello
f2ed45e795 Replace base::UniquePtr -> std::unique_ptr 2018-08-08 17:27:26 -03:00
David Capello
8d3da46ac9 Rename DocumentReader/Writer -> DocReader/Writer 2018-07-14 22:49:22 -03:00
David Capello
9c79ea2b77 Rename app::Document -> Doc 2018-07-07 11:54:44 -03:00
David Capello
ac7e48d92d Rename DocumentUndo -> DocUndo 2018-07-07 02:55:27 -03:00
Gaspar Capello
dd82f6bbcc Add option to disable auto show selection edges (fix #1614) 2018-04-20 10:56:27 -03:00
David Capello
76aee61eae Fix drawing straight lines w/Pencil tool and Shift+right button
https://community.aseprite.org/t/eraser-tool-right-click-shift-should-work/726
2017-11-27 13:54:27 -03:00
David Capello
29c2c0cd90 Fix status bar position depending on the tiled mode 2017-11-10 15:04:09 -03:00
David Capello
a9b183729f Translate all alerts to the en.ini file (#124) 2017-10-17 18:00:45 -03:00
David Capello
750f0c52af Keep original pattern origin for custom brushes
With this patch we avoid resetting the original pattern
origin when we use "align to destination" or "paint brush"
modes.
2017-10-06 10:23:03 -03:00
David Capello
e372967cde Fix bug using brush size on selection+snap to grid
Discussion: https://community.aseprite.org/t/snap-to-grid-problem/292
2017-08-08 14:31:27 -03:00
David Capello
3f5bfa6d99 Remove unnecessary asserts from create_tool_loop() 2017-06-22 19:04:44 -03:00
David Capello
a517ed2fff Minor change in ToolLoopBase() ctor 2017-06-19 17:39:08 -03:00
David Capello
265d18635c Pencil: Shift key shows a real-time preview of a straight line (#1387) 2017-06-16 16:28:48 -03:00
David Capello
34e794519c Fix reset last drawn point on undo/redo for draw line behavior (fix #1005) 2017-06-16 12:18:22 -03:00
David Capello
ae67cab015 Add dithering options for Gradient tool (#418) 2017-05-23 20:41:30 -03:00
David Capello
76df84491e Support horizontal/vertical symmetry at the same time (fix #1190) 2017-03-27 15:27:37 -03:00
David Capello
add0c81260 Add guides/slices options in preference dialog
Also moved guide/slice colors to global preferences (instead of pref per document).
2017-03-25 01:01:59 -03:00
David Capello
fb64d5406a Add some colors for cel edges/guides in doc pref 2017-03-23 20:23:25 -03:00
David Capello
643cad5c97 Add basic implementation of slice tool (#721) to modify theme parts
It still need support to export to .aseprite-data as <slice> XML elements, and animation support.
2017-03-06 19:27:43 -03:00
David Capello
6ce73a831a Don't allow draw/modify reference layers 2016-10-17 13:49:28 -03:00
David Capello
e46d453356 Merge branch 'master' into beta 2016-09-23 13:21:51 -03:00
David Capello
b75d87c5fc Fix glitches with 'on sprite crosshair' after modifying sprite areas 2016-09-23 10:28:15 -03:00
David Capello
d4c4cb5f72 Fix graphical glitches while painting (fix #1262) 2016-09-22 20:16:14 -03:00
David Capello
20b726f73b Merge branch 'master' into beta 2016-08-31 19:53:52 -03:00
David Capello
5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello
ac20d1edfc Fix some commands/editor states to check parent group editable/visible state too 2016-06-15 15:27:38 -03:00
David Capello
37209a0f5b Add pixel ratio support to the Editor & Render 2016-05-23 19:22:02 -03:00
David Capello
b2b2edb4bc Remove unused field ToolLoop::zoom() 2016-05-23 17:29:44 -03:00
David Capello
975c1bd0a5 Remove reference to the old raster::Dirty object 2016-05-05 15:25:19 -03:00
David Capello
0f3dea233b Fix problems using paint bucket referring to all layers and cels origin != 0,0
With this change we've simplified several portions of the ToolLoop code
where the "cel origin" is added and then subtracted needlessly.
2016-05-04 00:02:56 -03:00
David Capello
6dc9bb984d New option for paint bucket using all layers as reference/stop fill (fix #969) 2016-05-03 15:31:27 -03:00
David Capello
640025e84b Fix selection UX to show white/black negative for the stroke
With this patch now we can use the selection tool in locked or hidden
layers, because the selection doesn't modify the layers (only the
selection). Also we can use the selection tool on any layer and we'll
always see the feedback stroke/shape/rectangle while we're creating
the new selection.
2016-05-02 18:42:02 -03:00