mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-01 08:59:51 -04:00
Update extensions to load when deserializing monitors. This is necessary when the monitor is the only part of the project that uses the extension. Update extension monitor color category.
This commit is contained in:
parent
df24ca7b46
commit
14bee14d8c
2 changed files with 10 additions and 4 deletions
src/engine
|
@ -2102,9 +2102,9 @@ class Runtime extends EventEmitter {
|
|||
const block = categoryInfo.blocks.find(b => b.info.opcode === opcode);
|
||||
if (!block) return;
|
||||
|
||||
// TODO: should this use some other category? Also, we may want to format the label in a locale-specific way.
|
||||
// TODO: we may want to format the label in a locale-specific way.
|
||||
return {
|
||||
category: 'data',
|
||||
category: 'extension', // This assumes that all extensions have the same monitor color.
|
||||
label: `${categoryInfo.name}: ${block.info.text}`
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue