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

Merged
merged 1 commit into from
Nov 11, 2024

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
editor/editor_interface.cpp Outdated Show resolved Hide resolved
@KoBeWi KoBeWi modified the milestones: 4.x, 4.4 Nov 11, 2024
@Repiteo Repiteo merged commit 360f42c into godotengine:master Nov 11, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 11, 2024

Thanks!

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.

3 participants