mtd/Scripts/alert_popup.gd

14 lines
260 B
GDScript3
Raw Normal View History

extends PanelContainer
class_name AlertPopup
signal completed
func set_popup(prompt_text, dismiss_text):
$VBoxContainer/Label.text = prompt_text
$VBoxContainer/Button.text = dismiss_text
func _on_button_pressed() -> void:
completed.emit()
queue_free()