material-maker/material_maker/widgets/gradient_popup.gd

16 lines
233 B
GDScript

extends Popup
signal updated(value)
func init(value) -> void:
$Panel/Control.set_value(value)
func _on_Control_updated(value) -> void:
emit_signal("updated", value)
func _on_GradientPopup_popup_hide() -> void:
queue_free()