Commit Graph

9526 Commits

Author SHA1 Message Date
David Capello
dec9bddd99 Fix button width when the text is too long due the translation or font (fix #4160) 2023-11-22 10:40:51 -03:00
David Capello
eafb779ef0 Possible fix to some RotSprite crashes (#2780) 2023-11-21 12:58:31 -03:00
TakWolf
55e65a1f8b Description object error 2023-11-20 20:10:59 -03:00
TakWolf
77ea4d40b8 Fix strings spelling typo: Difussion -> Diffusion. Notice, this is not compatible for translations. 2023-11-20 20:10:59 -03:00
David Capello
cbe14089af Enable FineControl for selection transformation only if we press the Ctrl key again (fix #3977)
Reimplement #3977 and #3990
2023-11-20 20:02:24 -03:00
David Capello
a27ea04f7d Revert "Fix after dropping a selection via Copy (Selection + Ctrl), handlers are not positioned correctly (fix #3977)"
This reverts commit 456113d015.
2023-11-20 16:38:12 -03:00
David Capello
fee543f9e1 Add option to disable Snap to Grid by default when we move the selection (fix #4153) 2023-11-20 15:19:38 -03:00
David Capello
8af4747635 Use configured dynamics of active tool w/o opening dynamics popup (fix #4151) 2023-11-20 14:50:52 -03:00
David Capello
cc0f8d0dc4 [lua] Fix crash calling io.open() without argument (fix #4159) 2023-11-20 14:34:50 -03:00
David Capello
1a3c32a93d Fix typo in en.ini file: extra " char (fix #4148) 2023-11-17 14:40:01 -03:00
David Capello
340ed3f68f Fix crash making a tileset bigger and pressing Remap (fix #4144)
This happens only if the tilemap already has tile references outside
the valid range of the tileset (and even bigger than the new tileset
size).
2023-11-15 20:58:00 -03:00
David Capello
a6d9dce339 Update About dialog copyright year 2023-11-15 20:38:32 -03:00
David Capello
1311944667 Add option to enable the Snap to Grid option for the brush preview (fix #4137) 2023-11-15 20:30:58 -03:00
David Capello
edb2393690 [osx] Fix mouse misalignment and show tabs area again when Screen Scaling=100% (fix #4142)
Originally reported here:
https://steamcommunity.com/app/431730/discussions/0/3954784199573459745/
2023-11-15 19:59:41 -03:00
David Capello
f92f14f261 Fix possible crash adding reference layer (fix #3949) 2023-11-13 10:51:19 -03:00
David Capello
d39a656bb4 Merge branch 'flip' (fix #3603)
Implemented a specific item of tilemap feature (#977) to allow flipped
tiles in X/Y/Diagonal axes.
2023-11-13 09:31:20 -03:00
David Capello
62bdd8af9f Add "Advanced Options" checkbox in Tileset selector
To hide "Base Index" & "Allowed Flips" options by default.
2023-11-10 17:19:41 -03:00
David Capello
a56c801041 Move the timeline button in the toolbar to the bottom 2023-11-10 15:42:52 -03:00
David Capello
dd5fb871b5 Remap tiles with flags correctly 2023-11-10 11:55:23 -03:00
David Capello
7f2d2185bd Add a workflow to close spammy PRs
First attempt, not sure if this will be useful at all.
2023-11-10 10:42:46 -03:00
David Capello
25015a6e18 Fix eyedropper in Tiles mode to pick tiles that are flipped and have masked areas
Sprite::pickCels() wasn't taking care of the tile flags to pick
tilemap layers correctly with flipped tiles.
2023-11-09 16:44:46 -03:00
David Capello
302d998218 Add support to match flipped tiles automatically in Auto/Stack modes
By default Aseprite will not try to match flipped versions of the
tiles (as it requires more CPU), but when we create a tileset we can
specify which flips can be matched automatically (new
Tileset::matchFlags() property).

These flags are just for the Auto mode, if we manually insert a
flipped tile, that is always supported, even when the matchFlags() are
not specified.
2023-11-09 16:44:46 -03:00
David Capello
25f61ff5f9 Fix bug w/auto tileset mode adjusting tiles when we replace a unique instance of a tile+flag with a new tile
The assert() in remove_unused_tiles_from_tileset() checking for the
tiles histograms was failing because we weren't adjusting the
histogram correctly when a tile w/a flag is replaced w/another without
flags.
2023-11-09 16:44:46 -03:00
David Capello
ed649e6bab Add Space+X and Space+Y alternatives to flip brush/tile flags
We already have Space+H and Space+V, but as the flags are XYD probably
Space+X/Y makes more sense.
2023-11-09 16:44:46 -03:00
David Capello
34bd6cf336 Show tile flags in the editor canvas when we use Ctrl key/move tool
Added build_tile_flags_string() utility to create the string used in
to show the tile flags (XYD) on the status bar, the editor canvas,
etc.
2023-11-09 16:44:46 -03:00
David Capello
75b10d40be Remove unused variable in lambda function 2023-11-09 16:44:46 -03:00
David Capello
39bdba4a7d Fix assert converting Color{index} to a tile from tilemap.lua test
We must be able to convert a app::Color::IndexType to a tile index.
2023-11-09 16:44:46 -03:00
David Capello
78cda70ab6 Add support to flip/rotate tiles to ChangeBrush command (like #1222) 2023-11-09 16:44:46 -03:00
David Capello
5760b96708 Fix painting with tiles and flags 2023-11-09 16:44:46 -03:00
David Capello
20826e8730 Fix tile information (index/flags) in StandbyState 2023-11-09 16:44:46 -03:00
David Capello
b7de90a82b Fix eyedropper for tiles w/flags when picking colors from "Current Layer" 2023-11-09 16:44:46 -03:00
David Capello
0796d3732c Fix painting on flipped tiles in manual mode 2023-11-09 16:44:46 -03:00
David Capello
3606a54826 Fix eyedropper to pick colors/tiles correctly from flipped tiles
* Added a new app::Color type for tiles, to store the flags of the
  picked tile.
* Fixed color bar/status bar with a new draw_tile() to draw tiles
  with flip flags.
2023-11-09 16:44:46 -03:00
David Capello
d3a8a10517 [lua] Add test about saving/loading/modifying tilemap w/flags
Something interesting is that Image:drawPixel() must ask for a rehash
to the tileset when the tile is modified, maybe we can find a better
way to handle this in the future.
2023-11-09 16:44:46 -03:00
David Capello
b43fbe2249 Add simple rendering of tiles w/flags (x/y/d flip) 2023-11-09 16:44:46 -03:00
David Capello
d114b62483 New tile flags meaning (x/y/diagonal flip) + serialize then correctly
* Changed the "90cw" flag to "diagonal flip" (the tile should be
  rendered with X/Y axis switched in this case)
* Each time we read/write an .aseprite file we have to convert
  the mask/shift from the file to the values expected in
  memory (tile_f_xflip/yflip/dflip)
2023-11-09 16:44:46 -03:00
Gaspar Capello
309a64de9f Fix export sprite sheet to RGB is not exporting the palette (fix #3881) 2023-11-09 12:16:53 -03:00
David Capello
81b5378f25 Minor refactor to set DitheringSelector combobox size hint (#4001, #4075)
Changed the required size to its minimum (6 instead of 8).
Minor refactor from 1c3224a716

All these values are hard-coded in DitherItem (so we cannot use
theme-related values yet for this).
2023-11-08 16:55:12 -03:00
ChikenUni
1c3224a716 Fixed unnecessary scrollbar in X dimension for dithering selector dropdown.
Added offset to dithering selector dropdown width to avoid X dimension scrollbar obscuring the bottom of the dropdown. This also removes the need for a vertical scrollbar for the generic number of dithering options.
Related to Issue #4001
2023-11-08 16:29:08 -03:00
David Capello
9885b89987 Possible fix for crash reports re-opening IntEntry popup when it's already open (fix #4124) 2023-11-07 17:21:35 -03:00
David Capello
853e10e483 Log UUID when -debug option is specified (fix #4104)
In this way, in some cases, we could ask to the user for the -debug
report and match some Sentry crash report with the user.
2023-11-06 19:59:20 -03:00
David Capello
8da8473c63 Minor comment in AppOptions::VerboseLevel 2023-11-06 19:43:24 -03:00
Dariy Guzairov
9772534ca5 Fix error message when attempting to delete layer in a group (fix #4083)
If the sprite contained only one layer group, and we tried to delete
one child, we got an error message about "You cannot delete all
layers". This fixes this (the error message is only when we delete the
last top level layer).
2023-11-06 16:23:59 -03:00
David Capello
53f0cd665f Update laf module 2023-11-03 16:34:00 -03:00
David Capello
67d5314f0c Fix crash deleting layers while using "Change Layer" w/scroll wheel (fix #4114)
E.g. If we configure Shift+scroll wheel to "Change Layer" action, and
Shift+J to delete a layer, we can press Shift key and move through
layers with the mouse whell while we press the Shift key, and if we
press J (without releasing the Shift) start deleting layers. At some
point a crash will happen.
2023-11-03 11:29:37 -03:00
David Capello
ca8c970c5d Remove ';' chars from lua tests 2023-11-02 14:30:36 -03:00
Martín Capello
3cfa5ef1da [lua] Fix crash when saving tilemap's cel image (fix #4069) 2023-11-02 14:12:55 -03:00
Martín Capello
4a22518c3d Show custom pattern brushes for Paint Bucket (fix #4053) 2023-11-02 12:30:52 -03:00
David Capello
2f2db40062 EditorConfig: Don't use tabs in .md files 2023-10-31 20:05:01 -03:00
David Capello
508c6c755d Update clip submodule 2023-10-30 15:43:25 -03:00