atomic-junky / Monologue

Design complex dialogues for games!
https://atomic-junky.itch.io/monologue
MIT License
12 stars 2 forks source link

Add multiple node deletion and undo auto-arrange #19

Closed RailKill closed 2 months ago

RailKill commented 2 months ago

This PR does the following:

Summary by Sourcery

Introduce the ability to delete multiple selected nodes with undo support and enhance the auto-arrange feature with undo/redo capabilities. Improve node selection and position management in the graph editor.

New Features:

Enhancements:

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request implements two main features: multi-node deletion and undo/redo functionality for the auto-arrange feature in the graph editor. The changes primarily affect the MonologueGraphEdit script, with minor adjustments to MonologueControl and SidePanelNodeDetails scripts. The implementation focuses on enhancing user interaction with the graph, improving selection handling, and integrating with the existing undo/redo system.

File-Level Changes

Files Changes
Scripts/MonologueGraphEdit.gd Implemented multi-node deletion functionality using the Delete key, integrated with the undo/redo system
Scripts/MonologueGraphEdit.gd Added undo/redo support for the auto-arrange feature, recording node positions before and after arrangement
Scripts/MonologueGraphEdit.gd
Scripts/SidePanelNodes/SidePanelNodeDetails.gd
Refactored node selection handling to support multiple selected nodes
Scripts/MonologueGraphEdit.gd
Scripts/MonologueControl.gd
Scripts/SidePanelNodes/SidePanelNodeDetails.gd
Improved management of active and selected nodes, including updates to the side panel behavior
Scripts/MonologueGraphEdit.gd Removed redundant variables and simplified input handling in the graph edit script
Scripts/MonologueGraphEdit.gd
Scripts/MonologueControl.gd
Updated node position tracking for undo/redo operations

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
atomic-junky commented 2 months ago

It seems to work perfectly!