15 lines
357 B
GDScript
15 lines
357 B
GDScript
extends TextureButton
|
|
|
|
signal decision_made
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
self.pressed.connect(self._on_green_button_pressed)
|
|
set_disabled(true)
|
|
|
|
func _on_green_button_pressed():
|
|
if Globals.buttons_activated:
|
|
decision_made.emit("release")
|
|
set_toggle_mode(true)
|
|
set_pressed_no_signal(true)
|