Adding functionality to copy and paste nodes with card cloner. #316
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using LaserIO, I really felt it was missing the ability to copy entire nodes. Having to copy and paste to each card individually was really holding back the scalability of a LaserIO contraption.
So I added the ability to save a node configuration to the card cloner and paste that data back to other nodes.
Shift-Right clicking a node with a card cloner will save card info to the cloner item which can then be pasted on other nodes with a right click. This uses the same reach distance as the wrench. Shift-Right clicking will clear the copied node(but not the saved card, did not want to affect the existing logic)
laseriodemomain.mp4
Does not copy node connections.
The cloner will check the user's card holder to make sure they and the node combined have enough items to paste the configuration.
laseriodemofailure.mp4
Added the dimension and xyz of copied node to the tooltip.
Extra cards are placed in the card colder, and if theres no room, dropped for the player to pickup.
laseriodemodrop.mp4
Even though the card pasting functionality tries to make sure there is enough room, there are still scenarios it will end up dropping items, so I allowed node pasting to drop items as well.
I think theres still some more room for refinement, but the current state will bring a much needed functionality to users of LaserIO.