mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
17 lines
281 B
GDScript
17 lines
281 B
GDScript
extends WindowDialog
|
|
|
|
signal ok
|
|
|
|
func _ready() -> void:
|
|
popup()
|
|
|
|
func set_title(title) -> void:
|
|
window_title = title
|
|
|
|
func set_text(text) -> void:
|
|
$VBoxContainer/TextEdit.text = text
|
|
|
|
func _on_OK_pressed() -> void:
|
|
emit_signal("ok", $VBoxContainer/TextEdit.text)
|
|
queue_free()
|