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