Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add right click popup options in Connections to Method dialog. #100814

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmgsoftware
Copy link

@dmgsoftware dmgsoftware commented Dec 26, 2024

Connections to method is quite baron in it’s current read-only form, lacking quick access to useful connection functionality. In this pull request I have added the following right click options:

  1. Edit…
    2. Show Node in Tree
  2. Show Source Node in Tree
  3. Show Target Node in Tree
  4. Disconnect

I decided to preserve the ordering found in the signals tab for consistency. However, I did switch out “Go to Method” in lieu of the “Show Node in Tree” option because we had to come from the method to open this dialog.

Double clicking on either the source node or target node will show the node in the tree.

updated-connections-to-method

Show Node in Tree goes to the appropriate node for both source and target, and signal defaults to using the source node.

Closes godotengine/godot-proposals#1849
Closes godotengine/godot-proposals#10840

@dmgsoftware dmgsoftware marked this pull request as ready for review December 26, 2024 03:33
@dmgsoftware dmgsoftware requested a review from a team as a code owner December 26, 2024 03:33
@Chaosus Chaosus added this to the 4.x milestone Dec 26, 2024
@JoNax97
Copy link
Contributor

JoNax97 commented Dec 26, 2024

I think it would be better to have 2 separate "Go to Source Node" and "Go to Target Node" options instead of the same item changing behavior depending on where the user clicks. The discover ability would be better that way IMO.

Great addition anyways!

@dmgsoftware dmgsoftware force-pushed the connections-to-method-dialog branch 2 times, most recently from 8b5ce11 to abb0746 Compare December 27, 2024 03:55
@dmgsoftware
Copy link
Author

@JoNax97 Thank you for the comment. I hadn't thought of that, but it is definitely the more intuitive approach. I went ahead pushed those changes.
updated-connections-to-method

@Lazy-Rabbit-2001
Copy link
Contributor

Lazy-Rabbit-2001 commented Dec 27, 2024

Does double clicking on the node works the same as "Shows node in Tree"?

@dmgsoftware dmgsoftware force-pushed the connections-to-method-dialog branch from abb0746 to 7d82b89 Compare December 30, 2024 03:26
@dmgsoftware
Copy link
Author

@Lazy-Rabbit-2001 That's a good idea! I just pushed those changes. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants