Skip to content

Commit 7b93cb1

Browse files
manuqwjt
andauthored
Block labels: Improve natural language
Co-authored-by: Will Thompson <[email protected]>
1 parent c18ab3f commit 7b93cb1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

addons/block_code/blocks/communication/is_node_in_group.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Is the node in the group"
1010
category = "Communication | Groups"
1111
type = 3
1212
variant_type = 1
13-
display_template = "is {node: OBJECT} in group {group: STRING}"
13+
display_template = "{node: OBJECT} is in group {group: STRING}"
1414
code_template = "{node}.is_in_group({group})"
1515
defaults = {}
1616
signal_name = ""

addons/block_code/blocks/input/characterbody2d_move.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Move the character up, down, left, and right with the keyboard us
1010
category = "Input"
1111
type = 2
1212
variant_type = 0
13-
display_template = "move with keys {up: STRING} {down: STRING} {left: STRING} {right: STRING} with speed {speed: VECTOR2}"
13+
display_template = "move with keys {up: STRING} {down: STRING} {left: STRING} {right: STRING} at speed {speed: VECTOR2}"
1414
code_template = "var dir = Vector2()
1515
dir.x += float(Input.is_key_pressed(OS.find_keycode_from_string({right})))
1616
dir.x -= float(Input.is_key_pressed(OS.find_keycode_from_string({left})))

addons/block_code/blocks/input/is_input_actioned.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description = "True if the specified input action has been pressed or released."
1717
category = "Input"
1818
type = 3
1919
variant_type = 1
20-
display_template = "is action {action_name: STRING_NAME} {action: NIL}"
20+
display_template = "action {action_name: STRING_NAME} is {action: NIL}"
2121
code_template = "Input.is_action_{{action}}('{{action_name}}')"
2222
defaults = {
2323
"action": SubResource("Resource_ai5in")

addons/block_code/blocks/loops/await_scene_ready.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = ""
1010
category = "Loops"
1111
type = 2
1212
variant_type = 0
13-
display_template = "await scene ready"
13+
display_template = "wait for the scene to be ready"
1414
code_template = "if not get_tree().root.is_node_ready():
1515
await get_tree().root.ready"
1616
defaults = {}

addons/block_code/blocks/sounds/play_sound.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Play the audio stream with volume and pitch"
1010
category = "Sounds"
1111
type = 2
1212
variant_type = 0
13-
display_template = "play the sound {name: STRING} with Volume dB {db: FLOAT} and Pitch Scale {pitch: FLOAT}"
13+
display_template = "play the sound {name: STRING} with volume {db: FLOAT} dB and pitch scale {pitch: FLOAT}"
1414
code_template = "var __sound_node = get_node({name})
1515
__sound_node.volume_db = {db}
1616
__sound_node.pitch_scale = {pitch}

0 commit comments

Comments
 (0)