gmtk-2024/addons/AsepriteWizard/interface/shared/tree/tree_selection_confirmation_warning.gd

19 lines
329 B
GDScript3
Raw Normal View History

2024-08-17 14:22:33 +00:00
@tool
extends VBoxContainer
signal warning_confirmed
signal warning_declined
@onready var _warning_message = $MarginContainer/warning_message
func set_message(text: String) -> void:
_warning_message.text = text
func _on_confirm_button_up():
warning_confirmed.emit()
func _on_cancel_button_up():
warning_declined.emit()