Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch block labels to natural language #231

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/block_code/blocks/communication/area2d_on_entered.tres
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ description = ""
category = "Communication | Methods"
type = 1
variant_type = 0
display_template = "On [body: OBJECT] entered"
code_template = "func _on_body_entered(body: Node2D):
display_template = "When entering collision with [something: OBJECT]"
code_template = "func _on_body_entered(something: Node2D):
"
defaults = {}
signal_name = "body_entered"
Expand Down
4 changes: 2 additions & 2 deletions addons/block_code/blocks/communication/area2d_on_exited.tres
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ description = ""
category = "Communication | Methods"
type = 1
variant_type = 0
display_template = "On [body: OBJECT] exited"
code_template = "func _on_body_exited(body: Node2D):
display_template = "When leaving collision with [something: OBJECT]"
code_template = "func _on_body_exited(something: Node2D):
"
defaults = {}
signal_name = "body_exited"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ description = ""
category = "Communication | Methods"
type = 1
variant_type = 0
display_template = "On [body: OBJECT] entered"
code_template = "func _on_body_entered(body: Node2D):
display_template = "When entering collision with [something: OBJECT]"
code_template = "func _on_body_entered(something: Node2D):
"
defaults = {}
signal_name = "body_entered"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ description = ""
category = "Communication | Methods"
type = 1
variant_type = 0
display_template = "On [body: OBJECT] exited"
code_template = "func _on_body_exited(body: Node2D):
display_template = "When leaving collision with [something: OBJECT]"
code_template = "func _on_body_exited(something: Node2D):
"
defaults = {}
signal_name = "body_exited"
Expand Down
16 changes: 0 additions & 16 deletions addons/block_code/blocks/lifecycle/physics_process.tres

This file was deleted.

3 changes: 2 additions & 1 deletion addons/block_code/blocks/lifecycle/process.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
[resource]
script = ExtResource("1_pmina")
name = &"process"
target_node_class = ""
description = "Attached blocks will be executed during the processing step of the main loop"
category = "Lifecycle"
type = 1
variant_type = 0
display_template = "On Process"
display_template = "Every frame"
code_template = "func _process(delta):"
defaults = {}
signal_name = ""
Expand Down
8 changes: 5 additions & 3 deletions addons/block_code/blocks/lifecycle/queue_free.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
[resource]
script = ExtResource("1_75fle")
name = &"queue_free"
target_node_class = ""
description = "Queues this node to be deleted at the end of the current frame"
category = "Lifecycle"
type = 2
variant_type = 0
display_template = "Queue Free"
display_template = "Remove"
code_template = "queue_free()"
description = "Queues this node to be deleted at the end of the current frame"
category = "Lifecycle"
defaults = {}
signal_name = ""
scope = ""
3 changes: 2 additions & 1 deletion addons/block_code/blocks/lifecycle/ready.tres
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
[resource]
script = ExtResource("1_vk0xk")
name = &"ready"
target_node_class = ""
description = "Attached blocks will be executed once when the node is \"ready\""
category = "Lifecycle"
type = 1
variant_type = 0
display_template = "On Ready"
display_template = "When starting"
code_template = "func _ready():"
defaults = {}
signal_name = ""
Expand Down
2 changes: 1 addition & 1 deletion addons/block_code/blocks/log/print.tres
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Print the text to output"
category = "Log"
type = 2
variant_type = 0
display_template = "Print {text: STRING}"
display_template = "Log text {text: STRING}"
code_template = "print({text})"
defaults = {
"text": "Hello"
Expand Down
Loading