1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
Commit graph

3333 commits

Author SHA1 Message Date
Emmanouil Papadeas 0c3facf376 Support draw tiles mode in the paint select tool 2024-12-04 04:29:24 +02:00
Emmanouil Papadeas 58ab5b7083 Support draw tiles mode in lasso and polygon select tools 2024-12-04 04:26:09 +02:00
Emmanouil Papadeas 4365ed8a3a Support draw tiles mode in elliptical and color select tools 2024-12-04 03:07:35 +02:00
Emmanouil Papadeas d579baf830 Some refactoring and initial support for draw tile mode for selection tools
Only rectangle selection for now, and resizing doesn't yet work
2024-12-04 01:38:56 +02:00
Emmanouil Papadeas ad2fcf4891 Add a grid_offset parameter for the rectangular grid snap methods 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 7fb65c3136 Add a _snap_to_rectangular_grid_boundary() method to BaseTool
And rename _snap_to_grid_center() to _snap_to_rectangular_grid_center()
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 4d5eebc670 The bucket tool now works with draw tiles mode 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 8efbf0bf83 Add more keyboard shortcuts 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 61a3488ead Use the AutoInvertColors shader for when showing the tile mode indices 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 23304079b6 Support mirroring when using draw tiles mode 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 889e93e548 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-04 01:21:54 +02:00
Emmanouil Papadeas 228bc65a38 Change tileset in a layer from the project properties 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas e20585fde3 Update the default layouts to include the Tiles panel 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ef1b77662c Duplicate tilesets from the project properties 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 137ac25c00 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-04 01:21:54 +02:00
Emmanouil Papadeas a9946099ef Add get_text_info() in TileSetCustom 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 8346b465b6 Disable draw tiles mode when pressing one of the tile edit mode buttons 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas cfa067ebb0 Add rotate left and right buttons in the tiles panel instead of transpose 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 800c8a6c19 Update Translations.pot 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 423c77235d Add documentation for CelTileMap and rename update_tileset to update_tilemap 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 31c5bf7cac Add documentation for Project and TileSetCustom 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ca2e67612f Include all cels that share the same tileset in undo/redo if manual mode is enabled. 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas a1f785f67e 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-04 01:21:54 +02:00
Emmanouil Papadeas 59a2ec4db1 Fix layer effect applying not updating the tilesets properly 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 381eed84d5 Only resize cells on undo/redo when needed 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 5e34faf793 Resizing should now work
Also fixes cel replacing
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas a3324591be Revert 3f39dbf3 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas d5dac1c527 Almost make cel replacing work
Needs to fix image resizing in order for this to work properly with undo/redo.
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 3cd4bd92ec Merge layers into tilemap layers 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas c14ac5d579 Layer/frame cloning works. 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas f197c6c55b Linked tilemap cels should now work 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 0b2fa7ab6e Draw tiles on all selected draw cels
Not working properly yet
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas d341d73fcf Don't execute update_tileset is we are on draw tiles mode 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas f9b2ff2d6a Continue with the undo/redo rewrite
Works everywhere except image resizing, replacing cels and merging layers
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 533b28452b Fixed bugs when placing a transformed tile over a non-transformed tile 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 58d4e7efab Fix placing tiles not working when switching to indexed mode 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 45ae8b7dee Format TileModeIndices 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ae52151021 Fix issues with transposed tiles 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 5e3cc0a9a1 Some improvements to TileModeIndices 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 50da6c0ce9 Fix variable name shadowing in TopMenuContainer 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ad83823f58 Remove transformations from cells when using auto or stack mode 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 442285d15f 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-04 01:21:54 +02:00
Emmanouil Papadeas b059ae4c8b Write some documentation in CelTIleMap
WIP
2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 5e4eebe139 Rename some variables and methods in CelTileMap 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 2c6dcdcf78 Add documentation for LayerTileMap and TileSetCustom, along with a class description for CelTileMap 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ac75c8197c Experimental undo redo for tileset tiles 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 5f10a913d4 Fix manual mode when the tilemap is empty. 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 3bf556345d Support tile transformation, no undo/redo yet 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 4e62d00296 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-04 01:21:54 +02:00
Emmanouil Papadeas a696db3fc0 Refactor CelTileMap to eventually support alternative tiles
Such as rotated and flipped tiles
2024-12-04 01:21:54 +02:00