From dc7d53e3d2b67dd688ad766ca957199819916fdc Mon Sep 17 00:00:00 2001 From: Eroax Date: Mon, 27 Nov 2023 02:33:14 -0700 Subject: [PATCH] Patched Delay Node. Delay was REALLY out of date, so I patched it up. --- classes/deck/nodes/delay.gd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/classes/deck/nodes/delay.gd b/classes/deck/nodes/delay.gd index 44dd2d4..1bea237 100644 --- a/classes/deck/nodes/delay.gd +++ b/classes/deck/nodes/delay.gd @@ -6,15 +6,16 @@ func _init(): name = "Delay" node_type = name.to_snake_case() description = "A Node that passes through the input after the set time." + category = "general" - add_output_port(Deck.Types.STRING, "Value", "") + add_output_port(DeckType.Types.STRING, "Value", "") - add_input_port(Deck.Types.NUMERIC, "Delay Time", "field") - add_input_port(Deck.Types.NUMERIC, "Value", "field") + add_input_port(DeckType.Types.NUMERIC, "Delay Time", "field") + add_input_port(DeckType.Types.NUMERIC, "Value", "field") -func _receive(to_input_port, data: DeckType, extra_data: Array = []): +func _receive(to_input_port : int, data: Variant, extra_data: Array = []) -> void: thread = Thread.new() thread.start(handle_delay.bind(data))