We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90fad21 commit 319a8a1Copy full SHA for 319a8a1
addons/block_code/ui/picker/categories/category_factory.gd
@@ -502,6 +502,21 @@ static func get_general_blocks() -> Array[Block]:
502
b.tooltip_text = "Play the audio stream with volume and pitch"
503
b.category = "Sounds"
504
block_list.append(b)
505
+
506
+ b = BLOCKS["statement_block"].instantiate()
507
+ b.block_name = "stop_sound"
508
+ b.block_type = Types.BlockType.EXECUTE
509
+ b.block_format = "Stop the sound {name: STRING}"
510
+ b.statement = (
511
+ """
512
+ var __sound_node = get_node({name})
513
+ __sound_node.stop()
514
515
+ . dedent()
516
+ )
517
+ b.tooltip_text = "Stop the audio stream"
518
+ b.category = "Sounds"
519
+ block_list.append(b)
520
#endregion
521
#region Graphics
522
0 commit comments