material-maker/addons/material_maker/widgets/line_dialog.gd
RodZill4 95a737029a Started adding the "remote node"
Started adding the "remote" node, that can control important parameters of the graph and save/restore configurations of groups of parameters. This should help creating easily configurable materials.

Added new "mosaic" example
2018-09-08 12:25:28 +02:00

21 lines
396 B
GDScript

tool
extends WindowDialog
signal ok
func _ready():
pass
func set_texts(title, label):
window_title = title
$VBoxContainer/Label.text = label
$VBoxContainer/LineEdit.grab_focus()
$VBoxContainer/LineEdit.grab_click_focus()
func _on_OK_pressed():
_on_LineEdit_text_entered($VBoxContainer/LineEdit.text)
func _on_LineEdit_text_entered(new_text):
emit_signal("ok", new_text)
queue_free()