add/edit descriptions of most nodes

This commit is contained in:
Lera Elvoé 2023-12-14 21:15:42 +03:00
parent 7bd7b6152a
commit 3c0a12d005
No known key found for this signature in database
25 changed files with 25 additions and 23 deletions

View file

@ -5,6 +5,7 @@ func _init() -> void:
name = "Bool Constant" name = "Bool Constant"
node_type = name.to_snake_case() node_type = name.to_snake_case()
category = "general" category = "general"
description = "A checkbox."
add_output_port( add_output_port(
DeckType.Types.BOOL, DeckType.Types.BOOL,

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Button" name = "Button"
node_type = "button" node_type = "button"
description = "a button" description = "A button to trigger certain nodes that have a trigger input."
category = "general" category = "general"
add_output_port( add_output_port(

View file

@ -5,7 +5,7 @@ var thread : Thread
func _init(): 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 its' input after the set time."
category = "general" category = "general"
add_output_port(DeckType.Types.ANY, "Value") add_output_port(DeckType.Types.ANY, "Value")

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Get Dictionary Key" name = "Get Dictionary Key"
node_type = "dictionary_get_key" node_type = "dictionary_get_key"
description = "" description = "Returns the value of a key from a dictionary input, if it exists, or null otherwise."
category = "general" category = "general"
add_input_port( add_input_port(

View file

@ -5,7 +5,7 @@ var expr = Expression.new()
func _init(): func _init():
name = "Expression" name = "Expression"
node_type = name.to_snake_case() node_type = name.to_snake_case()
description = "A Node holding a block of executable GDScript code." description = "A node returning the result of a mathematical expression."
category = "general" category = "general"
props_to_serialize = [] props_to_serialize = []

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Get Deck Var" name = "Get Deck Var"
node_type = name.to_snake_case() node_type = name.to_snake_case()
description = "retrieve a deck variable" description = "Retrieve a deck variable."
category = "general" category = "general"
add_output_port( add_output_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Decompose OBS Transform" name = "Decompose OBS Transform"
node_type = "obs_decompose_transform" node_type = "obs_decompose_transform"
description = "" description = "Splits an OBS transform from one object into multiple outputs."
category = "obs" category = "obs"
add_input_port( add_input_port(

View file

@ -10,7 +10,7 @@ var cached_id # TODO: evaluate if this caching is actually needed
func _init() -> void: func _init() -> void:
name = "Get Source ID" name = "Get Source ID"
node_type = "obs_search_source" node_type = "obs_search_source"
description = "" description = "Searches for an OBS source in a scene and returns its output."
category = "obs" category = "obs"
add_input_port( add_input_port(

View file

@ -15,7 +15,7 @@ enum InputPorts{
func _init() -> void: func _init() -> void:
name = "Set Source Transform" name = "Set Source Transform"
node_type = "obs_set_source_transform" node_type = "obs_set_source_transform"
description = "" description = "Sets an OBS source's transform, which includes position and rotation, among other things."
category = "obs" category = "obs"
props_to_serialize = [] props_to_serialize = []

View file

@ -5,7 +5,7 @@ var noobs: NoOBSWS
func _init() -> void: func _init() -> void:
name = "Set Scene" name = "Set Scene"
node_type = "obs_set_scene" node_type = "obs_set_scene"
description = "" description = "Sets the current scene in OBS."
category = "obs" category = "obs"
props_to_serialize = [] props_to_serialize = []

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Vector to OBS Position" name = "Vector to OBS Position"
node_type = "obs_vector_to_position" node_type = "obs_vector_to_position"
description = "" description = "Transforms a Vector into a position vector accepted by OBS transform inputs."
category = "obs" category = "obs"
add_input_port( add_input_port(

View file

@ -6,7 +6,7 @@ var noobs: NoOBSWS
func _init() -> void: func _init() -> void:
name = "OBS WS Generic Request" name = "OBS WS Generic Request"
node_type = "obs_generic_request" node_type = "obs_generic_request"
description = "" description = "Makes an OBS request and sends its result through. Use if if you really know what you're doing."
category = "obs" category = "obs"
props_to_serialize = [] props_to_serialize = []

View file

@ -6,7 +6,7 @@ var times_activated := 0
func _init() -> void: func _init() -> void:
name = "Print" name = "Print"
node_type = name.to_snake_case() node_type = name.to_snake_case()
description = "print a value" description = "Print a value to the console."
props_to_serialize = [&"times_activated"] props_to_serialize = [&"times_activated"]
category = "general" category = "general"

View file

@ -6,7 +6,7 @@ var delta: float
func _init() -> void: func _init() -> void:
name = "Process Loop" name = "Process Loop"
node_type = name.to_snake_case() node_type = name.to_snake_case()
description = "" description = "Sends a trigger output every frame, and returns the delta value (time since last frame in seconds)."
category = "general" category = "general"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Set Deck Var" name = "Set Deck Var"
node_type = name.to_snake_case() node_type = name.to_snake_case()
description = "set deck variable" description = "Set a deck variable on trigger."
category = "general" category = "general"
add_input_port( add_input_port(

View file

@ -5,6 +5,7 @@ func _init() -> void:
node_type = "string_constant" node_type = "string_constant"
name = "String Constant" name = "String Constant"
category = "general" category = "general"
description = "A String field."
add_output_port( add_output_port(
DeckType.Types.STRING, DeckType.Types.STRING,

View file

@ -9,7 +9,7 @@ var tags := {}
func _init(): func _init():
name = "Twitch Chat Received" name = "Twitch Chat Received"
node_type = "twitch_chat_received" node_type = "twitch_chat_received"
description = "Receives Twitch Chat Events from a Twitch Connection" description = "Receives Twitch chat events from a Twitch connection."
category = "twitch" category = "twitch"
add_output_port(DeckType.Types.STRING, "Username") add_output_port(DeckType.Types.STRING, "Username")

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init(): func _init():
name = "Twitch Send Chat" name = "Twitch Send Chat"
node_type = "twitch_send_chat" node_type = "twitch_send_chat"
description = "Sends Twitch chat Messages" description = "Sends a message to a Twitch chat."
category = "twitch" category = "twitch"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Add Vectors" name = "Add Vectors"
node_type = "vector_add" node_type = "vector_add"
description = "" description = "Adds two 2D vectors."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Compose Vector" name = "Compose Vector"
node_type = "vector_compose" node_type = "vector_compose"
description = "" description = "Returns a vector from two numeric inputs."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Decompose Vector" name = "Decompose Vector"
node_type = "vector_decompose" node_type = "vector_decompose"
description = "" description = "Returns the X and Y components of a vector."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Vector Dot Product" name = "Vector Dot Product"
node_type = "vector_dot" node_type = "vector_dot"
description = "" description = "Returns the dot product of two vectors."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Multiply Vector by Scalar" name = "Multiply Vector by Scalar"
node_type = "vector_multiply" node_type = "vector_multiply"
description = "" description = "Multiplies a vector by a numeric value."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Normalize Vector" name = "Normalize Vector"
node_type = "vector_normalize" node_type = "vector_normalize"
description = "" description = "Normalizes a vector so its' length (magnitude) is exactly 1."
category = "math" category = "math"
add_input_port( add_input_port(

View file

@ -4,7 +4,7 @@ extends DeckNode
func _init() -> void: func _init() -> void:
name = "Subtract Vectors" name = "Subtract Vectors"
node_type = "vector_subtract" node_type = "vector_subtract"
description = "" description = "Subtracts each component of the given vectors."
category = "math" category = "math"
add_input_port( add_input_port(