mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
Patched Delay Node.
Delay was REALLY out of date, so I patched it up.
This commit is contained in:
parent
3010ead296
commit
dc7d53e3d2
1 changed files with 5 additions and 4 deletions
|
@ -6,15 +6,16 @@ func _init():
|
||||||
name = "Delay"
|
name = "Delay"
|
||||||
node_type = name.to_snake_case()
|
node_type = name.to_snake_case()
|
||||||
description = "A Node that passes through the input after the set time."
|
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(DeckType.Types.NUMERIC, "Delay Time", "field")
|
||||||
add_input_port(Deck.Types.NUMERIC, "Value", "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 = Thread.new()
|
||||||
thread.start(handle_delay.bind(data))
|
thread.start(handle_delay.bind(data))
|
||||||
|
|
Loading…
Reference in a new issue