mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-18 01:11:10 -04:00
support non-droppable menus in extensions
This commit is contained in:
parent
ab715901a6
commit
e7bf49c8df
3 changed files with 80 additions and 37 deletions
docs
|
@ -311,7 +311,16 @@ class SomeBlocks {
|
|||
|
||||
// Dynamic menu: returns an array as above.
|
||||
// Called each time the menu is opened.
|
||||
menuB: 'getItemsForMenuB'
|
||||
menuB: 'getItemsForMenuB',
|
||||
|
||||
// The examples above are shorthand for setting only the `items` property in this full form:
|
||||
menuC: {
|
||||
// This flag makes a "non-droppable" menu: the menu will not accept reporters.
|
||||
rejectReporters: true,
|
||||
|
||||
// The `item` property may be an array or function name as in previous menu examples.
|
||||
items: [/*...*/] || 'getItemsForMenuC'
|
||||
}
|
||||
},
|
||||
|
||||
// Optional: translations (UNSTABLE - NOT YET SUPPORTED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue