Commit Graph

7521 Commits

Author SHA1 Message Date
David Capello
430b493e89 Don't show brush edges in BrushPreview::FULLALL when we're in DrawingState
Fixes issue from 8b6116911d
2020-08-03 20:13:34 -03:00
David Capello
49c4534a95 Fix isometric lines when snap angle + from center modifiers are used 2020-08-03 20:09:56 -03:00
David Capello
b95f96f645 Don't use fixes for line brush when the brush size = 1 2020-08-03 20:07:25 -03:00
David Capello
7355d0e2db Add minor checks of .ase header 2020-08-03 17:33:15 -03:00
David Capello
1470108fff Add support to load sprites without extension (identified only by their content) 2020-08-03 17:32:13 -03:00
David Capello
cd21d33fe7 Add missing #includes 2020-08-03 17:19:23 -03:00
David Capello
d97565e4e0 [lua] Fix app.command.SetInkType{ type=... }
Related to https://community.aseprite.org/t/6532/3
2020-08-03 13:52:41 -03:00
David Capello
5edf30687b Add File > Scripts > Rescan option to rescan the available scripts
https://community.aseprite.org/t/6170/6
2020-08-03 13:51:40 -03:00
David Capello
8b6116911d Add extra options to show brush preview with Eraser/Blur/etc. tools
Feature request: https://community.aseprite.org/t/6427
2020-08-03 12:12:52 -03:00
David Capello
d8f6c666de Merge branch 'beta' into tilemap-editor 2020-07-30 16:49:17 -03:00
David Capello
20d763ca4b Merge branch 'master' into beta 2020-07-30 16:48:43 -03:00
David Capello
8c0f81cbba Improve handling of image sequences when dropping files or opening multiple files
Now we can repeat the same action (Agree/Skip the all sequence of
images) for all the dropped files/selected files in the "Open File"
dialog (as in the CLI new behavior).
2020-07-30 16:27:23 -03:00
David Capello
1255b17738 Fix opening image sequences more times from CLI
We've also fixed the Agree/Skip dialog to show a checkbox and repeat
the same action for all image sequences.

Fixes:
https://github.com/aseprite/aseprite/issues/2128
https://github.com/aseprite/aseprite/issues/1936#issuecomment-451565903
2020-07-30 14:33:27 -03:00
David Capello
4cc2c6188d Fix cycling through palette indexes when Edit Mode is on
https://community.aseprite.org/t/6500
2020-07-29 19:24:07 -03:00
David Capello
63460ef9dc Support to encode 1bpp .bmp indexed images
Simplified a little the code merged in #2473

Related issues:
https://github.com/aseprite/aseprite/issues/210
https://github.com/aseprite/aseprite/issues/2472
https://community.aseprite.org/t/3892
2020-07-29 13:46:26 -03:00
David Capello
e9ba49bb9a Fix crash saving grayscale bmps 2020-07-29 11:14:30 -03:00
David Capello
35e7483ed5 Minor change BmpFormat::onSave()
Use "w" and "h" instead of "image->width()/height()"
2020-07-29 11:13:44 -03:00
MacSpain
2d5b080b1f Added saving 4-bit images 2020-07-29 10:07:35 -03:00
David Capello
0f328e1599 Change the number of colors when loading a .bmp file 2020-07-28 18:16:07 -03:00
David Capello
7a534b0a4e [lua] Add Sprite{ fromFile="...", oneFrame=true } to load just one frame 2020-07-28 17:41:01 -03:00
David Capello
11324c207d [lua] Minor changes 2020-07-28 17:40:43 -03:00
David Capello
c4ed8c1450 [lua] We cannot detect existent keys with nil in a table (they aren't added to the table)
All non-existent keys return nil (and nil keys are not added when the
table is created, so we cannot even iterate the table to search for
keys like "always" or "sRGB"). The only solution is assigning a
non-nil value, e.g. { always=true }, { sRGB=true }, etc.
2020-07-28 17:40:19 -03:00
David Capello
c6b42173cd Add some checks to BmpFormat::onLoad() to avoid crashing on some invalid .bmp files 2020-07-28 11:36:16 -03:00
David Capello
7656627605 [lua] Fix calling onclose Dialog event when we close the app (fix https://github.com/aseprite/api/issues/28) 2020-07-28 10:35:38 -03:00
David Capello
2a48c688e2 Fix playback of same tag when adding new frames (fix https://community.aseprite.org/t/6486) 2020-07-27 18:17:48 -03:00
David Capello
0c0510b3b1 Update laf (don't ask info to wintab when -verbose/-debug mode are disabled) 2020-07-27 17:05:43 -03:00
David Capello
866d614737 [lua] Add "ui" and "bounds" params to CanvasSize (fix https://community.aseprite.org/t/4319) 2020-07-27 17:04:17 -03:00
David Capello
4dfed179fb [lua] Fix crash undoing Sprite:newCel() in background layers 2020-07-22 14:19:11 -03:00
David Capello
0bae04f40b Merge branch 'beta' into tilemap-editor 2020-07-21 17:12:09 -03:00
David Capello
a1a6752adf Merge branch 'master' into beta 2020-07-21 17:11:01 -03:00
David Capello
0c194adef6 Fix auto cel guides painting of right and lower sides 2020-07-21 16:56:23 -03:00
David Capello
ce06b55894 Receive a ui::Graphics in TransformHandles::drawHandles()
Instead of using a ScreenGraphics.
2020-07-21 16:43:36 -03:00
David Capello
06bf7eca2c Use fmt::format() instead of base::convert_to() on editor.cpp 2020-07-21 16:01:06 -03:00
David Capello
a2e2337b23 Fix Remap::invert() when a tile is moved out of the range 2020-07-20 16:25:36 -03:00
David Capello
9f09fbe01a Minor change in color_bar.cpp 2020-07-20 16:25:04 -03:00
David Capello
ace6478846 AddTile() with index must increment version of the tileset to save the change in the backup correctly 2020-07-16 19:49:05 -03:00
David Capello
7b7fa29710 Fix copy_tiles_in_tileset() case when the "beforeIndex" is out of range 2020-07-16 19:00:31 -03:00
David Capello
6b43f7ca05 Pick the new tiles after moving/copying them in the tileset 2020-07-16 18:51:12 -03:00
David Capello
a9974e37d3 Publish CopyTiles command with "CopyTiles" ID (instead of "MoveTiles" ID) 2020-07-16 18:48:08 -03:00
David Capello
7f3a34c757 Implement copy_tiles_in_tileset() 2020-07-16 18:47:31 -03:00
David Capello
e9834c4619 Minor change in move_or_copy_palette_colors() 2020-07-16 18:35:14 -03:00
David Capello
fa8cddfae6 Remove the TRACE() by default in Tileset::remap() 2020-07-16 18:34:39 -03:00
David Capello
cd9f95ce98 Minor changes in remap tests 2020-07-15 21:26:41 -03:00
David Capello
8b56ca1094 Fix reading image layers from backup data 2020-07-14 18:50:13 -03:00
David Capello
27e2a287bf [lua] Add possibility to draw tiles w/app.useTool{ tilemapMode=TilemapMode.TILES... } 2020-07-14 17:27:40 -03:00
David Capello
c86b4a28a6 Fix typo 2020-07-14 17:27:03 -03:00
David Capello
8caef74da6 Merge branch 'beta' into tilemap-editor 2020-07-14 15:35:52 -03:00
David Capello
f7c4016ea5 Update laf modules 2020-07-14 15:34:50 -03:00
David Capello
515dace441 Merge branch 'beta' into tilemap-editor 2020-07-13 17:32:42 -03:00
David Capello
5f747cd0dc Update laf to fix #1776 through https://github.com/aseprite/laf/pull/20 2020-07-09 11:19:01 -03:00