1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-03 10:03:14 +00:00
Commit graph

3284 commits

Author SHA1 Message Date
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
Emmanouil Papadeas
488c023838 Add a way to show the indices of each tile, WIP 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
a4b33ad83c Don't delete tiles that have been added using the stack mode 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
cadd7c57f1 Change tile editing mode from the UI 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
7893ae2531 Make manual mode work when the tileset is empty 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
df56989d5f Improve tileset editing logic 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
8abf44d65a Support ImageExtended 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
b74c3149af Add a tileset panel
Code is a bit meh, needs to be written better.
2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
dab8c5bed5 Add tilemap layers 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
85854b3490 Implement all draw modes (untested) 2024-12-02 19:48:51 +02:00
Emmanouil Papadeas
d562e50af7 Initial work for tilemap layers 2024-12-02 19:48:51 +02:00
Variable
ff5713ae91
When picking color, ensure that the correct index is selected in palette (#1144)
* When picking color, ensure that the correct index is selected

* if drawing over same color in index mode, check and update index as well

* revert an optimization (croping indices image before display)

* typo
2024-12-02 19:44:52 +02:00
Spencer Beckwith
55f83a3367
Extract export path from output CLI option (#1145) 2024-12-01 16:47:16 +02:00
Emmanouil Papadeas
c72a1f4b90 Enable always on top for the child dialogs of the export dialog 2024-11-30 22:23:09 +02:00
Emmanouil Papadeas
be8b7728e4 [skip ci] Fix typo in ImageExtended docstrings 2024-11-29 20:19:19 +02:00
Variable
31981a1def
Added a way to see index of color (plus bugfixes) (#1143)
* add a way to see indices

* fix some things

* Fixed more than one swatch selected if there is the same color available in an earlier swatch

* fixed wrong index drawn when moved to an smpty swatch

* make active_button public

* fixed wrong color getting stored in   array (similar fix to #1108.)

* If the color selected in the palette is the same then it should take prioity.

* formatting

* hide 0 index
2024-11-29 19:10:02 +02:00
Variable
7f4c7a6bf1
Grid patch (#1142)
* fix second grid not *shown* removed when first grid has default values.

* Make next added grid twice the previous size, and with a different color

* Formatting
2024-11-28 22:02:13 +02:00
HuanWuCode
41ea287df4
Update Import.gd (#1121) 2024-11-27 17:01:00 +02:00
Emmanouil Papadeas
a3e372c5d8 [skip ci] Update CHANGELOG.md 2024-11-26 14:01:45 +02:00
Variable
6224d06428
Allow multiple Grids (#1122)
* Allow upto 10 grids

* Fixed more stuff

* fixed a bug

* formatting

* removed some left over stuff

* linting

* formatting and a bugfix
2024-11-25 15:57:13 +02:00
Vovkiv
6459151549
[skip ci] [linux] Enhancements for desktop file. (#1140)
Co-authored-by: volkov <volkovissocool@gmail.com>
2024-11-24 14:38:55 +02:00
Variable
fe6efb0f1d
fixed recorder label not updating when project is changed (#1139) 2024-11-24 14:37:02 +02:00