Implement UndoRedo and save prompt#10
Merged
Merged
Conversation
Reviewer's Guide by SourceryThis pull request implements an UndoRedo feature and a save prompt for the MonologueGraphEdit. The changes include bug fixes, new features, and developer notes. The UndoRedo functionality tracks history for various operations, and the save prompt alerts users to save changes before closing tabs. The implementation involves significant refactoring and renaming of files to avoid conflicts with Godot's built-in classes. File-Level Changes
Tips
|
There was a problem hiding this comment.
Hey @RailKill - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Collaborator
|
man you're crazy! |
Collaborator
|
Thank you so much! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bug Fixes
Features
Implement UndoRedo for the following operations (history is tracked in each MonologueGraphEdit, i.e. per file)
Ctrl + ZandCtrl + Shift + ZAdd save prompt on tab close
Developer Notes
_on_node_property_change()that allows you to define any graph node properties to update, it has a built-in equality check to try and only register new changes, PropertyHistory will call the panel's_from_dict()on undo/redo to update the panel with the graph node's_to_dict()focus_exitedandtext_submitted, but node previews can still be updated in real-time like in SentenceNodePanel_on_sentence_text_edit_changed()Summary by Sourcery
Implement UndoRedo functionality and add save prompt on tab close. Fix various bugs related to node updates and positioning. Refactor and enhance node panel handling and naming conventions for clarity.
New Features:
Bug Fixes:
Enhancements:
_on_node_property_change()for updating graph node properties with built-in equality checks.focus_exitedandtext_submittedevents while allowing real-time node previews.