Emmanouil Papadeas
46d962ac07
Revert 3f39dbf3
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
2310baf2be
Layer/frame cloning works.
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
0c51fed469
Linked tilemap cels should now work
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
e3b3efcdd2
Don't execute update_tileset is we are on draw tiles mode
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
71d8604ab7
Continue with the undo/redo rewrite
...
Works everywhere except image resizing, replacing cels and merging layers
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
c35601850b
Fixed bugs when placing a transformed tile over a non-transformed tile
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
8e3ec27cb6
Fix placing tiles not working when switching to indexed mode
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
f8d3dd25f5
Fix issues with transposed tiles
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
e781a7f3d3
Remove transformations from cells when using auto or stack mode
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
5fd1148a15
Make undo/redo store tilemap cell indices and tileset tiles
...
Fixes issues with cases 0.5 and 5 of auto mode, and should be a better system overall. Only works with BaseDraw tools, needs to be applied everywhere as well.
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
cb2ebc5618
Write some documentation in CelTIleMap
...
WIP
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
281f90b324
Rename some variables and methods in CelTileMap
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
7833c9d0f4
Add documentation for LayerTileMap and TileSetCustom, along with a class description for CelTileMap
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
d96c56932e
Experimental undo redo for tileset tiles
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
adf02f9a94
Fix manual mode when the tilemap is empty.
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
a85fa931a1
Support tile transformation, no undo/redo yet
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
07f3d6e82d
Add logic for checking if two tiles are equal with transformations applied to them
...
There is currently no exposed way to apply transformations to tiles.
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
3fa117ffb5
Refactor CelTileMap to eventually support alternative tiles
...
Such as rotated and flipped tiles
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
ac74703552
Manual mode should update other cels that have the same tileset
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
3a8e5942d2
Make manual tile editing mode automatically update all other image portions that have the same tile index
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
4f5c469db5
Fix out of bounds issues when undoing/redoing when the place tiles mode is enabled
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
746141edd2
Add a dialog when creating a tilemap layer to allow users to set the tileset's settings
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
ca5c6d811e
Resize indices on project resize
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas
33b76d334f
Save and load to/from pxo files
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
491b706475
Prevent from setting tile indices out of bounds of the canvas
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
eb9599976a
Place tiles mode works with eraser and color picker tools
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
1755879047
Undo/redo now removes tiles and re-indexes tilemap tiles
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
349abccf2a
Implement placing tiles for pencil tool
...
Still needs undo support
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
46122c4793
Tileset panel UI improvements
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
9a1f802a26
Properly update the tileset when using any tool
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
f881186b31
Improve tileset panel UI updating logic
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
a170a0fc95
Prevent from drawing on empty image portions on manual mode.
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
d182c08cf8
Make the manual mode work, kind of
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
516d339f41
Properly implement the auto tile editing mode
...
Should work well now.
2024-11-29 19:12:43 +02:00
Emmanouil Papadeas
67d4eb67c1
Don't delete tiles that have been added using the stack mode
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
8f46338d50
Change tile editing mode from the UI
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
4340f69821
Make manual mode work when the tileset is empty
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
c45fdbd3ef
Improve tileset editing logic
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
63e1e88f66
Support ImageExtended
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
f61103cac3
Add a tileset panel
...
Code is a bit meh, needs to be written better.
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
7ffc6c05a6
Add tilemap layers
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
68eea6e141
Implement all draw modes (untested)
2024-11-29 19:11:22 +02:00
Emmanouil Papadeas
3db12ddf03
Initial work for tilemap layers
2024-11-29 19:11:22 +02:00
Variable
31981a1def
Added a way to see index of color (plus bugfixes) ( #1143 )
...
* add a way to see indices
* fix some things
* Fixed more than one swatch selected if there is the same color available in an earlier swatch
* fixed wrong index drawn when moved to an smpty swatch
* make active_button public
* fixed wrong color getting stored in array (similar fix to #1108.)
* If the color selected in the palette is the same then it should take prioity.
* formatting
* hide 0 index
2024-11-29 19:10:02 +02:00
Emmanouil Papadeas
01b55aca07
Fix crash when using indexed mode without a palette
2024-11-23 14:17:41 +02:00
Emmanouil Papadeas
b87a8e2ab8
Fix cel copying not working with indexed mode
2024-11-22 21:00:38 +02:00
Emmanouil Papadeas
e6c4a72158
Fix crash when using indexed mode and the palette has empty swatches between colors
2024-11-22 20:47:38 +02:00
Emmanouil Papadeas
bd7d3b19cc
Add a crop_image boolean parameter to Palette.convert_to_image()
...
Fixes some issues with the Palettize effect where the output would be different if the palette size changed and empty swatches were added, even if the colors themselves stayed the same.
2024-11-22 17:56:39 +02:00
Emmanouil Papadeas
d0ecf3b03d
Center diagonal symmetry guides when initializing a new project
...
The guides appear centered, but the symmetry itself is not working properly yet
2024-11-21 16:33:19 +02:00
Emmanouil Papadeas
3d65e48c92
Add backend for diagonal mirror buttons
...
The buttons are not yet visible
2024-11-21 12:48:52 +02:00