1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-07 19:09:50 +00:00
Commit graph

3310 commits

Author SHA1 Message Date
Emmanouil Papadeas 22a03981de Update Translations.pot 2024-11-29 20:25:25 +02:00
Emmanouil Papadeas 61c9d566c5 Add documentation for CelTileMap and rename update_tileset to update_tilemap 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 2daebde5f0 Add documentation for Project and TileSetCustom 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas a21b0f13ec Include all cels that share the same tileset in undo/redo if manual mode is enabled. 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 607b5e9e3b 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-11-29 19:12:44 +02:00
Emmanouil Papadeas 3614b27baa Fix layer effect applying not updating the tilesets properly 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 002a6f1a53 Only resize cells on undo/redo when needed 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 616d3c0853 Resizing should now work
Also fixes cel replacing
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 46d962ac07 Revert 3f39dbf3 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas f8cff03eb8 Almost make cel replacing work
Needs to fix image resizing in order for this to work properly with undo/redo.
2024-11-29 19:12:44 +02:00
Emmanouil Papadeas ebfa67be43 Merge layers into tilemap layers 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 60fd79cab8 Draw tiles on all selected draw cels
Not working properly yet
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 488b20f647 Format TileModeIndices 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 a75bed8c34 Some improvements to TileModeIndices 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 980912597d Fix variable name shadowing in TopMenuContainer 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 9fe6960a53 Add smart tileset importing 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 3733ba12f0 Load images as tilesets 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 68a731fee3 Prevent users from editing tileset name and size if they choose to not create a new tileset 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas f8843194b2 Automatically hide and show the tiles panel when the current cel is a tilemap cel 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 7e516d8936 Preview tiles when using tools and draw tiles mode is enabled. 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 5bcca247ce Fix tileset panel updating when undoing and the wrong tilemap cel is selected 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 063a9a5da1 Resize tileset buttons 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 48f35bad92 Enable tile drawing mode when clicking on a tile button 2024-11-29 19:12:44 +02:00
Emmanouil Papadeas 5d9b1ca0b2 When a tilemap cel is selected, force the first grid to have the same size as the tile size 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