Commit graph

8 commits

Author SHA1 Message Date
Manolis Papadeas
76575a1c80 UndoRedo for border moving
Nothing else in the selections system works properly in UndoRedo right now. Needs:

- UR support for creating selections
- UR support for modifying selections (merging and cutting selections together)
- UR support for removing selection
- UR support for moving content

& for all the rest of the remaining features
2021-02-25 01:38:00 +02:00
Manolis Papadeas
4574c9b60d Move some methods from SelectionShape.gd to Selection.gd
The purpose of this is to generalize some selection code, so that it applies to all polygons, the entire selection. More will follow.
2021-02-23 04:05:56 +02:00
Manolis Papadeas
ac5d492298 Move selection with contents with the move tool
Code is still a mess, don't bother looking.
2021-02-22 18:43:39 +02:00
Manolis Papadeas
a4641a0eb2 Split polygon into two with selection subtracting 2021-02-16 01:49:13 +02:00
Manolis Papadeas
5160c74e99 Fix rectangle selection clipping 2021-02-16 01:21:56 +02:00
Manolis Papadeas
cc69730eff Change default rectangle select behavior and ability to clip polygons using Control 2021-02-16 01:07:39 +02:00
Manolis Papadeas
d8c78331f0 More experiments I may or may not need
Trying to generate a polygon from the individual selected pixels
2021-02-15 23:45:44 +02:00
Manolis Papadeas
f3fb98e068 Rename SelectionRectangle to SelectionShape, make it have non-rectangular shape and multiple SelectionShapes can exist
- Create multiple selection rectangles
- Merge them together if they intersect
- Move the selections (without contents as of right now)
- Gizmos are being drawn but they are not functional yet

Code is very ugly.
2021-02-13 16:56:21 +02:00
Renamed from src/SelectionRectangle.gd (Browse further)