Emmanouil Papadeas
7b3474a58c
Add support for the draw tile mode for the rest of the draw tools, except bucket
...
Also fixes issues with the draw tile mode with the pencil and eraser tools, such as leaving gaps if the mouse is moving fast, and support for spacing and fill inside tool options.
2024-12-02 23:42:08 +02:00
Emmanouil Papadeas
f9bde9dcc3
Change tileset in a layer from the project properties
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
40f56c3b08
Update the default layouts to include the Tiles panel
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
1cd2159e28
Duplicate tilesets from the project properties
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
d881e9f605
Add tilesets in the project properties and a button to delete them
...
Can only delete tilesets that are not currently used by a tilemap layer
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
6b6606005d
Add get_text_info() in TileSetCustom
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
1336819760
Disable draw tiles mode when pressing one of the tile edit mode buttons
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
f5428952b2
Add rotate left and right buttons in the tiles panel instead of transpose
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
c4a5b3b380
Update Translations.pot
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
fdd3e613cb
Add documentation for CelTileMap and rename update_tileset to update_tilemap
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
aa4ca7a422
Add documentation for Project and TileSetCustom
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
2fb4af09d5
Include all cels that share the same tileset in undo/redo if manual mode is enabled.
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
08de3cec45
Make drawing on multiple selected tilemap cels that share the same tileset and applied a layer effect to all cels of the layer work
...
This now creates an issue when manual mode is used and we undo. Other cels don't get updated, even though they were changed by manual mode.
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
d35b78f013
Fix layer effect applying not updating the tilesets properly
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
6243d1dc3d
Only resize cells on undo/redo when needed
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
99e8cfa602
Resizing should now work
...
Also fixes cel replacing
2024-12-02 19:51:36 +02:00
Emmanouil Papadeas
8110442ca1
Revert 3f39dbf3
2024-12-02 19:51:36 +02:00
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