mtd/Scripts/alert_popup.gd

14 lines
275 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
2023-11-19 18:47:52 +11:00
$VBoxContainer/MarginContainerButton.text = dismiss_text
func _on_button_pressed() -> void:
completed.emit()
queue_free()