Closed SimonBuxx closed 3 years ago
I'm on it. Objects can be selected by now, but not deselected at the moment. Replacing the selected objects (in the code) causes a few bugs with certain customs not working right. But moving and deleting will be implemented soon (hopefully). There could be smaller problems with copying, but nothing too bad. I'll tackle that when everything else about selection is done.
Is this comment up-to-date ? I think moving and deselecting works just fine
Moving is now implemented and also works with undo/redo. Closing this one after copy and delete are implemented
Delete is now implemented, only copy left
Selection-deleting wires is more complicated than I thought, as the selection only contains the bundled wires but you have to also delete the single segments from the array. Other elements can be deleted now, but only some of them can be un/redone at the moment.
I'm working on selection-deleting wires, should be finished soon, incl. un/redo.
Hope it works out fine, didn't do too much testing yet.
Last thing is copy, got a lot to make out for that one, like maintaining unique IDs when copying objects, loading customs etc. So don't expect that update to come tomorrow.
Copy feature is half-way done. I'll commit when everything is ready. At the moment, you can copy/paste sketch parts and undo pasting. Redo and bug testing is coming up next.
The copy feature is now live but in a beta-state. There are problems with undo/redo in some cases where elements get confused with each other or more undo/redo actions get logged than actually happened. I'll fix this asap. In the mean time, it's best to not use copy undo/redo.
Fixed an important copy undo/redo bug today. Didn't do too much bug testing though for copy. Anyway, I will now close this for now.
There's a button for selecting, but it currently has no functionality. Users should be able to select parts of the sketch to delete, copy or move them. Could be hard.