conforms file names to consistant standard
This commit is contained in:
17
scripts/alert_popup.gd
Normal file
17
scripts/alert_popup.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name AlertPopup
|
||||
extends PanelContainer
|
||||
|
||||
signal completed()
|
||||
|
||||
func set_popup(prompt_text: String, dismiss_text: String) -> void:
|
||||
$VBoxContainer/Label.text = prompt_text
|
||||
$VBoxContainer/MarginContainerButton.text = dismiss_text
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
completed.emit()
|
||||
queue_free()
|
||||
|
||||
|
||||
func _on_button_mouse_entered() -> void:
|
||||
$AudioStreamPlayer.play()
|
||||
Reference in New Issue
Block a user