2023-11-08 14:28:55 +11:00
|
|
|
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
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
func _on_button_pressed() -> void:
|
|
|
|
completed.emit()
|
|
|
|
queue_free()
|