Implement production vertical slice foundation
This commit is contained in:
1 parent
9d4a89f355
commit
a18e82eb44
104 files changed
+10595
-268
No files matched your search
@@ -0,0 +1,26 @@
|
||||
class_name ConfirmationDialogScreen
|
||||
extends Control
|
||||
|
||||
signal cancelled
|
||||
signal confirmed(action_id: StringName)
|
||||
|
||||
var _action_id: StringName
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
%CancelButton.pressed.connect(func() -> void: cancelled.emit())
|
||||
%ConfirmButton.pressed.connect(func() -> void: confirmed.emit(_action_id))
|
||||
%CancelButton.grab_focus()
|
||||
|
||||
|
||||
func configure(
|
||||
action_id: StringName,
|
||||
title: String,
|
||||
message: String,
|
||||
confirm_label: String
|
||||
) -> void:
|
||||
_action_id = action_id
|
||||
%Title.text = title
|
||||
%Message.text = message
|
||||
%ConfirmButton.text = confirm_label
|
||||
Reference in new issue
Block a user