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

Make the method selector dialog available via EditorInterface #98859

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

Conversation

ydeltastar
Copy link
Contributor

@ydeltastar ydeltastar commented Nov 5, 2024

We can select object properties with EditorInterface.popup_property_selector but there is no equivalent to select methods. This PR adds EditorInterface.popup_method_selector so we can use the method selector dialog.

@tool
extends EditorScript


func _run() -> void:
	EditorInterface.popup_method_selector(self, _method_selector, "_run")


static func _method_selector(method_name: String):
	print("Method: %s" % method_name)

@ydeltastar ydeltastar requested review from a team as code owners November 5, 2024 18:39
@ydeltastar ydeltastar changed the title Make the method selector dialog available via EditorInterface Make the method selector dialog available via EditorInterface Nov 5, 2024
@KoBeWi KoBeWi added this to the 4.x milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants