material-maker/material_maker/widgets/node_editor/enum_editor.gd

12 lines
298 B
GDScript3
Raw Normal View History

extends WindowDialog
signal ok
func set_value(n, v) -> void:
$VBoxContainer/GridContainer/name.text = n
$VBoxContainer/GridContainer/value.text = v
func _on_OK_pressed() -> void:
emit_signal("ok", $VBoxContainer/GridContainer/name.text, $VBoxContainer/GridContainer/value.text)
queue_free()