material-maker/addons/material_maker/nodes/edit_buttons.gd

8 lines
228 B
GDScript3
Raw Normal View History

tool
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)