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
Manolis Papadeas
70d5fad9fd
Make selection tool options not editable when there is no selection
2021-05-09 00:56:23 +03:00
Manolis Papadeas
6adb01aac1
Cursor shape no longer changes when a gizmo is being dragged and the mouse cursor goes above another gizmo
2021-05-08 16:06:02 +03:00
Manolis Papadeas
9b54f8a387
Resize selection without contents if Alt is pressed before clicking on a gizmo
2021-05-08 03:54:32 +03:00
Manolis Papadeas
3876c97674
Resizing gizmos with Shift keeps the aspect ratio of the selection
...
This was harder to implement than I thought. It may need some more testing.
2021-05-08 03:40:28 +03:00
Manolis Papadeas
356ddc0038
Implement moving selections with arrow keys
...
Moves selection with contents by default.
Control + arrow keys = Moves & snaps selection to grid.
Alt + arrow keys = Moves the selection itself without the contents.
2021-05-07 04:33:28 +03:00
Manolis Papadeas
ea8bfcd25d
Remove drawn_rect from Selection.gd and use draw_preview() in RectSelect.gd instead
2021-05-04 19:26:06 +03:00
Manolis Papadeas
6203b3a71c
Minor UI changes in the tool options of shape tools
2021-05-04 13:26:07 +03:00
Manolis Papadeas
8f846fe04a
Fix out of bounds errors with selection intersection
2021-05-03 03:09:32 +03:00
Manolis Papadeas
3ad3697c84
Fix issue with gizmos not working if the user has moved the selection with contents first
2021-05-03 02:08:53 +03:00
Manolis Papadeas
8f1c6bb3d3
Move selection with contents by default with all selection tools
...
Now, if you want to move the selection itself without its contents, you have to do Ctrl + Alt + Mouse click. Works the same with all selection tools.
2021-05-03 02:00:07 +03:00
Manolis Papadeas
4a1fcc4ca7
Add position and size as selection tool options
...
This allows the user to easily move and resize selections
2021-05-01 03:10:23 +03:00
Manolis Papadeas
a7cec3424a
Restore project brush creation when copying
2021-04-24 14:50:36 +03:00
Manolis Papadeas
320c538bc3
Add enter and escape as input actions
2021-04-23 23:47:42 +03:00