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

3299 commits

Author SHA1 Message Date
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
Emmanouil Papadeas 610d2deb27 Add smart tileset importing 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 9f3564fe71 Load images as tilesets 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 177428cc1b Prevent users from editing tileset name and size if they choose to not create a new tileset 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas afe51262c9 Automatically hide and show the tiles panel when the current cel is a tilemap cel 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 81d4812b92 Preview tiles when using tools and draw tiles mode is enabled. 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas ad1252c142 Manual mode should update other cels that have the same tileset 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 2301ba9fcc Make manual tile editing mode automatically update all other image portions that have the same tile index 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas c1fd209588 Fix tileset panel updating when undoing and the wrong tilemap cel is selected 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 20c7a9fdfc Resize tileset buttons 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 14d0c76310 Enable tile drawing mode when clicking on a tile button 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 6c200d3afe When a tilemap cel is selected, force the first grid to have the same size as the tile size 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 04ab9faa87 Fix out of bounds issues when undoing/redoing when the place tiles mode is enabled 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 9c5b0f0f76 Add a dialog when creating a tilemap layer to allow users to set the tileset's settings 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 419154bafe Resize indices on project resize 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas f077b147e9 Save and load to/from pxo files 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas c24a2240fe Prevent from setting tile indices out of bounds of the canvas 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas d8c27a7966 Place tiles mode works with eraser and color picker tools 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 5b50270ee2 Undo/redo now removes tiles and re-indexes tilemap tiles 2024-12-04 01:21:54 +02:00
Emmanouil Papadeas 664197c9f3 Implement placing tiles for pencil tool
Still needs undo support
2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 0678fd8719 Tileset panel UI improvements 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 12eda32176 Properly update the tileset when using any tool 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas b87bfdf7e8 Better tile buttons 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 6b77e30e08 Improve tileset panel UI updating logic 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 6c79136f09 Prevent from drawing on empty image portions on manual mode. 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas cd6212d892 Make the manual mode work, kind of 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas d95c3f7555 Properly implement the auto tile editing mode
Should work well now.
2024-12-04 01:21:53 +02:00
Emmanouil Papadeas bd90f28de8 Show tile indices when pressing Control 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas f69e4bdc9e Add a way to show the indices of each tile, WIP 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 9187d8a9be Don't delete tiles that have been added using the stack mode 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas dd4f6b7b6c Change tile editing mode from the UI 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 27c0787f26 Make manual mode work when the tileset is empty 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas f42454ef03 Improve tileset editing logic 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas a8755bd92f Support ImageExtended 2024-12-04 01:21:53 +02:00
Emmanouil Papadeas 4f1ee0e828 Add a tileset panel
Code is a bit meh, needs to be written better.
2024-12-04 01:21:53 +02:00