1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00
Pixelorama/src/UI/Dialogs
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
..
HelperScripts Fix crash when the theme has no default font, by using Godot's fallback font instead 2024-07-14 16:08:18 +03:00
ImageEffects Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
AboutDialog.gd Update translators in AboutDialog 2024-11-18 17:50:19 +02:00
AboutDialog.tscn Remove Roboto-Italic 2024-10-12 15:36:46 +03:00
CreateNewImage.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
CreateNewImage.tscn Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ExportDialog.gd Allow clipping to selection during export (#1113) 2024-10-01 20:18:58 +03:00
ExportDialog.tscn Allow greater values in the resize slider of the export dialog 2024-10-23 12:02:19 +03:00
ImportPreviewDialog.gd Fix crash when importing brushes and palettes 2024-08-12 02:34:51 +03:00
ImportPreviewDialog.tscn Update the ratio of the AspectRatioContainer in the Import Preview dialog, plus some code cleaning 2024-05-23 01:29:16 +03:00
ImportTagDialog.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ImportTagDialog.tscn Enable exclusive and disable popup_window flags of all the dialogs 2024-07-31 22:49:30 +03:00
ManageLayouts.gd Changes in formatting due to gdtoolkit's new update 2024-10-22 15:54:59 +03:00
ManageLayouts.tscn Enable exclusive and disable popup_window flags of all the dialogs 2024-07-31 22:49:30 +03:00
ModifySelection.gd Add border selection, fix some missing translation strings 2024-11-15 01:41:44 +02:00
ModifySelection.tscn Implement selection expanding and shrinking via the Select menu 2024-11-14 17:59:53 +02:00
OpenSprite.tscn Enable exclusive and disable popup_window flags of all the dialogs 2024-07-31 22:49:30 +03:00
ProjectProperties.gd Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
ProjectProperties.tscn Implement indexed mode (#1136) 2024-11-20 14:41:37 +02:00
SaveSprite.tscn Implement the ability to save with blended images with native file dialogs 2024-08-16 13:59:14 +03:00
SaveSpriteHTML5.tscn Add "include blended images" in SaveSpriteHTML5.tscn, and use save_project() for both desktop and web platforms 2023-12-18 20:55:40 +02:00
SplashDialog.gd Added some ambience to Splash backgrounds (#1039) 2024-07-22 14:56:03 +03:00
SplashDialog.tscn Enable exclusive and disable popup_window flags of all the dialogs 2024-07-31 22:49:30 +03:00
TileModeOffsetsDialog.gd Improve the UI of the tile mode offsets dialog and add an Isometric button 2024-11-15 17:59:57 +02:00
TileModeOffsetsDialog.tscn Improve the UI of the tile mode offsets dialog and add an Isometric button 2024-11-15 17:59:57 +02:00
WindowOpacityDialog.gd Fix formatting and make unused docstrings to comments of the previous commit 2024-10-18 00:01:27 +03:00
WindowOpacityDialog.tscn Enable exclusive and disable popup_window flags of all the dialogs 2024-07-31 22:49:30 +03:00