mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Add extension status button XML
This commit is contained in:
parent
bd80e4262d
commit
7d0c45546c
1 changed files with 10 additions and 0 deletions
|
@ -546,6 +546,16 @@ class Runtime extends EventEmitter {
|
|||
categoryInfo.menus.push(convertedMenu);
|
||||
}
|
||||
}
|
||||
|
||||
// Add extension status button
|
||||
if (extensionInfo.showStatusButton) {
|
||||
categoryInfo.blocks.push({
|
||||
info: {},
|
||||
json: null,
|
||||
xml: `<button type="status" extensionId="${categoryInfo.id}"></button>`
|
||||
});
|
||||
}
|
||||
|
||||
for (const blockInfo of extensionInfo.blocks) {
|
||||
if (blockInfo === '---') {
|
||||
categoryInfo.blocks.push(ConvertedSeparator);
|
||||
|
|
Loading…
Reference in a new issue