Commit Graph

9250 Commits

Author SHA1 Message Date
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
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