9 Commits

Author SHA1 Message Date
David Capello
92b794d457 Add the final TilesetModes UI: Manual/Semi/Auto 2020-02-17 09:06:01 -03:00
David Capello
4c583c2619 Fix new bounds of tilemap after Edit > Clear or Edit > Cut 2020-02-17 09:06:01 -03:00
David Capello
26139c4ae2 Add tilemap layers (#977)
This is the first commit with a simple tilemap editor. Still buggy but
functional in several ways. Several changes were made:

* NewLayer command can receive a tilemap=true to create a new tilemap
  layer
* New ToggleTilesMode command added to switch between the palette and
  the tileset in the ColorBar (the ColorBar was expanded to show
  colors or tilesets with a generic AbstractPaletteViewAdapter)
* All commands to create new layers were moved to Layer >
  New... submenu
* There are a new tileset chunk to save tilesets in .aseprite files,
  and a new kind of cels to save tilemaps
* Added doc::LayerTilemap, doc::Tileset, etc. and several other types
  to handle tilesets/tilemaps in the doc layer.
* Added doc::Grid class with grid specifications that indicates how a
  tilemap <-> tileset must be drawn
* Added and expanded cel operations to work with tilemaps and
  conversions between regular LayerImage cels <-> LayerTilemap cels
  (e.g. copy cels in the timeline between layer types)
2020-02-17 09:06:00 -03:00
David Capello
e8a057a334 Don't generate cmd::CropCel() if it isn't necessary 2019-04-24 17:31:06 -03:00
David Capello
3ee397a0ec Delete all links after deleting the whole cel content (related to #1214) 2016-09-12 16:46:26 -03:00
David Capello
5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello
e68eebda1c Fix memory leak on cmd::TrimCel 2016-05-11 12:59:32 -03:00
David Capello
1e0fd35413 Add cmd::CropCel and implement cmd::TrimCel using it 2016-05-10 10:37:16 -03:00
David Capello
5d8af3ca36 Trim (or remove) cels automatically (when they are completely empty) (fix #559, fix #1111) 2016-05-04 12:32:39 -03:00