2025-12-04 03:30:37 +00:00
|
|
|
extends Button
|
|
|
|
|
|
|
|
|
|
var game = null
|
|
|
|
|
|
|
|
|
|
func _on_pressed() -> void:
|
2025-12-04 21:32:46 +00:00
|
|
|
game.choice_made.emit(get_name())
|
2025-12-04 03:30:37 +00:00
|
|
|
|
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
|
|
|
if has_focus() and (event.is_action_pressed("interact") or event.is_action_pressed("dialogue_continue")):
|
|
|
|
|
_on_pressed()
|