Commit Graph

7468 Commits

Author SHA1 Message Date
David Capello
a4ba4c92fd Disable changing to TilemapMode::Tiles when we aren't in a tilemap 2020-08-25 15:04:39 -03:00
David Capello
162f6d802a Fix brush preview in tiles mode when the fg color is the mask color
The FG color shouldn't have relevance when we are in tiles mode (only
the fg tile should have it).
2020-08-24 15:37:08 -03:00
David Capello
0c351f6fcf Now SwitchColors command works in tiles mode 2020-08-24 12:25:35 -03:00
David Capello
18759b1198 Avoid crash when shift a tilemap pixels (still not working, but at doesn't crash) 2020-08-24 12:24:08 -03:00
David Capello
ab4accb60d Add support to read tags color/userdata from crash sessions from v1.2 and v1.3 2020-08-23 15:10:24 -03:00
David Capello
0ec8efd366 Fix auto and stack tileset modes when drawing on a tile_i_notile 2020-08-21 21:30:48 -03:00
David Capello
18454cf5fa Sync colors between the TagWindow color picker <-> user data color picker 2020-08-21 19:25:47 -03:00
David Capello
be7fa67b61 Fix typo in tags chunk 2020-08-21 19:16:24 -03:00
David Capello
9ad8f8bf73 Minor comments in code and .aseprite specs about user data for tags 2020-08-21 19:11:59 -03:00
Gaspar Capello
f630714547 Removed color functions from tag related code, fix backward compatibilty and added default color in tag constructor (before this, tests were failing) 2020-08-21 18:51:43 -03:00
Gaspar Capello
1cd584413d Fix ase format write/read for tags user data (backward compatible) 2020-08-21 18:51:40 -03:00
Gaspar Capello
55a37d0e6b Add tag userdata
Some code from https://github.com/aseprite/aseprite/pull/2265

Co-authored-by: Clarence "Sparr" Risher <sparr0@gmail.com>
2020-08-21 18:51:05 -03:00
David Capello
5ee3ebdd71 Add fg/bg tiles selectors in ColorBar
Now fg/bg colors and fg/bg tiles are different widgets, and the
StatusBar can show tiles when the eyedropper is picking tiles.
2020-08-21 18:28:31 -03:00
David Capello
fa46aff072 Minor changes in modify_tilemap_cel_region() 2020-08-20 14:22:28 -03:00
David Capello
8ff438c365 Fix crash copying from a tilemap with notiles 2020-08-20 14:22:05 -03:00
David Capello
9f56977666 Improve CopyRegion::CopyRegion() performance
We can avoid calling gfx::Region::createUnion() multiple times and
using just on intersection to clip the input region.
2020-08-20 11:41:16 -03:00
David Capello
e8dc717b08 Fix brush preview and drawing in tiles mode 2020-08-19 20:17:50 -03:00
David Capello
319eb3fd62 Use tilemap grid (instead of sprite grid)
Re-apply d862f9f94 which was deleted in 74c1f6af6 and it's needed when
we double-click tiles to select then.
2020-08-18 16:41:26 -03:00
David Capello
3623720dd4 Merge branch 'master' into beta 2020-08-18 11:05:37 -03:00
David Capello
f44aad06db [lua] Fix Dialog:file{ save=true } so 'save' field must be =true
Before this change if we used Dialog:file{ save=false } it would show
the save version of the dialog, which didn't make sense.
2020-08-18 08:55:04 -03:00
David Capello
95ce7541e7 Avoid redrawing transformation on each mouse position change (related to #2149) 2020-08-17 17:35:34 -03:00
David Capello
b355f34a70 Export all groups (even collapsed ones) by default in JSON metadata (fix #2484) 2020-08-17 17:14:12 -03:00
David Capello
88f9fbebec Add -DSKIA_LIBRARY flag for laf library in compilation instructions
The SKIA_LIBRARY is filled automatically using find_library() and
SKIA_LIBRARY_DIR, but it looks like somethings it doesn't work and
it's better to just specify the SKIA_LIBRARY directly.
2020-08-17 11:57:05 -03:00
David Capello
7edafb719c Merge branch 'master' into beta 2020-08-14 21:10:02 -03:00
David Capello
e37ddbd7de Merge branch 'tilemap-editor' into beta 2020-08-14 21:08:59 -03:00
David Capello
24a2d9527b Merge branch 'fix-tile-mode' into tilemap-editor 2020-08-14 20:30:52 -03:00
David Capello
0901ce15b5 Make the tiles mode work when cel origin offset != 0,0
Several changes/refactors to make the tilemap tests work, there are
still a couple of things that are not working yet (brush preview when
tile row != 0, and removing tiles with -1 after the tilemap is
expanded).
2020-08-14 20:26:10 -03:00
David Capello
f3e9978bb0 [win] Fix pasting 32-bpp images from Firefox
And any app that use DIBV5 format with BI_RGB compression.
2020-08-13 11:02:01 -03:00
Gaspar Capello
e62efb4124 Add palette gradient based on Hue (fix #2171) 2020-08-12 17:04:25 -03:00
David Capello
432e8d9943 Merge branch 'master' into beta 2020-08-12 14:23:32 -03:00
David Capello
955d0a9c41 [win] Minor change to call CoInitialize()/CoUninitialize() 2020-08-12 11:16:31 -03:00
David Capello
6987a15986 Update submodules 2020-08-12 11:16:16 -03:00
David Capello
282b040b52 [win] Fix copy & paste 32bpp images w/alpha channel from/to some Windows programs
More information:
https://steamcommunity.com/app/431730/discussions/0/1846946102842809327/
2020-08-11 19:30:39 -03:00
Gaspar Capello
d701ef9ffd Fix replace current pallete does not create a palette (fix #2480) 2020-08-11 10:19:37 -03:00
David Capello
ddee4dc0b9 Fix start playing animation on preview window when adding/removing frames (fix #2481) 2020-08-11 08:45:30 -03:00
David Capello
74c1f6af6b Rollback some changes to keep the Site::grid() origin in the cel position
Now ExpandCelCanvas uses a correctly modified doc::Grid that matches
the new and temporal cel position while we are drawing.
2020-08-06 20:26:08 -03:00
David Capello
8b8b062f59 Minor changes 2020-08-06 16:18:53 -03:00
Gaspar Capello
a195487fc0 Fix bounds calculation on tiles drawing outside cel bounds and the filling tile index is tile_i_notile, instead of empty tile. 2020-08-06 10:52:41 -03:00
David Capello
2ffac6803c Merge branch 'beta' into tilemap-editor 2020-08-06 10:47:06 -03:00
David Capello
4e08d12f28 Merge branch 'master' into beta 2020-08-06 10:46:32 -03:00
David Capello
bbfa023b30 Fix crash adding new frames when there are tags present 2020-08-04 22:39:54 -03:00
David Capello
d93264c895 Fix opening files from CLI with new OpenBatchOfFiles utility 2020-08-04 18:22:37 -03:00
David Capello
14fbee19f0 Fix cli_tests when Strings is not available 2020-08-04 18:11:18 -03:00
David Capello
893c8cbe32 Fix minor issues redrawing auto cel guides on Editor
E.g. We could open a (foreground) dialog (e.g. New File), and move the
window, and press the Ctrl key to show the auto-guides (or released it
to hide the auto-guides) for new painted areas of the Editor. This
patch fixes that bug.
2020-08-04 16:29:22 -03:00
David Capello
6862bb8ab0 Fix opening several times the "save changes" alert (fix #2467)
This could happen if we clicked the cross icon in tabs without moving
the mouse.
2020-08-04 15:09:33 -03:00
David Capello
819517b941 Fix reported crash in MovingPixelsState::onUpdateStatusBar()
This should be enough to fix a crash reported where we receive a
onUpdateStatusBar() when m_pixelsMovement is already deleted. It's
called from onLeaveState() when we call notifyGeneralUpdate() which
generates a scroll change and finally updates the status bar.

Crash report: https://igarastudio.zendesk.com/agent/tickets/1239
2020-08-04 11:12:57 -03:00
David Capello
d7a3da9518 Fix crash using opacity slider on CelProperties after deleting a cel
Crash report: https://igarastudio.zendesk.com/agent/tickets/1208
2020-08-04 10:42:28 -03:00
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