Emmanouil Papadeas
7b6f70e999
Almost make cel replacing work
...
Needs to fix image resizing in order for this to work properly with undo/redo.
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
db73d40550
Merge layers into tilemap layers
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
de6784202e
Layer/frame cloning works.
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
0997fa8536
Linked tilemap cels should now work
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
d2cfe72c16
Draw tiles on all selected draw cels
...
Not working properly yet
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
815388f2fa
Don't execute update_tileset is we are on draw tiles mode
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
9e86492bfe
Continue with the undo/redo rewrite
...
Works everywhere except image resizing, replacing cels and merging layers
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
b3a429466d
Fixed bugs when placing a transformed tile over a non-transformed tile
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
d1bcab4bf9
Fix placing tiles not working when switching to indexed mode
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
29b281f7ba
Format TileModeIndices
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
50b4a8428f
Fix issues with transposed tiles
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
5425275e9c
Some improvements to TileModeIndices
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
8ab71490cf
Fix variable name shadowing in TopMenuContainer
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
13070b6244
Remove transformations from cells when using auto or stack mode
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
903ea5134a
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-12-02 19:51:36 +02:00
Emmanouil Papadeas
8d1652dc09
Write some documentation in CelTIleMap
...
WIP
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
e870679869
Rename some variables and methods in CelTileMap
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
6be273d098
Add documentation for LayerTileMap and TileSetCustom, along with a class description for CelTileMap
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
a10a0a9bda
Experimental undo redo for tileset tiles
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
ad919a2a10
Fix manual mode when the tilemap is empty.
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
2ccb9dd6f7
Support tile transformation, no undo/redo yet
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
8be3a1a54f
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-12-02 19:51:35 +02:00
Emmanouil Papadeas
35f78cf02c
Refactor CelTileMap to eventually support alternative tiles
...
Such as rotated and flipped tiles
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
74a40be7f7
Add smart tileset importing
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
62882cb8b1
Load images as tilesets
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
5e5789752d
Prevent users from editing tileset name and size if they choose to not create a new tileset
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
281c205290
Automatically hide and show the tiles panel when the current cel is a tilemap cel
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
020be20566
Preview tiles when using tools and draw tiles mode is enabled.
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
f410cf8917
Manual mode should update other cels that have the same tileset
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
6ac98e1bc6
Make manual tile editing mode automatically update all other image portions that have the same tile index
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
a617039967
Fix tileset panel updating when undoing and the wrong tilemap cel is selected
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
e84e9d46f3
Resize tileset buttons
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
5c90501293
Enable tile drawing mode when clicking on a tile button
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
6f3e3c8566
When a tilemap cel is selected, force the first grid to have the same size as the tile size
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
24af6573e6
Fix out of bounds issues when undoing/redoing when the place tiles mode is enabled
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
46ebb0930c
Add a dialog when creating a tilemap layer to allow users to set the tileset's settings
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
fc8f21a436
Resize indices on project resize
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
9bd2eb7f0f
Save and load to/from pxo files
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
64809c64d9
Prevent from setting tile indices out of bounds of the canvas
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
6b95908ef3
Place tiles mode works with eraser and color picker tools
2024-12-02 19:51:35 +02:00
Emmanouil Papadeas
c1028131a1
Undo/redo now removes tiles and re-indexes tilemap tiles
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
3e2587e4ca
Implement placing tiles for pencil tool
...
Still needs undo support
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
65895374ab
Tileset panel UI improvements
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
3f26e859dc
Properly update the tileset when using any tool
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
00cd47b94e
Better tile buttons
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
7f82be13ab
Improve tileset panel UI updating logic
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
1bb908638b
Prevent from drawing on empty image portions on manual mode.
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
2ecdf023b2
Make the manual mode work, kind of
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
29262ff7da
Properly implement the auto tile editing mode
...
Should work well now.
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
d584807c14
Show tile indices when pressing Control
2024-12-02 19:48:51 +02:00