Commit Graph

9526 Commits

Author SHA1 Message Date
David Capello
557b22a719 [lua] Sprite:newTileset() uses sprite grid size by default (fix #4116) 2023-10-30 13:45:11 -03:00
David Capello
bb60da8c60 [lua] Make Sprite:newTileset(Rectangle) work (fix #4117) 2023-10-30 13:40:12 -03:00
David Capello
43079b226d [lua] Limit the possibility to create a tileset with origin != 0,0 (fix #4118) 2023-10-30 12:35:08 -03:00
Martín Capello
26523156da Improve script engine's exception handling
More details about the implications of this change can be found
in https://github.com/aseprite/aseprite/pull/4057
2023-10-26 11:24:51 -03:00
David Capello
56d293bff5 Update submodules (fix #4102) 2023-10-25 16:40:20 -03:00
David Capello
9800d0ba1a Support scaling down bits (e.g. from 10 to 8) with scale_xbits_to_8bits() doing a bit shift 2023-10-25 16:38:23 -03:00
David Capello
4387432ad3 Take some tests out from a loop they don't depend on 2023-10-25 11:59:28 -03:00
David Capello
dbb89b02a9 Rename scale_xxbits_to_8bits() -> scale_xbits_to_8bits() 2023-10-25 11:57:38 -03:00
David Capello
ae3b2dd144 Revert timeline behavior to the v1.2 default (#4024)
This change was introduced in dd7e27a098
as a possible fix for #4024, but the change is too disruptive to be
introduced at this stage, we need some extra UI elements to make the
drag & drop accessible in both modes: the default v1.2 behavior, and
a possible new selection mode, e.g. #1498
2023-10-25 08:36:54 -03:00
David Capello
83b1acac7c [x11] Update clip module to fix a problem pasting text to some text editors 2023-10-24 17:21:35 -03:00
Dariy Guzairov
ea35725c85 Fix disable delete layer button when only one layer exists (fix #3649) 2023-10-23 19:16:35 -03:00
Martín Capello
fc29686bb2 Prevent crash when in Auto or Stack mode the user tries to move pixels from a tilemap with inexistent tiles (fix #4071) 2023-10-12 14:22:18 -03:00
Nicolás Pinochet
4fc36aaf02 respect slice keys frame number on ase file format (fix #4062) 2023-10-11 18:18:30 -03:00
David Capello
f6db44b81d Fix std::clamp() assert in Manager::onInitTheme() 2023-10-11 15:05:10 -03:00
David Capello
eea59a58dd Minor fix in new timeline button in the toolbar (#4081, #4092)
The button was being painted with "toolbutton_last" part instead of
"toolbutton_normal" when it wasn't highlighted/in "hot" state.
2023-10-11 15:03:39 -03:00
David Capello
cf19b51226 Add new icon for the button to switch the timeline visibility (#4081, #4092) 2023-10-11 14:58:15 -03:00
Akylzhan
4f73b14f8f Add Timeline visibility button to Toolbar, extracted button draw logic to separate member function 2023-10-08 05:58:49 +06:00
Rowan Douglas
27ec013f8b
fixed time duration not including ending frame 2023-10-05 14:00:06 +01:00
David Capello
3f101d48d4 Add more accessible option to re-enable the Aseprite file dialog (fix #4051)
As now the native file selector is the default one, we moved the
option to re-enable the previous file selector to Edit > Preferences >
General > Show Aseprite file dialog option.

Related to #3615 and added as a simple alternative to #2745 which
require native widgets on each native file dialog.
2023-10-04 16:57:11 -03:00
David Capello
5a59ed32c1 Update laf module
New changes required for #3684/#4063 to trigger mouse buttons with
keys correctly.
2023-10-02 20:06:28 -03:00
Ashray Shah
4f3cf9375e Clarify Windows instructions for 64-bit Skia 2023-10-02 09:55:25 -03:00
David Capello
63fb39e0e8 Fix sprintf() warnings using snprintf() or fmt::format() 2023-09-27 19:57:41 -03:00
David Capello
5e34ae0ce2 Fix unused variable warnings 2023-09-27 19:57:41 -03:00
Martín Capello
8b747b4d09 Show brush preview for custom brushes when using Paint Bucket tool (fix #4052) 2023-09-26 14:57:11 -03:00
Andrés Colón
6c06a48456 Update INSTALL.md
Including all the steps for the ARM version of the mac install instructions, rather than partial steps.
2023-09-26 10:46:44 -03:00
Gaspar Capello
6c3ff21354 Fix Full Preview and Edges setting on Cursors preferences (fix #3188) 2023-09-25 18:38:03 -03:00
Martín Capello
74d4154657 Set GraphicsContext.palette automatically when a Sprite's indexed image
or tileset's tile indexed image is drawn
2023-09-25 18:30:36 -03:00
Martín Capello
d777a9a325 [lua] Add GraphicsContext.palette property to set the palette used to draw indexed images 2023-09-25 18:30:36 -03:00
Martín Capello
54116a9550 Use transparent color when the source indexed image uses mask color (fix #3960) 2023-09-25 18:30:36 -03:00
Martín Capello
94b5158a5d Fix blend mode usage for GraphicsContext:drawImage(image, x, y) (fix #3960) 2023-09-25 18:30:36 -03:00
Michał Janiszewski
19b54ffd4e
Use ccache on macOS
Originally (#2699) ccache was only enable for Linux due to suspiciously low
macOS yields.

I have addressed the likely issue upstream
(https://github.com/hendrikmuhs/ccache-action/pull/147) and ccache can be used
on macOS now as well.
2023-09-25 20:11:52 +02:00
Michał Janiszewski
af19d81806 Include build type in ccache key
This should lead to better cache utilisation, smaller caches
2023-09-25 11:13:49 -03:00
Gaspar Capello
bcbe61c882 Fix border padding on the right and bottom sides not being placed (fix #3993)
Prior to this fix, border padding was clipped to the edge of sprites
on the right and bottom in all export sprite sheet types.

This commit includes tests for 'Export Sprite Sheet' command using
shape padding, border padding, inner padding with 'Packed' sheet type
+ 'Trim Cels' = true.
2023-09-22 16:33:19 -03:00
Gaspar Capello
a0331743de Fix Color Range uses last active selection instead of active selection (fix #4045) 2023-09-20 11:44:23 -03:00
Gaspar Capello
db0bc5c6bb Fix F6 shortcut to show the timeline thumbnail by default (fix #4020)
Before this fix, when the thumbnail size was 1, the "Toggle Timeline
Thumbnails" command (F6 key) seemed to not work until we changed
the timeline thumbnail size to 2 or more.
2023-09-20 11:43:43 -03:00
Gaspar Capello
aca8621bff Fix pattern Fill does not "Align to Destination" (fix #2528) 2023-09-20 09:56:01 -03:00
Martín Capello
ba99f41d82 [lua] Add "focus", "enabled", and "visible" common properties to tabs 2023-09-19 14:53:47 -03:00
Gaspar Capello
60233ba144 Changed the "Same in all tools" behavior (fix #4007)
Now:
1) If some dynamics are set and the "Same on all tools" box is
unchecked, when we check it, aseprite will copy the active
configuration as shared values.
2) If "Same on all tools" is checked, and we uncheck it, aseprite
will copy shared values to the active tool settings (without touching
other tools), in this way the visible options of the active tool
won't be modified.
2023-09-19 14:27:24 -03:00
Gaspar Capello
5968440f90 Add memorization of tool-shared dynamics options (fix #4007) 2023-09-19 14:27:24 -03:00
David Capello
d8814fa2f9 Add option to avoid drag & drop timeline range from edges
Related to #1498 in some way to start enabling new selection modes in
the timeline.
2023-09-19 12:07:14 -03:00
David Capello
e2d8ffab54 Add reset buttons + tooltips to timeline range options (#4024) 2023-09-18 17:33:38 -03:00
David Capello
ce6494d5f2 Add XML indentation style in EditorConfig file 2023-09-18 17:30:19 -03:00
David Capello
dd7e27a098 New (default) options to customize timeline range selection (fix #4024)
Now a single click will not enable the range, using Shift+click or
dragging the mouse will enable the range of multiple
layers/frames/cels by default (but there are new options to go back to
the previous behavior or customize this behavior in an extensive way).
2023-09-15 19:53:31 -03:00
Gaspar Capello
3f8a8662fe Fix respect snap to grid when we move the selection (fix #4021) 2023-09-14 13:03:15 -03:00
Martín Capello
709545c57e Avoid showing an alert (fired by the default clipboard error handler) when asking if the clipboard has a native bitmap (fix #4016) 2023-09-14 12:57:19 -03:00
Gaspar Capello
7b302794f9 Fix incorrect brush preview when Snap to Grid is active (fix #3743) 2023-09-14 12:33:21 -03:00
Gaspar Capello
6c34be5eb6 Fix initial folder for File > Save with the last one visited (fix #3996)
Regression added in 056073b3f1 in the
custom file selector. Every time you saved a new sprite the dialog
started at the root path (e.g. Desktop) instead of the last used
directory.
2023-09-14 12:31:28 -03:00
David Capello
4b716255e8 Fix typo in extra paint bucket options popup (#4041) 2023-09-14 11:02:15 -03:00
David Capello
b64021ffb2 Add an initial EditorConfig 2023-09-13 10:36:38 -03:00
Martín Capello
815366d385 [lua] Add support to modify tabs buttons via Dialog:modify 2023-09-12 17:21:00 -03:00