godot-shooter / starfield-background / files / Popup.gd
Branch starfield-background · default branch · all branches
Popup.gd
f1a0def4 2023-10-31 Pavel Safronov | 1 | extends Control |
| 2 | ||
| 3 | export var message: String = "" | |
| 4 | ||
| 5 | # Called when the node enters the scene tree for the first time. | |
| 6 | func _ready() -> void: | |
| 7 | $PopupDialog/Label.text = message | |
| 8 | $PopupDialog.popup() | |
| 9 | ||
| 10 | func _on_Button_pressed() -> void: | |
| 11 | queue_free() |