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

13 lines
303 B
GDScript

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