Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New selection system #474

Merged
merged 69 commits into from
Apr 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
d3930ef
Basic move tool
OverloadedOrama Feb 6, 2021
a8c5765
Added marching ants effect on the selection borders
OverloadedOrama Feb 7, 2021
9d15978
Rename SelectionRectangle to SelectionShape, make it have non-rectang…
OverloadedOrama Feb 13, 2021
1241a4d
Sort vectors counter-clockwise to be used as polygon borders
OverloadedOrama Feb 14, 2021
ec709f6
More experiments I may or may not need
OverloadedOrama Feb 15, 2021
bebb1b4
Change default rectangle select behavior and ability to clip polygons…
OverloadedOrama Feb 15, 2021
e2cf34e
Fix rectangle selection clipping
OverloadedOrama Feb 15, 2021
d3196f7
Split polygon into two with selection subtracting
OverloadedOrama Feb 15, 2021
d358564
Move selection with contents with the move tool
OverloadedOrama Feb 22, 2021
ac057db
Move some methods from SelectionShape.gd to Selection.gd
OverloadedOrama Feb 23, 2021
e2c3df2
UndoRedo for border moving
OverloadedOrama Feb 24, 2021
d0709c8
Moving all of the selection shape logic to Selection.gd
OverloadedOrama Mar 2, 2021
d919599
Move tool works again
OverloadedOrama Mar 3, 2021
2df3b62
Remove unneeded code and restore selection move undoredo logic
OverloadedOrama Mar 5, 2021
d7e4c55
Made Selection.gd have one big preview_image for when moving content,…
OverloadedOrama Mar 6, 2021
468bd65
UndoRedo support for creating, deleting, merging and clipping selections
OverloadedOrama Mar 8, 2021
e9f62cb
Confirm & cancel selection movement, should support undoredo properly…
OverloadedOrama Mar 12, 2021
3db897c
Mirror View affects selection
OverloadedOrama Mar 13, 2021
4f49e30
Restore Cut, Copy, Paste and Clear Selection
OverloadedOrama Mar 14, 2021
a05b73c
Created a new Select menu, which has Select All and Clear Selection a…
OverloadedOrama Mar 18, 2021
bfa04df
Draw gizmos as rectangles
OverloadedOrama Mar 19, 2021
6f941ae
Made gizmos get drawn in the sides and corners of the big bounding re…
OverloadedOrama Mar 20, 2021
66dc63b
Restore label text
OverloadedOrama Mar 20, 2021
7f685e2
Minor optimization when clipping selections
OverloadedOrama Mar 21, 2021
31aa7c3
Made a Gizmo class, cursor change on hover, has_focus = false on mous…
OverloadedOrama Mar 21, 2021
937ee23
Very basic gizmo resizing, still a WIP, does not work properly yet
OverloadedOrama Mar 23, 2021
9bf8625
Start replacing the array of selected pixels with a BitMap
OverloadedOrama Mar 27, 2021
2c8c7db
Selection works with mirror view
OverloadedOrama Mar 28, 2021
b81a6ca
Draw a black rectangle when the user is making a rectangular selection
OverloadedOrama Mar 30, 2021
a83f426
Make Selection.gd update when undoing/redoing
OverloadedOrama Mar 31, 2021
33b5f9d
Fix brushes not working properly with non-rectangular selections
OverloadedOrama Mar 31, 2021
21003b4
Added invert selection
OverloadedOrama Mar 31, 2021
08c3467
Cache has_selection as a variable for a speedup
OverloadedOrama Apr 1, 2021
839a652
Fix conflict issues with the shape tools
OverloadedOrama Apr 1, 2021
33043f9
Made the bitmap image squared so the marching ants effect will be the…
OverloadedOrama Apr 1, 2021
f956e8b
Some optimizations to call selection_bitmap_changed() less times
OverloadedOrama Apr 2, 2021
0882bf7
Restored almost all of the image effects
OverloadedOrama Apr 3, 2021
0c7ed8e
Fix Selection.gd not updating when changing project
OverloadedOrama Apr 3, 2021
e647ccc
Resize the selection bitmap along with image resize
OverloadedOrama Apr 3, 2021
19a22bb
Restored rotation's old behavior and finally got rid of the selected_…
OverloadedOrama Apr 3, 2021
2a9c255
Resize selection too when using gizmos
OverloadedOrama Apr 3, 2021
f2a38c6
Image and bitmap resizing now uses the original data and begin transf…
OverloadedOrama Apr 3, 2021
cba5106
Cancel transformation now works properly when the selection has been …
OverloadedOrama Apr 3, 2021
3de7b54
Made gizmos resize on mouse motion, fix issues with negative bounding…
OverloadedOrama Apr 5, 2021
c2a1a4a
Resizing can now get out of positive bounds, clearing and inverting n…
OverloadedOrama Apr 6, 2021
a80d366
Flip image when resizing and the bounding rectangle gets flipped
OverloadedOrama Apr 6, 2021
bb2f485
Call move_content_confirm() when inverting selection
OverloadedOrama Apr 6, 2021
06a0255
Attempt to implement selection resizing that goes outside of the canv…
OverloadedOrama Apr 8, 2021
c1c9810
Flip selection when resizing to negative bounding rectangle sizes
OverloadedOrama Apr 8, 2021
2dd1ade
Fix rotation so that it works (almost) properly with selections
OverloadedOrama Apr 8, 2021
050ec26
Experimental gizmo rotation - does not work properly yet
OverloadedOrama Apr 13, 2021
752f5df
Fix some issues with moving selection out of canvas bounds
OverloadedOrama Apr 14, 2021
157a3d3
Fix more issues with selection getting resized outside of canvas bounds
OverloadedOrama Apr 14, 2021
a98e1e6
Update marching ants effect properly when switching between projects
OverloadedOrama Apr 15, 2021
973346d
Made the rotation gizmo part of the gizmos array and resize them base…
OverloadedOrama Apr 15, 2021
8f31643
Remove unneeded parameter from move_bitmap_values()
OverloadedOrama Apr 16, 2021
c28e2b4
Remove more unneeded parameters
OverloadedOrama Apr 16, 2021
d3b7e43
Move the selection only if the cursor is above it and neither shift n…
OverloadedOrama Apr 16, 2021
a05a927
Gradient generation now works on non-rectangular selections
OverloadedOrama Apr 16, 2021
0dce088
Copy/paste marching ants effect offset
OverloadedOrama Apr 16, 2021
5b85cbb
Fix issue with clear selection & UndoRedo
OverloadedOrama Apr 16, 2021
510ce88
Restore the ability to move selection when it's in negative coords
OverloadedOrama Apr 16, 2021
3f70c1c
Made the marching ants offset a Project variable
OverloadedOrama Apr 16, 2021
8d49f29
Made the "from current selection" palette preset work with the new se…
OverloadedOrama Apr 16, 2021
8513fca
Fix out of bounds error when using the rectangular select tool on neg…
OverloadedOrama Apr 16, 2021
2af5e1b
Some code cleanup
OverloadedOrama Apr 16, 2021
3bd7832
Comment out the rotation gizmo for now, since it does not work properly
OverloadedOrama Apr 16, 2021
69019e9
Update marching ants shader params and gizmo sizes when the bitmap ch…
OverloadedOrama Apr 16, 2021
8723e4d
Move some methods around in Selection.gd
OverloadedOrama Apr 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,26 @@ right_ellipsetool_tool={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":true,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":67,"unicode":0,"echo":false,"script":null)
]
}
left_move_tool={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":84,"unicode":0,"echo":false,"script":null)
]
}
right_move_tool={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":true,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":84,"unicode":0,"echo":false,"script":null)
]
}
select_all={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":true,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
]
}
invert_selection={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":true,"pressed":false,"scancode":73,"unicode":0,"echo":false,"script":null)
]
}

[locale]

Expand Down
Loading