Commit Graph

7559 Commits

Author SHA1 Message Date
Gaspar Capello
61e469d126 Fix tag/slice properties: focus name by default instead of user data 2021-01-15 13:02:17 -03:00
David Capello
a3072fba41 Revert change in Console::showException() from d0b39ebade 2021-01-15 11:33:40 -03:00
David Capello
d0b39ebade Redraw window immediately on "live resizing" 2021-01-12 21:39:12 -03:00
David Capello
4ae6d12fe0 Regenerate tag bands after resizing a tag 2020-12-30 10:58:16 -03:00
David Capello
96a1c98dfe Add missing #include to use Strings 2020-12-30 10:58:05 -03:00
David Capello
ed8ef5dbd7 Add support to resize tags with drag & drop
This idea was originally planned but never implemented. Requested
several times after tags were introduced:

https://github.com/aseprite/aseprite/issues/1275
https://github.com/aseprite/aseprite/issues/1875
https://community.aseprite.org/t/drag-to-resize-tag/3619
2020-12-30 10:25:37 -03:00
David Capello
91628daa9d Merge branch 'master' into beta 2020-12-22 15:48:15 -03:00
Gaspar Capello
5d70ba46a3 Add documentation about Sprite User Data 2020-12-17 10:42:32 -03:00
Gaspar Capello
31ae8383fb Fix data recovery about sprite user data 2020-12-17 09:02:51 -03:00
David Capello
569ff7ed7c Add comment why doc::Sprite::sprite() member function was added 2020-12-16 12:40:24 -03:00
Gaspar Capello
54ae195159 [lua] Add support to sprite user data 2020-12-16 12:40:21 -03:00
Gaspar Capello
116201d8a1 Add custom data to Sprite Properties Window (fix #1306) 2020-12-16 12:40:05 -03:00
David Capello
21e893162d Add possibility to hold tool modifiers when we start drawing on kMouseDownMessage (fix #2537)
E.g. In this way we can press the Shift modifier, then press the mouse
button to start drawing successive straight lines with the angle
snapped (so there is no need to release/press the Shift modifier again
and again).
2020-12-14 14:49:16 -03:00
David Capello
81d9e8afec Fix bug with Console when the UI Screen Scaling is changed 2020-12-11 15:52:14 -03:00
David Capello
c0ac9208ff Fix layer name for new sprites to match the translation in new layer (fix #2549) 2020-11-27 19:27:13 -03:00
David Capello
85e51abcaa Minor changes about old "layer set" -> "layer group" 2020-11-27 19:26:18 -03:00
David Capello
6f9f6006cc Update laf to compile with ENABLE_UI=off 2020-11-13 12:05:07 -03:00
David Capello
76f3b96603 Don't select separators in comboboxes (recent folders separator, etc.) 2020-11-13 11:13:33 -03:00
David Capello
26b75bdb57 Add option to specify/modify the tileset name 2020-11-10 17:48:09 -03:00
David Capello
0cf28840b5 Don't show tileset button in Layer Properties when it's open for a regular layer 2020-11-09 19:45:04 -03:00
David Capello
5d77b885a1 Minor fix to tiles button 2020-11-09 19:29:35 -03:00
David Capello
eb60ebb2a1 Show color palette/tileset at the same time 2020-11-09 19:29:14 -03:00
Gaspar Capello
08f63f1b02 Fix cel and layer user data text input do not update when a fast layer change happen. 2020-11-05 18:42:32 -03:00
David Capello
db80c2a07e Real-time preview when editing tilemaps in Manual mode
In this way we can see the changes to all instances of the same tile
in the tilemap in real-time. The preview is done through a new
"preview tileset" that is used in the render concept (instead of the
preview image, a preview tileset is used as a temporal tileset to be
used for preview purposes only).
2020-11-04 16:54:12 -03:00
David Capello
4d6f4434cd Remove unused flag ExpandCelCanvas::UseModifiedRegionAsUndoInfo 2020-11-03 20:47:13 -03:00
David Capello
d73a67dde7 Revert "Swap "auto" mode to first place (Space+1) and "manual" to Space+2"
This reverts commit 2d0227e8b2.
2020-11-03 19:02:44 -03:00
David Capello
15541412a4 Fix Ctrl+click to pick tilemaps correctly using the tile pixels
Before this we picked tilemaps only by bounds of the cel.
2020-11-02 18:53:24 -03:00
David Capello
1c6660e964 Add missing file tileset_selector_window.xml 2020-10-30 21:20:33 -03:00
David Capello
2501f5aa3c Fix tile button with negative base index 2020-10-30 21:14:31 -03:00
David Capello
505aa6119a Add option to change the "base index" from the layer properties 2020-10-30 21:11:58 -03:00
David Capello
a3286fc20a Minor refactor "first visible index" -> "base index" 2020-10-30 20:58:45 -03:00
David Capello
c2e5e69882 Simplify tilesets impl using tile index 0 = an empty tile
In this way we always have an empty tile available in the drawing
process. We've also added the Tileset::firstVisibleIndex field to
change the visible index of the tile 1 so we can offset the visible
number by the user (just as a visual aid / simulate old tilesets with
index=0=non-empty tile).
2020-10-30 16:33:34 -03:00
David Capello
9113a690f0 Fix crash duplicating tilemap layers 2020-10-26 19:56:56 -03:00
David Capello
114387483f Show "Remap Tiles" button after the tileset is resized 2020-10-26 18:47:09 -03:00
David Capello
394b8bb2aa Fix clearing/cutting several tiles at the same time from the tileset 2020-10-26 18:45:21 -03:00
David Capello
2d0227e8b2 Swap "auto" mode to first place (Space+1) and "manual" to Space+2 2020-10-26 17:58:01 -03:00
David Capello
4db4e77c78 Fix crash deleting all tiles from tileset and remapping 2020-10-26 17:00:05 -03:00
David Capello
7f487c1294 Fix comparison of layer flags between backup and sprite on memory 2020-10-23 17:20:11 -03:00
David Capello
0b4e24b29d Draw icon for tilemap layers in the tilemap 2020-10-23 17:19:56 -03:00
David Capello
3e55928d41 Fix crash clicking in the PaletteView area with an empty tileset 2020-10-23 16:07:54 -03:00
David Capello
f416d0c356 Color adjustments to dark theme by Nicolas Desilets 2020-10-23 15:44:24 -03:00
David Capello
695b65fc31 [lua] Add support to iterate tiles 2020-10-22 20:43:45 -03:00
David Capello
bff884b4c8 Merge branch 'master' into beta 2020-10-22 12:18:30 -03:00
David Capello
ca013ff5d8 [lua] Check that some arguments are really strings in make/removeDir 2020-10-22 12:17:49 -03:00
David Capello
14893fbaf8 [lua] Add functions to make/remove directories with app.fs 2020-10-22 11:36:52 -03:00
David Capello
68c9203880 Add new dark theme contributed by Nicolas Desilets 2020-10-20 17:22:42 -03:00
David Capello
661f4897b2 Check that we're in the UI thread when modifying the widgets collection 2020-10-20 12:54:56 -03:00
David Capello
0993248189 Try to avoid modifying indexes of non-modified tiles in Auto mode 2020-10-19 22:21:31 -03:00
David Capello
423cec71e5 Improve Auto tileset mode: re-use the same tile index when it's possible 2020-10-19 21:54:16 -03:00
David Capello
108f2bc1a3 Fix minor typo 2020-10-19 16:56:41 -03:00