Commit Graph

7544 Commits

Author SHA1 Message Date
Gaspar Capello
116201d8a1 Add custom data to Sprite Properties Window (fix #1306) 2020-12-16 12:40:05 -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
David Capello
50fd450e5e Fix remap of tiles when we delete a tile from the tileset 2020-10-19 16:30:15 -03:00
David Capello
38d1b8a8e2 Fix Flip command labels when assigning shortcuts (fix #2545) 2020-10-17 09:36:36 -03:00
David Capello
2089c1b7da Draw tile numbers correctly for tilemaps in the old tiled mode 2020-10-16 17:05:38 -03:00
David Capello
96dd05ba89 Move code to draw tile numbers to Editor::drawTileNumbers() 2020-10-16 16:54:14 -03:00
David Capello
cfdbe91b4a Fix drawing in tiled mode & tiles mode 2020-10-16 16:46:40 -03:00
David Capello
5ff7b6af0c Fix remap button of tiles 2020-10-16 16:19:29 -03:00
David Capello
a255213636 Now Edit > Clear on tilemaps can shrink/trim the tilemap 2020-10-15 16:04:55 -03:00
David Capello
0effbacd11 Fix cmd::TrimCel() for tilemaps when drawing tiles 2020-10-15 15:34:53 -03:00
David Capello
8b1f887720 Show tile numbers when moving tilemaps 2020-10-13 18:12:29 -03:00
David Capello
40a56a6281 Fix expanded bounds when painting pixels (non-tiles) 2020-10-13 15:59:14 -03:00
David Capello
2dadd1839c Fix the origin position of a newly created cel after a ToolLoop in pixels mode 2020-10-13 12:27:40 -03:00
David Capello
84dbb5557e [lua] Fix functions to set/get user data with cmd::SetUserData + DocEvent 2020-10-13 11:53:30 -03:00
Gaspar Capello
13addb4336 UI user data window integration 2020-10-13 11:07:10 -03:00
David Capello
6c4621a26a Fix copy & paste of images from GM2 2020-10-13 10:49:26 -03:00
David Capello
0bca1de5c1 Add support to fill with tiles 2020-10-09 17:22:57 -03:00