diff --git a/classes/deck/nodes/general/format_string.gd b/classes/deck/nodes/general/format_string.gd index 3cbc5fe..5fd02e7 100644 --- a/classes/deck/nodes/general/format_string.gd +++ b/classes/deck/nodes/general/format_string.gd @@ -30,7 +30,7 @@ func _replace(string: String, replacements: Array) -> String: return string % replacements -func _value_request(on_output_port: int) -> Variant: +func _value_request(_on_output_port: int) -> Variant: var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING) var replacements: Array = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.ARRAY) diff --git a/classes/deck/nodes/general/template_string.gd b/classes/deck/nodes/general/template_string.gd index 83341ae..f1922c3 100644 --- a/classes/deck/nodes/general/template_string.gd +++ b/classes/deck/nodes/general/template_string.gd @@ -30,7 +30,7 @@ func _replace(string: String, replacements: Dictionary) -> String: return string.format(replacements) -func _value_request(on_output_port: int) -> Variant: +func _value_request(_on_output_port: int) -> Variant: var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING) var replacements: Dictionary = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.DICTIONARY) diff --git a/classes/deck/nodes/math/scalar_round.gd b/classes/deck/nodes/math/scalar_round.gd index 6def5f2..7609d51 100644 --- a/classes/deck/nodes/math/scalar_round.gd +++ b/classes/deck/nodes/math/scalar_round.gd @@ -37,7 +37,7 @@ func _round(v: float) -> float: return roundf(v) -func _value_request(on_output_port: int) -> Variant: +func _value_request(_on_output_port: int) -> Variant: var v = await resolve_input_port_value_async(0) v = DeckType.convert_value(v, DeckType.Types.NUMERIC) diff --git a/classes/deck/nodes/math/scalar_trig.gd b/classes/deck/nodes/math/scalar_trig.gd index c41d26d..d353594 100644 --- a/classes/deck/nodes/math/scalar_trig.gd +++ b/classes/deck/nodes/math/scalar_trig.gd @@ -63,7 +63,7 @@ func _value_request(_on_output_port: int) -> float: return _do(v) -func _receive(on_input_port: int, data: Variant) -> void: +func _receive(_on_input_port: int, data: Variant) -> void: var v = DeckType.convert_value(data, DeckType.Types.NUMERIC) send(0, _do(v)) diff --git a/classes/deck/nodes/math/vector_decompose.gd b/classes/deck/nodes/math/vector_decompose.gd index 46763c6..4bbd3cd 100644 --- a/classes/deck/nodes/math/vector_decompose.gd +++ b/classes/deck/nodes/math/vector_decompose.gd @@ -24,7 +24,7 @@ func _init() -> void: ) -func _receive(port : int, data : Variant) -> void: +func _receive(_port : int, data : Variant) -> void: if !data or !DeckType.is_valid_vector(data): DeckHolder.logger.log_node("Vector Decompose: the vector is invalid.", Logger.LogType.ERROR) diff --git a/classes/deck/nodes/math/vector_normalize.gd b/classes/deck/nodes/math/vector_normalize.gd index def01c3..7bb8435 100644 --- a/classes/deck/nodes/math/vector_normalize.gd +++ b/classes/deck/nodes/math/vector_normalize.gd @@ -20,7 +20,7 @@ func _init() -> void: ) -func _receive(port : int, data : Variant) -> void: +func _receive(_port : int, data : Variant) -> void: var normalized = normalize_vector(data) if !normalized is Dictionary: diff --git a/classes/deck/nodes/obs/obs_get_source_transform.gd b/classes/deck/nodes/obs/obs_get_source_transform.gd index 0669b37..5560ce9 100644 --- a/classes/deck/nodes/obs/obs_get_source_transform.gd +++ b/classes/deck/nodes/obs/obs_get_source_transform.gd @@ -54,7 +54,7 @@ func _receive(to_input_port: int, data: Variant) -> void: send(0, await get_xform(scene, data)) -func _value_request(on_input_port: int) -> Variant: +func _value_request(_on_input_port: int) -> Variant: var scene: String = await resolve_input_port_value_async(0) var source_id: float = await resolve_input_port_value_async(1) return await get_xform(scene, source_id) diff --git a/classes/deck/nodes/obs/obs_is_source_visible.gd b/classes/deck/nodes/obs/obs_is_source_visible.gd index 7780d44..1f14fd5 100644 --- a/classes/deck/nodes/obs/obs_is_source_visible.gd +++ b/classes/deck/nodes/obs/obs_is_source_visible.gd @@ -60,7 +60,7 @@ func _receive(to_input_port: int, data: Variant) -> void: send(0, await _is_source_visible(scene_name, source_id)) -func _value_request(on_output_port: int) -> Variant: +func _value_request(_on_output_port: int) -> Variant: var scene_name = await resolve_input_port_value_async(0) var source_id = await resolve_input_port_value_async(1) return await _is_source_visible(scene_name, source_id) diff --git a/classes/deck/nodes/obs/obs_set_input_settings.gd b/classes/deck/nodes/obs/obs_set_input_settings.gd index 10b51d0..872721c 100644 --- a/classes/deck/nodes/obs/obs_set_input_settings.gd +++ b/classes/deck/nodes/obs/obs_set_input_settings.gd @@ -50,7 +50,7 @@ func _receive(to_input_port: int, data: Variant) -> void: input_name = await resolve_input_port_value_async(0) settings = await resolve_input_port_value_async(1) - var r := noobs.make_generic_request( + var _r := noobs.make_generic_request( "SetInputSettings", { "input_name": input_name, diff --git a/graph_node_renderer/deck_holder_renderer.gd b/graph_node_renderer/deck_holder_renderer.gd index 7ae6d70..777fb8d 100644 --- a/graph_node_renderer/deck_holder_renderer.gd +++ b/graph_node_renderer/deck_holder_renderer.gd @@ -313,7 +313,6 @@ func close_tab(tab: int) -> void: await get_tree().process_frame tab_container.close_tab(tab) - var tc = tab_container.get_tab_count() if tab_container.get_tab_count() == 0: bottom_dock.variable_viewer.disable_new_button() sidebar.set_edited_deck() diff --git a/graph_node_renderer/deck_renderer_graph_edit.gd b/graph_node_renderer/deck_renderer_graph_edit.gd index dda2e6f..ea98ff4 100644 --- a/graph_node_renderer/deck_renderer_graph_edit.gd +++ b/graph_node_renderer/deck_renderer_graph_edit.gd @@ -185,7 +185,7 @@ func initialize_from_deck() -> void: if deck.is_library: connection_drag_started.connect( - func(from_node: StringName, from_port: int, is_output: bool): + func(_from_node: StringName, _from_port: int, _is_output: bool): force_connection_drag_end() )