Made a new "src" folder that will contain the source code files, like all the GDScript and scene files. Please read this for more details: https://www.gdquest.com/docs/guidelines/best-practices/godot-gdscript/
It made no sense to keep scenes separate from their scripts. More file organizing will follow soon.
* Add autosave feature with backup of unsaved new projects.
* Fix wrong indentation on line 205.
* Store backup for every opened file in user://. Some other improvements.
* Remove unnecessary variable.
* Update Translations.pot
Co-authored-by: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
* Add pixel perfect mode for pencil and eraser
* Add Pixel Perfect for left and right tools
Co-authored-by: Dávid Gábor Bodor <david.gabor.bodr@gmail.com>
The bucket tool can now use Patterns instead of colors to fill areas. They get loaded from the "Patterns" folder, similar to how Brushes and Palletes work. You can no longer use brushes for the bucket tool.
* Created feature that will alllow user to open last edited project on Pixelorama startup or open last edited project at will.
Co-authored-by: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
The resulting camera zoom now depends on the window size. More specifically, the main viewport's x size. This formula is purely trial-and-error, and it may not work perfectly, or properly for some screen sizes.
If anyone wants to improve it, feel free to do so!
Caused in CreateNewImage.gd, Global.current_layer = 0 should be under Global.canvas gets set to a new canvas, and after its _ready() method gets executed. The crash occurred when a layer above 0 had transparency less than 100, and a new image was created. _on_OpacitySlider_value_changed() in AnimationTimeline.gd was executed on the old canvas right before it was destroyed, while Global.layers had been cleared.
Also removed _on_OpacitySlider_value_changed() from Main.gd, it served no purpose there.
If the user chooses a brush that is not the pixel or a circle brush and uses the bucket tool, the brush image is used as a pattern that fills the area.
Trying to merge layers into the timeline, and eventually add more features like "share layer with all frames", among others. THIS IS NOT FINISHED, IT WILL *NOT* WORK PROPERLY. Once it is finished, this branch will be merged onto master.
So far only add layer and add frame work, and even they may have some issues. Undoing also does not work properly yet.
The UI is also not finished, as it currently has problems with the scroll containers.