material-maker/material_maker/nodes/edit_buttons.gd

7 lines
223 B
GDScript

extends HBoxContainer
func connect_buttons(object, edit_fct, load_fct, save_fct) -> void:
$Edit.connect("pressed", object, edit_fct)
$Load.connect("pressed", object, load_fct)
$Save.connect("pressed", object, save_fct)