Compare commits

..

1 Commits

Author SHA1 Message Date
jonathan 49fa5d08de Added fun button 2025-08-14 20:21:13 +02:00
@@ -14,10 +14,16 @@ func _run():
#print(is_instance_of(selected, EditorPropertyText))
#print(_find_recursive(selected,"EditorPropertyMultilineText")[0].get_child(0).get_child(0).get_class())
#print(_find_recursive(selected,"EditorPropertyText")[0].get_child(0).get_child(0).get_class())
#testButton = Button.new()
#testButton.text = "Test Button"
testButton = Button.new()
testButton.text = "Remove this button"
#testButton.global_position = Vector2(1904.0, 305.0)
#EditorInterface.get_base_control().add_child(testButton)
testButton.pressed.connect(
func():
testButton.get_parent().remove_child(testButton)
testButton.queue_free()
)
EditorInterface.get_base_control().add_child(testButton)
pass