Manolis Papadeas
02a74d498c
Fix shape tool previews not being updated when modifier keys are being pressed
2021-12-06 19:11:50 +02:00
Manolis Papadeas
af86856dc6
Added a clipboard pattern button
...
It starts empty and gets updated every time the user copies something.
2021-12-05 18:37:15 +02:00
Manolis Papadeas
59ee60151e
Change "Rectangle Select" undoredo action to "Select"
2021-12-02 13:25:20 +02:00
Manolis Papadeas
67ec887ad1
Just one method for undo/redo in Global.gd
2021-12-02 02:22:32 +02:00
Manolis Papadeas
f70efe3076
Move new_empty_frame() to Project.gd from Canvas.gd
...
This commit also changes the behavior of the fill color. The new cels now only get filled with the Project.fill_color if they are on the bottom layer.
2021-12-01 20:50:50 +02:00
Manolis Papadeas
4c60ef144f
Fixed project not having the correct size if the default image size has been changed in the Preferences
...
Ideally, the new_empty_frame() method should be removed from Canvas and should probably go to Frame or Project.
2021-12-01 20:02:39 +02:00
Manolis Papadeas
f7ef4a4283
Remove handle_undo() and handle_redo() from Canvas.gd
...
Getting rid of some old, unneeded code.
2021-12-01 17:49:22 +02:00
Manolis Papadeas
72aef23cce
UI changes to the onion skinning settings
...
Also changed the ignore text to the "_io" suffix instead of "ignore_onion", because this is quicker to type.
2021-12-01 02:28:12 +02:00
Manolis Papadeas
e2a68c4ba4
Add an underscore to private method's names
...
As a way to differentiate between public and private methods, as per the official GDScript naming convention. Haven't changed all of the codebase yet, just some scripts that had a lot of public methods. This fixed 4 of the 7 errors of the linter.
2021-11-29 17:12:30 +02:00
Manolis Papadeas
540a61ae4d
Merge onion skinning past and future into one script
2021-11-26 03:38:00 +02:00
Variable
159a821dd2
Better Onion Skinning ( #600 )
...
* better onion part (1/3)
changed code and added scripts
* better onion part (2/3)
added some onion variables
* better onion part (3/3)
Added to onion dialog
* removed whitespace that gave static error
2021-11-26 02:55:08 +02:00
Manolis Papadeas
c6b9a1fb82
Format code and add static checks ( #599 )
...
* gdformat .
* Lint code - Part 1
* Format code - Part 2
* Lint code - Part 2
Trying to fix the max allowed line length errors
* Add normal_map_invert_y to the image .import files
Because of Godot 3.4
* Do not call private methods outside of the script's scope
Lint code - Part 3
* Format code - Part 3
* Fixed more line length exceeded errors - Lint code Part 3
* Export array of licenses - Lint code part 4
* Clean hint_tooltip code from Global
Removes a lot of lines of code
* Create static-checks.yml
* Fix FreeType's license
2021-11-25 14:48:30 +02:00
Manolis Papadeas
536250f517
Moved some variables away from Global
2021-11-23 02:36:22 +02:00
Manolis Papadeas
79ff0a8d45
Optimize _input() methods
2021-11-22 21:32:39 +02:00
Manolis Papadeas
4931e50213
Move cursot tool icon visibility to ViewportContainer
...
I have no idea what I was thinking when I put that code inside Canvas' _input()
2021-11-22 18:43:06 +02:00
Manolis Papadeas
f4c903771d
Remove some unneeded yield() calls
...
And minor changes to make the code a tiny bit more clean. I tested this PR, but it still might be a bit risky.
2021-11-17 19:59:14 +02:00
mrtripie
0081aa365a
Guide Color Improvements ( #561 )
...
* Symmetry guide color work
* Changed to semi-transparent guides from red, blend slight blue into symmetry guides for variation
Co-authored-by: MrTriPie <MrTriPie>
2021-11-17 01:48:21 +02:00
Manolis Papadeas
752703878d
Use onready vars for nodes in Global.gd
...
I have no idea why I didn't do that sooner. This cleared over 80 lines of code.
2021-11-16 00:04:50 +02:00
mrtripie
a9039cccd5
Canvas Rotation ( #558 )
...
* Implemented canvas rotation
Co-authored-by: MrTriPie <MrTriPie>
2021-11-13 20:43:37 +02:00
Manolis Papadeas
056cb76a46
Minor code cleanups
2021-11-06 17:23:54 +02:00
Manolis Papadeas
b7e598c438
Fix issue with copying and pasting to a different project that has a smaller canvas
...
Fixes a bug caused by 86e66495b1
2021-10-06 02:02:56 +03:00
Manolis Papadeas
721cab8765
Minor changes that make Pixelorama work with Android
...
Just planting the seeds of a possible Android version, probably tablet-only, at least at first. I do not know when that will happen yet.
2021-10-02 15:08:58 +03:00
Manolis Papadeas
3b7ac1eddf
Fix guides not working properly when the UI is scaled
2021-09-27 01:30:53 +03:00
Manolis Papadeas
86e66495b1
Fix issue with copying and pasting to a different project that has a bigger canvas
2021-09-24 19:23:59 +03:00
Manolis Papadeas
47b20ff5c3
Fix the canvas preview having incorrect zoom when switching between projects
2021-09-04 15:32:44 +03:00
Variable
32dc69fee6
Guide corrections ( #528 )
...
* Fixed guide size
2021-08-30 15:00:04 -07:00
Variable
75059b5b12
Selection fixes ( #527 )
...
* Fix for multiple cel selection issue
Now it will only apply selection to the selected cels that are **visible and unlocked**
* Fix for loss of selection data
This will hopefully fix the selection data loss on toggling layer buttons
2021-08-30 03:24:48 -07:00
Manolis Papadeas
680ab481f3
Don't transform content if layer is locked or invisible
2021-08-30 01:22:13 +03:00
Manolis Papadeas
79e1ab5e61
Remove unneeded Global.update_hint_tooltips() call
2021-08-27 00:49:01 +03:00
Variable
ddc69b8282
Editable zoom ( #523 )
...
* editable zoom change 1
* editable zoom change 2
* editable zoom change 3
* editable zoom change 4
* editable zoom change 4 part b
added upper limit automation for zoom
2021-08-26 14:23:51 -07:00
Manolis Papadeas
1d20295f7d
Keep images unlocked after editing them - Should close #331
...
Not sure if this actually solves the issue or just makes it more rare, but I haven't been able to reproduce any PoolVector locking issues so far. The problem was that images were remained locked essentially all the time, which seemed to cause issues. Maybe other PoolVectors could not get locked?
2021-07-25 21:49:37 +03:00
Manolis Papadeas
983d14c0d1
Fix deleting content not working with undo
2021-07-09 12:59:01 +03:00
Manolis Papadeas
98d41fca14
Remove Global.find_node_by_name()
...
Use the built-in find_node() method instead.
2021-06-26 14:01:07 +03:00
Manolis Papadeas
f5d07e660d
Do not clear content from selection in selected cels when moving if Alt has been pressed beforehand
...
This is about Alt + mouse click when moving a selection. See https://github.com/Orama-Interactive/Pixelorama/issues/129#issuecomment-756799706 for more info
2021-06-23 20:38:17 +03:00
Manolis Papadeas
5b74a4292d
Fix pasting not working properly on multiple selected cels
2021-06-22 01:46:52 +03:00
Manolis Papadeas
ac631e3e3d
Transform selected content of multiple selected cels
...
Does not work with rotation. It might be a good idea to replace this whole system with one that uses a transformation matrix, to handle rotation and skewing more easily in the future. I'm not a huge fan of this current code.
2021-06-19 19:29:32 +03:00
Manolis Papadeas
791e966a71
Update Previews on all mouse events
2021-06-14 19:21:58 +03:00
Manolis Papadeas
de850ce8a1
Ability to select multiple cels and edit them all at once
...
A rather significant change, so, while I have tested it, it might still be buggy. Implements a part of #306 .
2021-06-12 01:06:13 +03:00
Manolis Papadeas
489749e305
Fix division by zero crash
2021-06-01 18:43:23 +03:00
Manolis Papadeas
5e1c9dc73b
Fix bug where you couldn't resize the selection after pasting
2021-06-01 18:19:16 +03:00
Manolis Papadeas
ed229565ad
Resize selection with gizmo from center by holding Control after clicking
2021-05-31 03:04:10 +03:00
Manolis Papadeas
6d2f02b782
Let the user change border color and toggle the marching ants effect in the preferences
2021-05-28 03:46:16 +03:00
Manolis Papadeas
bd085786d5
Fixed issue when pasting and the clipboard image is empty
2021-05-25 22:50:35 +03:00
Manolis Papadeas
a77cc05446
Made brush creation from selection a separate menu option
...
Also works with Ctrl+B. Copying no longer creates a project brush.
2021-05-25 22:48:37 +03:00
Manolis Papadeas
6499c0d3d5
Auto invert preview colors based on the screen color
...
Basically, when the background color of the screen at certain points is dark, the preview at that spot is white, and when it is bright, the preview is white at that spot. This helps to keep the previews always distinguishable, regardless of the background color.
2021-05-17 02:24:49 +03:00
Manolis Papadeas
336594272c
Fix selection resizing issue after having moved the content first
2021-05-12 16:27:35 +03:00
Manolis Papadeas
969b096efc
Alt + mouse click when resizing with gizmos now works as intended when there is an active transformation occurring
2021-05-11 04:15:42 +03:00
Manolis Papadeas
c859834f7c
Fix crash when deleting a frame or layer and there is a transformation occurring
2021-05-10 22:34:40 +03:00
Manolis Papadeas
24da4bd703
Fix selection resizing not keeping the original bitmap after gizmo release
2021-05-10 19:59:55 +03:00
Manolis Papadeas
e86dde2fb5
Do not require confirmation when transforming a selection with invisible contents
2021-05-10 18:44:12 +03:00