godot-shooter / meteor / files / Popup.gd
Branch meteor · default branch · all branches
Popup.gd
| 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() |