1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-07 10:59:49 +00:00
Pixelorama/src/Classes
Emmanouil Papadeas 2d28136449
Implement indexed mode (#1136)
* Create a custom PixeloramaImage class, initial support for indexed mode

* Convert opened projects and images to indexed mode

* Use shaders for RGB to Indexed conversion and vice versa

* Add `is_indexed` variable in PixeloramaImage

* Basic undo/redo support for indexed mode when drawing

* Make image effects respect indexed mode

* Move code from image effects to ShaderImageEffect instead

* Bucket tool works with indexed mode

* Move and selection tools works with indexed mode

* Brushes respect indexed mode

* Add color_mode variable and some helper methods in Project

Replace hard-coded cases of Image.FORMAT_RGBA8 with `Project.get_image_format()` just in case we want to add more formats in the future

* Add a helper new_empty_image() method to Project

* Set new images to indexed if the project is indexed

* Change color modes from the Image menu

* Fix open image to replace cel

* Load/save indices in pxo files

* Merging layers works with indexed mode

* Layer effects respect indexed mode

* Add an `other_image` parameter to `PixeloramaImage.add_data_to_dictionary()`

* Scale image works with indexed mode

* Resizing works with indexed mode

* Fix non-shader rotation not working with indexed mode

* Minor refactor of PixeloramaImage's set_pixelv_custom()

* Make the text tool work with indexed mode

* Remove print from PixeloramaImage

* Rename "PixeloramaImage" to "ImageExtended"

* Add docstrings in ImageExtended

* Set color mode from the create new image dialog

* Update Translations.pot

* Show the color mode in the project properties dialog
2024-11-20 14:41:37 +02:00
..
AnimationExporters Some static typing improvements 2024-03-22 03:07:21 +02:00
Cels Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
Layers Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
AnimationTag.gd [skip ci] Minor static typing and docstring improvements 2024-05-11 17:02:33 +03:00
Cel3DObject.gd Implement the ability to change the font of a 3D text 2024-10-12 16:30:16 +03:00
Drawers.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
Frame.gd Add user data for cels, frames and tags 2024-04-04 01:27:50 +03:00
ImageEffect.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ImageExtended.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
LayerEffect.gd Some static typing improvements 2024-03-22 03:07:21 +02:00
ObjParse.gd Port to Godot 4 (#900) 2023-09-04 16:29:06 +03:00
Project.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ResourceProject.gd Added a way to modify shader textures (#1096) 2024-09-03 03:38:56 +03:00
SelectionMap.gd Add border selection, fix some missing translation strings 2024-11-15 01:41:44 +02:00
ShaderImageEffect.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ShaderLoader.gd Fix layer effect slider values being rounded to the nearest integer 2024-11-12 00:47:53 +02:00
SteamManager.gd Optimize Steam achievement requesting 2024-07-31 05:06:02 +03:00
Tiles.gd Some static typing improvements 2024-03-22 03:07:21 +02:00