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

1377 commits

Author SHA1 Message Date
Emmanouil Papadeas fef8f02fb4 Change color spaces in gradients 2023-10-04 18:19:28 +03:00
Emmanouil Papadeas 331c46c8ee Fix undo/redo history not working when the tool changes 2023-10-02 17:20:24 +03:00
Emmanouil Papadeas e9e80e2a06 Check whether the extension being installed got copied succesfully 2023-09-09 00:03:42 +03:00
Emmanouil Papadeas 0bb6d1ddf5 Use static methods of DirAccess in some places in HandleExtensions.gd 2023-09-08 20:57:25 +03:00
Emmanouil Papadeas 07d3eb4f4b Use nearest filter in the Preview dialog 2023-09-06 03:39:59 +03:00
Emmanouil Papadeas 8fb29e050e Fix formatting 2023-09-05 02:39:01 +03:00
Emmanouil Papadeas 1901078d98 Some static typing and docstring improvements 2023-09-05 02:36:25 +03:00
Emmanouil Papadeas ea71adf308 Implement webp and jpeg exporting 2023-09-05 00:10:40 +03:00
Emmanouil Papadeas 91bfef16b3
Port to Godot 4 (#900)
* Initial conversion

* Hide some dialogs

* Update addons

* Fix errors in scripts

Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()

* Update shaders

* Fix some more errors and signals, rename "pressed" to "button_pressed"

* Even more error fixes and renaming corrections

* Fixed more errors, Pixelorama almost runs

* Update ValueSlider.gd

* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage

* More static function using

* Re-add some of the dialog signals, fix window transparency

* Change instances of popup_hide to visibility_changed

* More more errors and warnings

* Fix more errors and warnings

* Get rid of errors in the output when opening Pixelorama in Godot

* Properly connect most signals without using strings

* Fix some scenes

* Don't load Main.tscn

* Emit signals directly instead of using strings

* Fix Keychain menu nodes

* Get rid of self. on most instances, as setters and getters are now always called

* Some more static typing

* Disable texture filters

* Fix zooming

* Fix int as enum warnings

* Fix tools and rename doubleclick to double_click

* Update tool scenes

* Fix tabs

* Fix create new image

* Use static typing on flood fill to speed it up

* Update static-checks.yml

* Reverts #729 for a speedup, hopefully the bug won't get re-introduced

* Fix TransparentChecker warning

* Re-add Default template

* Fix 3D cels

* Fix rotation

Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264

* Fix UITransparency alignment issue, thanks Variable

* Add missing OptionButton items

Hopefully that should be all of them

* Fix the appearance of CollapsibleContainer

* Change instances of world to world_3d

* Fix tool button backgrounds

* Fix Splash dialog

* Fix brush selection

* Update Main.gd

* Fix About Dialog

* Fix more zooming issues

* Fix canvas preview zooming

* Use signals for queue_redraw on project change

* Fix layer button's look

* Fix gradients

* Some gradient fixes and code cleanups, dithering is still broken

* Fix bucket

* Fix the rest of the undo_redo.add_(un)do_method() cases

* Fix guides

* Fix guide text

* Some small changes in Main

* Update Tools.gd

* Fix palette importing

* Get rid of TODOGODOT4s

* Fix the rest of the dialogs

* Update the rest of the scenes

* Fix onion skinning and frame tag dialogs

* Fix file brushes being imported twice

* Fix palette swatch crashing on double click

* Use nearest filter for some of the windows

* Remove old .tres font files

* Fix language switching

* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools

* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items

This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.

* Clean shortcut-related duplicate code in TopMenuContainer

* Remove DroidSansFallback now that system fonts can be used as fallback

* Remove 3.x settings from project.godot

* Format

* Format gdgifexporter

* Reset Keychain to its original state

* Remove textures from the dark and gray themes

* Remove all textures from the dark theme

* Better static typing in DrawingAlgos

* Use Vector2i for project size

* [Risky commit] Use Vector2i instead of Vector2 for tools

I tested it and everything seems to be working the same as before, but more testing would be appreciated.

* Format after previous commit

* Fix line angle constraint being rotated 180 degrees

This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.

* Fix input map action not found errors when pressing Shift or Control

* Make AnimatePanel bigger, add spring interpolation

* Fix some layouts/extensions/preferences loading errors

* Fix dithering

* Update layout resources

Probably doesn't change anything at all, but I suppose it might be a good thing to do

* Small changes

* Disable filter in ResizeCanvas dialog

* Fix some preferences default button states

* Fix tile mode always having masking on

* Use integers in tile mode

* Fix checkboxes in preferences not working

* More statically typed arrays!

No need to have these # Array of X comments anymore!

* Fix "apply all" for multiple preview dialogs

* Update theme.tres

* Add HeaderSmall theme type variation

* Fix dynamics buttons

* Don't allow sub-zero zoom values

* Let zoom_out_max always remain Vector2(0.01, 0.01)

This fixes zooming on large canvases

* Bump version to v1.0-dev

* Fix ambient light not working on 3D cels

* Fix .obj loading

* Don't allow greater than max values in the zoom slider

* Set maximum zoom value to always be (500, 500)

* Set zoom slider minimum value to 1

* Some UI changes, mostly related to buttons and the timeline

* Change window titles to what they were before

* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels

* Avoid changing Cel3DObject's file_path if it's the same

* Make preferences window bigger

* Fix png exporting

* Fix reference image initial size and filter setting

* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor

* Format and some linting

* Remove most Images from the rest of the themes

* Remove all textures from all themes

* Fix drawing when the mouse gets released outside the canvas boundaries

* Format Keychain

* Implement #890

* Fix recorder

* Fix layout deletion

* Better static typing and fix empty_clicked signal-connected methods not having arguments

* Fix layout and extension directory creation if they don't already exist

* Change all instances of "HTML5" to "Web"

OS.get_name() now returns "Web" instead of "HTML5" in Godot 4

* Fix JavaScript detection

Opening files in the Web version does not yet work for some reason

* Fix formatting

* Fix lint errors

* Remove unneeded lines from rotation shaders

* Clean some rotation shader related code

* Remove ErrorManager from #891, as it's no longer needed in Godot 4

* Some docstrings

* More Vector2i and Recti replacing their float counterparts

* Remove the hardcoded shortcut from ValueSlider

Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.

* Fix bugs from the rebase, integer zooming is currently broken

* Format

* Fix bug where some imported images would fail to load when using smart slice

* Fix integer zooming (I think)

* Fix errors after #898

* Fix some UI issues with PreviewDialog

* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd

* Update Keychain and addons/README.md

* Update CI to Godot 4.1.1 (probably will not work)

* Remove XDGDataPaths.gd

* Make windows non-exclusive

* Attempt to fix macOS CI

* Attempt to fix CI

* Attempt to fix CI

* Minor fix in the dark theme, more will follow

* Silence enumerator/integer warning

* Attempt to fix macOS CI

* Another attempt to fix macOS CI

* Attempt to fix Windows & macOS CI

* fix: Recorder directory create (#903)

* Update Keychain so that the brush size shortcuts can be changed

This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons

* Change OSX to macOS

* Detect if multi-threading is enabled when exporting gifs

* Fix color picker not working on the top color mode

* Make some public methods private in Export.gd

* Remove Global.window_title variable

* Fix frame UI in the timeline breaking after 100 frames

* Static typing improvements for the timeline

* Better static typing for grids

* Fix typo

* Fix pixel grid not appearing

* Move preference updating code to Global using setters

This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.

* Remove RestoreDefaultButton.tscn

* Implement changing font size in the preferences

* Resize HeaderSmall font size along with the default font size

* A step towards fixing image loading in the Web version

Doesn't completely fix the issue, it requires a fix from Godot's side as well

* Implement missing input event actions for buttons

TODO: Add default shortcuts

* Do not change language and theme if they are already the defaults

Reduces the initial loading time a bit

* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools

This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.

* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger

* Fix Vector2i + Vector2 errors in grid center snapping

* Update tooltips when the shortcut profile changes

* Fix copy-paste mistake

* Update tooltips during startup if the shortcut profile is not the default

* Fix gif warning label size in ExportDialog

* Fix BBCode in ExportDialog

* Fix some Godot 4.2 warnings

* Some CI fixes

* Static typing improvements and more inline functions

* Format

* Even more static typing, inline methods, docstrings etc

* Some more static typing improvements and inline setters

* Remove unneeded project type specifying

* Fix splash dialog error

* Fix enumerator warning

* Don't preload the font in the rules and guides

* Fix some integer division warnings

Sometimes we indeed need them to be floats

* Change some Rect2s to Rect2is

* Minor static typing improvements

* Update README, CHANGELOG, Translations

* Only load translation files when needed, reduces loading time a bit

* Update Keychain so it doesn't load languages during startup

* Lazy load all tool scenes, breaks compatibility with the extension API

Decreases initial loading time

* Format

* Very minor loading time speedups

* Remove unneeded project type specifying

* Even more static typing and docstring improvements

* Fix extension loading

* Palette docstrings

---------

Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 16:29:06 +03:00
Emmanouil Papadeas b2c157fa07 Release v0.11.2-stable 2023-08-31 11:38:47 +03:00
Emmanouil Papadeas 016bd67ef9 Update contributors, translators, donors 2023-08-30 15:18:00 +03:00
Emmanouil Papadeas 0cd1ef2c27 Fix snapping distance slider hint tooltip in the Preferences 2023-08-30 15:11:47 +03:00
Variable 5d1b0ccb25
Rectangular grid center snapping (#905)
* implement center snapping

* typo

* allow snap distance in center snapping

* better description of snapping distance

* Update Translations.pot
2023-08-28 14:17:05 +03:00
Emmanouil Papadeas c5970b2edb
Fix mistake caused by a previous commit when re-arranging project tabs 2023-08-26 04:52:08 +03:00
Variable 2dfab468ff
remove old (pre 0.8) .pxo loading code (#904) 2023-08-25 10:04:36 +03:00
OverloadedOrama 5afbc1a4ec Attempt to fix #901 2023-08-20 21:45:35 +03:00
TheLsbt f515dbe57e
Add a silhouette option to reference images (#898)
* Added a silhoutte system to refrence images

* Added translations

* Fixed dialogs visibility

* SilhouetteShader.tres -> Silhouette.gdshader

* Update ReferenceImage.gd

Fixed the linter issue (mabey)

* Update PreferencesDialog.tscn

Copied the code from the Pixelorama's PrefrenceDialog.tscn to my fork.

* Update ReferenceImage.gd

Created a variable at the top of the script.

---------

Co-authored-by: TheLSBT1 <theflowcorporationofficial@gmail.com>
2023-08-15 01:56:43 +03:00
Emmanouil Papadeas 3c8c72401d Release v0.11.1-stable 2023-08-12 13:35:06 +03:00
Emmanouil Papadeas 332a06fb5e Add px suffix in PreviewDialog and new string in Translations.pot 2023-08-07 15:25:33 +03:00
Emmanouil Papadeas 87acad1b0a Change hint tooltip of "merge distance" in the preview dialog 2023-08-07 15:18:03 +03:00
Emmanouil Papadeas 346a416094 [skip ci] Change hint tooltip string of integer zoom 2023-08-06 20:29:40 +03:00
Variable edc6ba5944
Fix a bug in integer zoom (#896)
* Update CameraMovement.gd

* improvement to correction in fit to frame
2023-08-06 18:54:01 +03:00
Emmanouil Papadeas 74e3ff9f0b Add strings for translation 2023-08-06 18:03:56 +03:00
Variable 63091dc90c
Added integer zoom (#894)
* Temporary prevent main.tscn (remove later)

* Added integer zoom

* formatting

* add hint

* updated label text
2023-08-06 16:19:44 +03:00
Variable 42428595c5
Spritesheet Autoslicer (#893)
* Added autoSlicer

* Fixed the remaining things (Autoslicer fully functional)

* Update RegionUnpacker.gd

* Formatting

* formatting

* formatting

* neatify

* Update RegionUnpacker.gd

* formatting

* formatting

* Update RegionUnpacker.gd

* Update README.md

* Added region unpacker class

* Optimized the region unpacker, this should now be twice as fast

addon version: f01526e50db98eea6d4d69db3c241d360887af7f

* change Smart Slicer to 5745b26a6e0b7e10bc4a46d07b5f9f0dd8f26c96

5745b26a6e

* Delete addons/SmartSlicer/Shader directory

* removed shader

* Update SmartSlicer Version

278b1c5a80b2c8b89279e405156d556732ce98d2

* Formatting (This is torture LOL)

2578b74ba84289aa109ae715b4a6c90fd5e23126

* Delete addons/SmartSlicer/addons/SmartSlicer/Classes directory

* Formatting

Version remains same

* Delete SmartSlicePreview.gd

* use _draw instead of line2d

and moved SmartSlicerPreview.gd for better organization

* Formatting

* More formatting

* Fix bugs related to import

* fix crash on attempting to open empty image

as new spritesheet tab (smart)

* removed accidental print

* fix empty image warnings
2023-08-06 14:56:39 +03:00
Emmanouil Papadeas 17fc3d0fcb Support bmp and tga image files in the Web version 2023-08-01 21:16:54 +03:00
Emmanouil Papadeas 996fb17304 Fix error caused by #891 2023-07-31 02:23:03 +03:00
Variable eec986b466
Error elaborator (#891)
* elaborate error messages

* removed accidental change

for some reason godot changes main.tscn gets changed when i open it

* Update Main.tscn

removed accidental change part 2

* formatting

* formatting

* formatting

* lint ignore
2023-07-29 19:19:17 +03:00
Emmanouil Papadeas 51268362c6 Add palette file types as filters to the Open file dialog 2023-07-19 21:01:30 +03:00
Matteo Piovanelli 8fd306b734
Compress image data that is memorized for undo/redo operations (#890)
* Compress image data that is memorized for undo/redo operations

* Fixed formatting issues
2023-07-18 20:39:36 +03:00
Emmanouil Papadeas e195e32e00 Update translators 2023-07-16 15:24:14 +03:00
Emmanouil Papadeas 19f82021b8 Fix crash on generating a palette from the current project, and non-pixel cels exist 2023-07-09 15:48:49 +03:00
Emmanouil Papadeas 6e46cf0c8d Minor code/scene changes
Renames "Centralize" to "Center", as it is a more appropriate verb.
2023-07-08 17:47:24 +03:00
Emmanouil Papadeas 8ab4d05327 Don't save the project's name inside the pxo
Instead, get it from the file's name
2023-07-08 17:28:44 +03:00
Variable fa892e1fee
[ExtensionsAPI] New SelectionAPI and more project methods (#885)
* Added more project methods

* Added selection methods

* added resize selection

* formatting

* bug-fix
2023-07-06 02:52:27 +03:00
Variable 26aa9bda38
Move Centralize Image to the frame menu (#884)
* moved centralize to frame menu

And make it effect on selected frames

* Formatting (1 of 2)

* Formatting (2 of 2)
2023-07-05 02:00:36 +03:00
Emmanouil Papadeas a099e2195d Add offset image to Keychain 2023-07-04 14:52:48 +03:00
Emmanouil Papadeas 1372d12a8f Fix ease type and interpolation not remembering their selected options 2023-07-04 13:58:20 +03:00
Emmanouil Papadeas 08064098b8 Add an offset image effect
Some functionality as the move tool, but with more precision, wrap around ability and of course animation.
2023-07-04 03:29:58 +03:00
Emmanouil Papadeas 81c0b49c59 Add animatable properties to the Gradient effect 2023-07-04 00:20:55 +03:00
Emmanouil Papadeas eac7def5b4 Add allow greater and lesser to the image effect animatable property sliders 2023-07-03 22:51:52 +03:00
Emmanouil Papadeas 6dc07d0ca2 Rename get_animated_values to get_animated_value 2023-07-03 22:45:45 +03:00
Emmanouil Papadeas 605461e968 Add image effect animatable property translation strings 2023-07-03 22:26:31 +03:00
Emmanouil Papadeas 56f7b9ccde Add a new Timeline category in the Preferences
Revert 21b4f3369f, but make that behavior toggle-able in the Preferences. Also exposes the onion skinning colors for the past and future frames, and renames "Blue-Red Mode" to "Color mode".
2023-07-02 22:18:39 +03:00
Variable ae56cae587
ImageEffect Animation 2.0 (#879)
* Better Animate System

* checkbutton to checkbox

* fixed value and saturation sliders being divided by 360 (when they should be divided by 100)

* minor code cleanup

* moved frame index code to ImageEffect.gd

* code cleanup

* more cleanup

* preview animation is now possible

* fixing things

* only hide when affect == FRAME

* formatting

* formatting

* formatting

* renamed Animate.png and a minor improvement

* removed unintentional changes
2023-07-01 00:01:14 +03:00
Hamster 3dd4806154
Set alignment of the LineEdit in Export Dialog to Left (#880) 2023-06-22 00:12:20 +03:00
Variable 3513ea73e1
Rearrange image menu (#878)
* Update Image menu Enum

* Rearrange Image menu
2023-06-17 00:16:56 +03:00
Emmanouil Papadeas 9e8f0a95f9 Call change_cel() in Project.reverse_frames() 2023-06-16 19:38:39 +03:00
Emmanouil Papadeas e9a18f8ea6 Make frame properties be for all selected frames
And fix issue where the clone, remove and reverse frames always only affected the selected frames and not the frame where the right click occurred (bug introduced some commits ago, it's not present in v0.11).
2023-06-16 19:14:00 +03:00
Emmanouil Papadeas 1d1b8d5984 Clean up duplicate layer code in Project.gd 2023-06-16 18:32:08 +03:00
Emmanouil Papadeas e6c5f88c0b Add a reverse frames menu option in the right click frame menu
Is enabled only when multiple frames are selected.
2023-06-16 18:28:05 +03:00
Emmanouil Papadeas 7ce3bd534a Auto-enlarge the canvas if the imported image is larger than the canvas size 2023-06-16 17:16:32 +03:00
Emmanouil Papadeas 180aab6360 Remove and copy frame options on the right click menu of the frames now affect all of the selected frames
This behavior is consistent with the clone and remove texture buttons
2023-06-16 16:18:57 +03:00
Emmanouil Papadeas 494673e7bc Add export dialog options for including the tag names in the file names, and the ability to change the separator character
The frame number digit count is now 4, so for example exported files are being named as "name_0001.png", "name_0002.png", ... "name_0010.png" and so on. The tag name is now not included in the file name by default.
2023-06-16 04:16:19 +03:00
Variable b75903286c
[Continuation] Auto select cloned frames, reuse tag animations (#861)
* Duplicated frames

* Added Clone Tag feature

* fix remaining tag issues

* Update AnimationTimeline.gd

formatting

* formatting

* formatting

* add icon and other remaining stuff

* formatting

* formatting

* Update AnimationTimeline.gd

* Update AnimationTimeline.gd

* some bug fixes

* some bug fixes

* make empty tags appear as (Untitled)

* linting

* Delete copy_frame.png

* Delete copy_tag.png

* Add files via upload

* removed separate button and use tag button

* UI improvements to

"Paste content from tag"

* remove some lines that appeared 

during resolving conflicts

* Update AnimationTimeline.gd

* moved paste tag code to it's own script

to reduce lines to 1000 in animation timeline.gd

* formatting

* Add files via upload

* test lint disabling

* Update AnimationTimeline.gd

* increase max file lines to 2000

* Removed accidental changes by commit:.....

1902938b98

(Due to my bad habit of dragging and dropping files instead of using git)
2023-06-15 18:28:13 +03:00
Emmanouil Papadeas 98cef503c2 Fix various typos 2023-06-15 18:00:29 +03:00
20kdc 51998092d9
Update opacity across selected frames (#865)
* Update opacity across selected frames

* Opacity frames update: Remove unnecessary frame poking
2023-06-15 13:48:29 +03:00
Variable a176622b18
Fix Ok button Text of Save and Export Dialog (#876)
to "Save" (also changes to "Save & Quit" when needed) and "Export"
2023-06-14 00:10:36 +03:00
Emmanouil Papadeas 8d5122f54c Release v0.11-stable 2023-06-13 18:05:37 +03:00
Emmanouil Papadeas 6f2e2e89ba [skip ci] Add a release date for v0.11 2023-06-13 17:53:06 +03:00
Emmanouil Papadeas 90ac3f60cb Update splash screen artworks to v0.11
Congratulations on all the winners! For roroto's animation, the apng importer is now being used.
2023-06-13 15:01:16 +03:00
Emmanouil Papadeas e7ff9a6c2e Update AboutDialog.gd 2023-06-04 23:09:28 +03:00
Emmanouil Papadeas e073790ca2 Update donors 2023-05-28 16:36:54 +03:00
Variable 10245ea056
[Targeted for 0.11.0] Export options to extension (#869)
* Added Export Options

* some improvements

* Improvements

* linting

* don't add format if it's already added

* Fix some more bugs

* fixed accidental change

* add accidentally deleted signal
2023-05-27 17:29:53 +03:00
Variable c3b0e45205
Export Gif Message (#868) 2023-05-24 12:20:36 +03:00
Variable 35e5340bd6
[Targeted for 0.11.0] Additions to ExtensionsAPI (#867)
* clear layer option button before adding new items

* removed some unneeded things and add new things

* Update ExtensionsAPI.gd

* typos
2023-05-23 19:02:34 +03:00
Variable e6cb05fe0d
limit onion sliders to 10 (#866) 2023-05-19 16:15:21 +03:00
Variable 74fea47a8c
[Targeted for 0.11.0] Make Onion skin update live with the "Move" tool (#862)
* Make onion skin consistent with move tool

* Update OnionSkinning.gd
2023-05-18 14:43:11 +03:00
Emmanouil Papadeas 361fe36d7a Make the horizontal bar of the timeline's frame buttons visible
This is useful for users that do not have a mouse wheel, such as touchscreen users. Changing themes also changes the theme for the frame buttons automatically as well.
2023-05-18 14:40:25 +03:00
Emmanouil Papadeas 1669cc1a42 [skip ci] Fix some typos in the code 2023-05-18 14:10:15 +03:00
Variable 243bb1d9aa
fix tag bug (#863) 2023-05-18 14:01:59 +03:00
Variable fdb962ba3b
Changes to PanelAPI (#858)
1) Added tab is now set by layout instead of specifying an "alongside_node"
2) Added tab is now shown in the Panels submenu
2023-05-18 13:58:41 +03:00
Variable 67a94ccc10
[Targeted for 0.11.0][Bug FIX] Mirror preview fix (#860)
* fix mirror previews

* Fix incorredt selection resizing of selection

in mirror mode

* Fix mirror previews (selection tools)

* typo
2023-05-18 13:55:08 +03:00
Emmanouil Papadeas fb4b26a060 Change occurrences of canvas_preview.frame to canvas_preview.frame_index 2023-05-17 17:34:53 +03:00
Variable 55bc6e5a8b
[Targeted for 0.11.0] Some more fixes to cel dimming in 3d cel (#856)
* hacky way to fix 3d cel dimming

* a fix
2023-05-15 16:26:50 +03:00
Variable 29b03b0332
[Targeted for 0.11.0] Fix Onion skin settings don't save between runs (#857)
* Onion skin settings don't save between runs

* formatting

* Change some spinboxes to valuesliders

* removed un-needed signals
2023-05-14 13:31:15 +03:00
Emmanouil Papadeas 308a3a2416 Fix bug where undoing after pasting, did not make the previous selection appear 2023-05-12 13:28:53 +03:00
Emmanouil Papadeas 362f4109d4 Fix issue where resizing pasted content resulted in errors 2023-05-12 13:24:49 +03:00
Emmanouil Papadeas 23720afd05 Hacky fix for a bug that makes panel tabs visible if a panel's visibility is toggled 2023-05-11 17:32:08 +03:00
Emmanouil Papadeas 298f495993 Fix a bug from #855 2023-05-11 00:35:39 +03:00
Variable e65e69f14d
Make cloned 3D cel have the same selected object as the orignal (#855)
* Update 3DShapeEdit.gd

do not set selected to null

* clone cel recieves selected cel from it's parent

* Add one more yield
2023-05-10 13:45:38 +03:00
Emmanouil Papadeas a2e184c05d Call canvas.sprite_changed_this_frame on the 3DShapeEdit tool
Fixes the dimming status of the cel button in the timeline
2023-05-09 18:47:57 +03:00
Emmanouil Papadeas 390eca554c Remove the default cube from 3D cels 2023-05-09 16:39:35 +03:00
Emmanouil Papadeas 08996fe6de Add a Cel3DButton scene for 3D cels instead of using PixelCelButton
Mostly to remove the popup menu that appears when you right click a cel
2023-05-09 16:37:32 +03:00
Emmanouil Papadeas e5aeedf3e8 Raise the vertical minimum size of the canvas preview panel 2023-05-09 14:39:14 +03:00
Emmanouil Papadeas 018673690c Minor UI change for the canvas zoom and rotation sliders 2023-05-09 13:01:24 +03:00
Emmanouil Papadeas 3052d2756e Optimize linked cels emitting the texture_changed signal, if multiple cels are selected 2023-05-09 01:29:03 +03:00
Emmanouil Papadeas 6b94b55f04 Fix linked cels remain dimmed even if they have content 2023-05-08 17:43:11 +03:00
Emmanouil Papadeas 5436298947 [3D cels] Do not display the object outline if it's behind the camera 2023-05-08 17:40:11 +03:00
Manolis Papadeas aa47133f9f Emit project_changed and cel_changed signals when opening a project that replaces the old one 2023-05-06 20:31:52 +03:00
Variable d266c87269
Fix top color picking (#854)
* fix tool

* fix default color picking
2023-05-06 14:50:37 +03:00
Emmanouil Papadeas 6dac85486a Prevent 3D gizmos from overlapping with each other 2023-05-06 14:49:59 +03:00
Emmanouil Papadeas f1b4b77745 Fix recorder not saving all layers and add more static typing 2023-05-06 14:33:44 +03:00
Emmanouil Papadeas 09c3ea1c2a Fix 3D layer current_object_id being sometimes wrong when loading pxo files
Previously, it was set to the size of the object_properties dictionary, but if the user has deleted objects, the object id would be higher than the size of the dictionary, since current_object_id never decreases.
2023-05-05 15:15:02 +03:00
Emmanouil Papadeas cf55332f18 Fix 3D Shape Edit text field cursor position changing when typing text 2023-05-05 12:43:23 +03:00
Emmanouil Papadeas e91921e832 Fix typo 2023-05-05 01:34:22 +03:00
Emmanouil Papadeas 2ed3605f0f Update contributors, translators and donors 2023-05-03 14:12:33 +03:00
Variable 44c2df98e0
Signal api (#851)
* New SignalAPI

* more project methods

* re-order

* Update ExtensionsAPI.gd

* some fixes

* fixes

* more fixes

* Fixes

* typo

* added a required `project_changed`

* Update ExtensionsAPI.gd

* Update ExtensionsAPI.gd
2023-05-01 12:50:15 +03:00
Emmanouil Papadeas 860370bd4e Add a get_class_name() method in the cel classes
I wish Godot had a method for this already
2023-04-30 14:52:01 +03:00
Emmanouil Papadeas 162d0bd2a5 Fix selection tile mode crashing when enabling it 2023-04-28 16:38:14 +03:00
Variable 7b189cc45e
TileMode for selection, (plus some other fixes) (#834)
* Tilemode selections

* Selection TileMode

* Fixed some bugs with the ORIGINAL tile mode

Image brushes needed to be adjusted

* remove behaviour checkbutton

* fixed remaining things

* formating

* formatting

* formatting

* formatting

* fix crash on rotating image

* Fix Color getting transparent on double chicking

same swatch twice

* typo

* typo

* Update RotateImage.gd

* Use sheckbox instead of option button

* make checkbox directly under select menu
2023-04-27 12:22:32 +03:00
Emmanouil Papadeas 7c14af7129 Add Cel3D in ExtensionsAPI 2023-04-26 10:52:20 +03:00
Emmanouil Papadeas 118e2e7671 Move set_nodes() logic to parent class ImageEffect
Also fixes a crash when trying to change the affected cels option in image effects that do not have animation options
2023-04-20 22:29:03 +03:00
Emmanouil Papadeas 0fe315d605 Remove separator from the image menu
Temporary, easy fix bug where assigning a shortcut to an image effect, actually assigned it to the one above.
2023-04-20 16:49:31 +03:00
Emmanouil Papadeas 91b1186d6f Remove unneeded shader parameters
Also changed the parameter names in HSV to reduce some lines of code
2023-04-20 16:21:09 +03:00
Emmanouil Papadeas 483e7df52e ValueSlider arrow buttons now respect snap_by_default 2023-04-20 16:11:16 +03:00
Emmanouil Papadeas ec2dcae8f7 Add a Posterize image effect, with optional dithering
Seems to produce the same result as GIMP's Posterize color filter. Should be useful for reducing the colors of an image, and it could work together with 3D lighting. Thanks to https://godotshaders.com/shader/color-reduction-and-dither/ for the shader.
2023-04-20 16:08:06 +03:00
Emmanouil Papadeas 9607981567 Do not call CameraMovement._input() if the cursor is not on the canvas
Slight optimization, as only one camera can now receive input at a time.
2023-04-19 21:35:29 +03:00
Emmanouil Papadeas 1a9691052e Only redraw the second canvas and canvas preview when necessary
Should optimize things ever further. Hopefully I didn't break anything.
2023-04-19 20:51:08 +03:00
Emmanouil Papadeas 0ffd34a4d6 Small optimization in CanvasPreview
On large canvases (like 4096x4096), simply moving the mouse around was laggy. It turns out that texture_to_draw = current_cels[i].image_texture was causing the lag, but I'm not sure why. It could be that texture_to_draw was a Texture and not an ImageTexture.

There is still some room for optimization, both the second canvas and canvas preview are being drawn on _input(), which is unnecessary.
2023-04-19 20:35:27 +03:00
Emmanouil Papadeas 72a7b277fb Use a ValueSliderV2 in the gradient dialog, and reverse the radius logic
The larger the radius value, the larger the circle, as it should be
2023-04-19 03:44:28 +03:00
Emmanouil Papadeas b1f355702e Add camera FOV and size to the 3D layers
Orthogonal projection is now more usable
2023-04-18 21:04:13 +03:00
Emmanouil Papadeas 1187b0bc49 Load cleanEdge shader when the rotate image or scale image dialog is shown
This should save some time on initial loading, but it introduces a slight loading time when opening the scale or rotate dialog for the first time in a session
2023-04-18 20:08:00 +03:00
Emmanouil Papadeas d04aa5ee56 Add snapping distance slider in the preferences 2023-04-18 17:20:13 +03:00
Emmanouil Papadeas 9d848c4f68 More ValueSliders in the Preferences 2023-04-18 17:03:51 +03:00
Emmanouil Papadeas 1325aaa13f Use ValueSliderV2s for grid preferences 2023-04-18 16:38:55 +03:00
Emmanouil Papadeas 02aa91a394 Fix camera jitter when zooming in the canvas 2023-04-17 18:09:49 +03:00
Emmanouil Papadeas 1196fb5b0b Use ValueSliders for the canvas zoom and rotation
Should also clean the code a little bit
2023-04-17 02:07:48 +03:00
Emmanouil Papadeas 5c8cf56f8f Make snapping distance change based on the zoom
Should work similarly to GIMP now
2023-04-16 21:15:40 +03:00
Emmanouil Papadeas 23198a84aa Small canvas preview UI changes and translation string additions 2023-04-15 13:46:42 +03:00
Chris Tsoychlakis db29ec9f0f
fixed mirrored drawing (#843)
* fixed mirrored drawing

* fix mirrored drawing
2023-04-14 15:56:08 +03:00
Variable d40b9744ed
fix canvas preview only showing first layer (#844) 2023-04-12 13:24:19 +03:00
Emmanouil Papadeas 2bca2db27a Add more licenses to the AboutDialog 2023-04-08 00:34:38 +03:00
Emmanouil Papadeas 6700a72e73 Sort contributors and donors in AboutDialog in alphabetical order 2023-04-07 03:01:02 +03:00
Emmanouil Papadeas d68032fbda Fix previous commit to only show the notification once 2023-04-07 02:16:52 +03:00
Emmanouil Papadeas 272ea63615 Only show the "File(s) exported" notification on successful export 2023-04-07 02:09:49 +03:00
Emmanouil Papadeas 60997723e2 Create a parent scene for the image effects
This helps with shared nodes, such as the preview, the affect selection, cels etc options, and the animation properties
2023-04-04 04:19:18 +03:00
Emmanouil Papadeas 8ce68700dd 3D object optimizations 2023-04-02 01:36:02 +03:00
Emmanouil Papadeas 4943ab5eab Add pxo version to pxo files, starting from 2
Its value should increase every time there is a compatibility-breaking or a major change between previous pxo files, similar to extensionsAPI version.
2023-04-01 02:16:24 +03:00
Emmanouil Papadeas 91aea32864
Implement 3D layers (#840)
* Implement 3D layers

* Remove unneeded files

* Fix bug where a single hidden layer would ignore all of the layers on top when exporting

* Fix pxo loading

* Remove junk nodes from 3DShapeEdit

Seems like they were created when I copied from the old 3D Options.tscn panel to the new 3D Shape Edit tool.

* Make light gizmos half the size, and hide gizmos when rotating

* Fix crash when using the 3D shape edit tool on a group layer

* Remove unneeded code in Canvas.gd

* Add torus in the Cel3DObject.Type enumerator

Torus isn't currently supported in Godot 3.5, but it is in 3.6 and 4.0, so this is just future-proofing. May break compatibility with .pxo files that were exported with 3D layers before this change.

* Toggle 3D object visibility

* Change texts and some variable names

* Fill translation strings

* Fix crash on group blending, and make the code in Export.blend_layers() more general

* Fix errors when attempting to draw on a 3D cel

Can occur when multiple cels are selected, some of them 3D and some of them pixel

* Make scene properties and objects be per-cel instead of per-layer

Breaks compatibility with previous .pxo files that had 3D layers. Also introduces serialize() and deserialize() methods to BaseCel

* Use if not layer is get_script() in GroupLayer.blend_children()

* Flip the condition in GroupLayer.blend_children()

* Fix bug where locked/invisible layers could get drawn

Regression from c2f6bf0f3f

* Move gizmo code to 3DShapeEdit's draw_start(), move some undo/redo logic to 3DShapeEdit

* Move all of the undo/redo code to 3DShapeEdit, simplify code in Cel3D

* Store Cel3D image data to pxo, for easy usage by external software

This makes importing projects with 3D layers to other software, such as Godot using godot_pixelorama_importer easier.

* Make the linter happy

* Fix bug where the previously selected object would remain selected when it got removed with undo
2023-03-31 21:58:56 +03:00
Emmanouil Papadeas 5f290ae343 Change resize SpinBox to ValueSlider in ExportDialog 2023-03-30 18:20:55 +03:00
Emmanouil Papadeas 78fda42743 Remove unneeded lines in AnimationTimeline.gd 2023-03-29 15:24:30 +03:00
Emmanouil Papadeas 5c9f0d8c18 Fix bug where, if the bottom-most layer is invisible, selection can't transform content on other layers 2023-03-27 03:42:16 +03:00
Emmanouil Papadeas 6b587688f1 Fix bug where clicking on previous/next frame when only one frame exists makes the cel unselected
Apparently this bug exists at least since v0.10
2023-03-27 00:24:40 +03:00
Emmanouil Papadeas 2ce9f72c51 Use a ValueSliderV2 in the drop shadow dialog 2023-03-26 21:33:33 +03:00
Emmanouil Papadeas 4e9b4c33f7 Fix LayerButton drag and drop passing wrong parameter to BaseLayer.accepts_child()
It was passing the index of the layer as an integer instead of a BaseLayer class. Also made some code stylistic changes.
2023-03-25 18:42:50 +02:00
Variable b384e706a9
Animate image effect properties (#836)
* Added auto animation system

* Animation to dialog

* Added Animated properties

* animate ranges

* formatting

* Fix missing commit

* Formatting
2023-03-25 16:59:02 +02:00
Emmanouil Papadeas acf376865f Fix crash when there is no pixel layer in the timeline, only a group layer 2023-03-24 17:37:40 +02:00
Emmanouil Papadeas acb32844a1 Replace the Locked Aspect Ratio mode in the crop tool with a lock button next to the size sliders 2023-03-24 01:17:30 +02:00
Variable 2ad1391ca1
Spritesheet Animation Canvas Preview (#835)
* spritesheet preview

* formatting
2023-03-23 15:25:33 +02:00
Emmanouil Papadeas 4e7d5d34cf Keep aspect ratio when resizing a selection with gizmos, if the button is pressed next to the ValueSliders
Also fixes a bug with the inconsistent behavior caused by resizing a selection with gizmos without pressing Shift, while the keep ratio button was pressed.
2023-03-21 16:36:25 +02:00
Emmanouil Papadeas 99b014ef7f Fix segmentation fault when resizing canvas to a large size
For some reason, cel_texture.texture.get_data() seemed to cause a segmentation fault, and then a crash, when the image size was large. Also added some extra static typing to the drag and drop methods, but they are unrelated to the crash.
2023-03-21 02:06:57 +02:00
Emmanouil Papadeas d4ebf9c585 Use Vector2s for min and max values in ValueSliderV2
This lets us have different min/max values for x and y.
2023-03-21 01:45:09 +02:00
Emmanouil Papadeas a5496daa5b Add a ValueSliderV2 to the Pencil's spacing options 2023-03-20 20:28:01 +02:00
Emmanouil Papadeas 05fa436b12 Disable ValueSliderV2's ratio button when set to not editable
And use a NinePatchRect for the ratio guides, for proper scaling.
2023-03-20 01:59:15 +02:00
Emmanouil Papadeas e174f6e942 Add a new custom node, ValueSliderV2
ValueSliderV2 is a container for two ValueSliders and an optional lock ratio button, that helps with handling Vector2 values in the UI.
2023-03-20 00:56:43 +02:00
Emmanouil Papadeas 5ed91c6d8a Fix ValueSlider's text color from staying grayed out even if the slider is editable 2023-03-19 00:36:37 +02:00
Emmanouil Papadeas df00e43b84 Do not allow the ValueSlider's global shortcut to affect it if it's hidden 2023-03-18 14:29:11 +02:00
Emmanouil Papadeas b5388093ef Add a minimum size to CanvasPreviewContainer
Fixed issues with the UI system, when changing the tab to Reference Images and then back to Canvas Preview
2023-03-17 01:24:20 +02:00
Emmanouil Papadeas c43f28b323 Manage layout dialog UI changes 2023-03-17 01:20:17 +02:00