mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
12 lines
298 B
GDScript
12 lines
298 B
GDScript
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()
|