David Capello
edebb57f66
Refactor clipboard code
...
* Moved all clipboard:: functions inside app::Clipboard class
* Convert app:📋 :ClipboardFormat enum to
app::ClipboardFormat enum class
* Added app::Context::clipboard()
2020-09-25 11:14:52 -03:00
David Capello
44f65ad305
Minor change: use more "auto" before dynamic_cast()
2020-09-25 09:48:56 -03:00
David Capello
d843866746
Fix skew transformation from north/south handles when the bounds are flipped
2020-09-24 16:32:43 -03:00
David Capello
fe85d9d492
Fix comment in skew cases
...
In the initial impl of skew transformation the ABCD points were named
PQRS.
2020-09-24 16:31:46 -03:00
David Capello
6889c3e0d4
Remove unused var
2020-09-24 15:18:38 -03:00
David Capello
e2db76492b
Avoid div by zero or extreme angles for skew transformation
2020-09-23 19:43:35 -03:00
David Capello
70a884d8ee
Replace fixmath::fixed with double floating point in some cases
2020-09-22 18:34:35 -03:00
David Capello
8c916bf211
Minor fix to the angle used on each handle for mouse cursors
2020-09-22 17:12:22 -03:00
David Capello
732503eb30
Reword and fix some typos in CODING_STYLE guide
2020-09-20 13:16:14 -03:00
David Capello
3fbdd40f24
Add skew transformation ( fix #71 )
...
This is the first version of the feature, it still needs some
fixes (e.g. avoid skew transform when the pivot is in the same side of
the skew handle which can calculate a division by zero).
2020-09-18 19:29:43 -03:00
David Capello
98d06c31e3
Refactor KeyContext <-> string conversions
2020-09-02 18:09:19 -03:00
David Capello
676c582ede
Minor change in gui.xml comments
2020-09-02 18:03:07 -03:00
David Capello
90dd05d57c
Update visible region when editor scroll/zoom change
2020-09-01 13:02:25 -03:00
David Capello
c19ac7a45c
Move the cancel flag from ToolLoop to ToolLoopManager
2020-09-01 12:13:24 -03:00
David Capello
5f45271779
Move some UI related things to ToolLoopBase() ctor to avoid querying the UI from the ToolLoopManager
...
There are plans to move the ToolLoopManager to a background thread, so
we cannot access the UI from that thread.
2020-09-01 10:28:21 -03:00
David Capello
291ebc6a38
Minor refactor from ui::MouseMessage -> tools::Pointer
2020-08-31 23:17:15 -03:00
David Capello
b1c0d80356
Add support to clear/fill/stroke selections in tiles mode
2020-08-27 20:32:22 -03:00
David Capello
4eeaad5a69
Fix preview with selection tools in tiles mode
2020-08-26 12:30:48 -03:00
David Capello
e5bfccbcd2
Simplify grid origin adjustment on ExpandCelCanvas::ExpandCelCanvas()
2020-08-25 16:09:32 -03:00
David Capello
580fe1b030
Minor change in ToolLoopImpl getInk() -> m_ink
2020-08-25 16:08:59 -03:00
David Capello
48d9e4c289
Fix compilation error in shrink_benchmark.cpp
2020-08-25 15:33:11 -03:00
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.
v1.2.25
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