Skip to content
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
1 change: 1 addition & 0 deletions src/lib/make-toolbox-xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ const sound = function (isInitialSetup, isStage, targetId, soundName) {
</value>
</block>
<block id="${targetId}_volume" type="sound_volume"/>
<block id="${targetId}_currentlyPlayingSounds" type="sound_currentlyPlayingSounds" />
${categorySeparator}
</category>
`;
Expand Down
7 changes: 7 additions & 0 deletions src/lib/opcode-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ const messages = defineMessages({
description: 'Label for the tempo monitor when shown on the stage',
id: 'gui.opcodeLabels.tempo'
},
sound_currentlyPlayingSounds: {
defaultMessage: 'currently playing sounds',
description: 'Label for the currently playing sounds monitor when shown on the stage',
id: 'gui.opcodeLabels.currentlyPlayingSounds'
},

// Sensing
sensing_answer: {
Expand Down Expand Up @@ -328,6 +333,7 @@ class OpcodeLabels {
sound_volume: {category: 'sound'},
sound_getEffectValue: {category: 'sound'},
sound_tempo: {category: 'sound'},
sound_currentlyPlayingSounds: {category: 'sound' },

// Sensing
sensing_answer: {category: 'sensing'},
Expand Down Expand Up @@ -417,6 +423,7 @@ class OpcodeLabels {
}
return this._translator(messages.sound_getEffectValue);
};
this._opcodeMap.sound_currentlyPlayingSounds.labelFn = () => this._translator(messages.sound_currentlyPlayingSounds);

// Sensing
this._opcodeMap.sensing_answer.labelFn = () => this._translator(messages.sensing_answer);
Expand Down