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 b5b4309 commit fccd0adCopy full SHA for fccd0ad
addons/block_code/ui/picker/categories/category_factory.gd
@@ -244,6 +244,7 @@ static func get_general_categories() -> Array[BlockCategory]:
244
b.block_type = Types.BlockType.EXECUTE
245
b.block_format = "Play the sound {name: STRING} with Volume dB {db: FLOAT} and Pitch Scale {pitch: FLOAT}"
246
b.statement = "VAR_DICT[{name}].volume_db = {db}\nVAR_DICT[{name}].pitch_scale = {pitch}\nVAR_DICT[{name}].play()"
247
+ b.defaults = {"db": "0.0", "pitch": "1.0"}
248
sound_list.append(b)
249
250
var sound_category: BlockCategory = BlockCategory.new("Sound", sound_list, Color("e30fc0"))
0 commit comments