mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-27 23:17:14 +01:00
13 lines
303 B
GDScript
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()
|