material-maker/addons/material_maker/widgets/gradient_popup.gd
Hugo Locurcio 93c84650cd
Add return type hints to all scripts
This also simplifies some functions.

This partially addresses #30.
2019-10-20 16:35:45 +02:00

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