Skip to content

Commit a91d31d

Browse files
authored
Merge pull request #231 from endlessm/T35563-natural-language
Switch block labels to natural language
2 parents c7b6517 + 7a9b3e6 commit a91d31d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+193
-176
lines changed

addons/block_code/blocks/communication/add_node_to_group.tres

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
[resource]
66
script = ExtResource("1_5qal7")
77
name = &"add_node_to_group"
8+
target_node_class = ""
89
description = "Add the node into the group"
910
category = "Communication | Groups"
1011
type = 2
1112
variant_type = 0
12-
display_template = "Add {node: OBJECT} to group {group: STRING}"
13+
display_template = "add {node: OBJECT} to group {group: STRING}"
1314
code_template = "{node}.add_to_group({group})"
1415
defaults = {}
1516
signal_name = ""

addons/block_code/blocks/communication/add_to_group.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Add this node into the group"
1010
category = "Communication | Groups"
1111
type = 2
1212
variant_type = 0
13-
display_template = "Add to group {group: STRING}"
13+
display_template = "add to group {group: STRING}"
1414
code_template = "add_to_group({group})"
1515
defaults = {}
1616
signal_name = ""

addons/block_code/blocks/communication/area2d_on_entered.tres

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ description = ""
1010
category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
13-
display_template = "On [body: OBJECT] entered"
14-
code_template = "func _on_body_entered(body: Node2D):
13+
display_template = "when this node collides with [something: OBJECT]"
14+
code_template = "func _on_body_entered(something: Node2D):
1515
"
1616
defaults = {}
1717
signal_name = "body_entered"

addons/block_code/blocks/communication/area2d_on_exited.tres

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ description = ""
1010
category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
13-
display_template = "On [body: OBJECT] exited"
14-
code_template = "func _on_body_exited(body: Node2D):
13+
display_template = "when this node stops colliding with [something: OBJECT]"
14+
code_template = "func _on_body_exited(something: Node2D):
1515
"
1616
defaults = {}
1717
signal_name = "body_exited"

addons/block_code/blocks/communication/call_method_group.tres

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
[resource]
66
script = ExtResource("1_mlm68")
77
name = &"call_method_group"
8+
target_node_class = ""
9+
description = "Calls the method/function on each member of the given group"
10+
category = "Communication | Methods"
811
type = 2
912
variant_type = 0
10-
display_template = "Call method {method_name: STRING} in group {group: STRING}"
13+
display_template = "call method {method_name: STRING} in group {group: STRING}"
1114
code_template = "get_tree().call_group({group}, {method_name})"
12-
description = "Calls the method/function on each member of the given group"
13-
category = "Communication | Methods"
1415
defaults = {}
1516
signal_name = ""
17+
scope = ""

addons/block_code/blocks/communication/call_method_node.tres

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
[resource]
66
script = ExtResource("1_pg363")
77
name = &"call_method_node"
8+
target_node_class = ""
89
description = "Calls the method/function of the given node"
910
category = "Communication | Methods"
1011
type = 2
1112
variant_type = 0
12-
display_template = "Call method {method_name: STRING} in node {node: OBJECT}"
13+
display_template = "call method {method_name: STRING} in node {node: OBJECT}"
1314
code_template = "{node}.call({method_name})"
1415
defaults = {}
1516
signal_name = ""

addons/block_code/blocks/communication/define_method.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Define a method/function with following statements"
1010
category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
13-
display_template = "Define method {method_name: STRING_NAME}"
13+
display_template = "define method {method_name: STRING_NAME}"
1414
code_template = "func {method_name}():"
1515
defaults = {}
1616
signal_name = ""

addons/block_code/blocks/communication/is_in_group.tres

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
[resource]
66
script = ExtResource("1_tjyq5")
77
name = &"is_in_group"
8+
target_node_class = ""
89
description = "Is this node in the group"
910
category = "Communication | Groups"
1011
type = 3
1112
variant_type = 1
12-
display_template = "Is in group {group: STRING}"
13+
display_template = "is in group {group: STRING}"
1314
code_template = "is_in_group({group})"
1415
defaults = {}
1516
signal_name = ""
17+
scope = ""

addons/block_code/blocks/communication/is_node_in_group.tres

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
[resource]
66
script = ExtResource("1_5krrs")
77
name = &"is_node_in_group"
8+
target_node_class = ""
89
description = "Is the node in the group"
910
category = "Communication | Groups"
1011
type = 3
1112
variant_type = 1
12-
display_template = "Is {node: OBJECT} in group {group: STRING}"
13+
display_template = "{node: OBJECT} is in group {group: STRING}"
1314
code_template = "{node}.is_in_group({group})"
1415
defaults = {}
1516
signal_name = ""
17+
scope = ""

addons/block_code/blocks/communication/remove_from_group.tres

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
[resource]
66
script = ExtResource("1_cdwef")
77
name = &"remove_from_group"
8+
target_node_class = ""
9+
description = "Remove this node from the group"
10+
category = "Communication | Groups"
811
type = 2
912
variant_type = 0
10-
display_template = "Remove from group {group: STRING}"
13+
display_template = "remove from group {group: STRING}"
1114
code_template = "remove_from_group({group})"
12-
description = "Remove this node from the group"
13-
category = "Communication | Groups"
1415
defaults = {}
1516
signal_name = ""
17+
scope = ""

0 commit comments

Comments
 (0)