extends Node func _ready(): self.toggled.connect(on_toggle) func on_toggle(state: bool): Global.loop_changed.emit(state)