WebAssemblyでScratchプラグインを作ろう!
続き
getInfo() {
return {
id: 'fukuoka',
name: 'Video Capture',
menuIconURI: fukuokaIcon,
blockIconURI: fukuokaIcon,
blocks: [
{
opcode: 'videoToggle',
blockType: BlockType.COMMAND,
text: 'turn video [VIDEO_STATE]',
arguments: {
VIDEO_STATE: {
type: ArgumentType.STRING,
menu: 'VIDEO_STATE',
defaultValue: 'on',
}
}
}
],
menus: {
VIDEO_STATE: {
acceptReporters: true,
items: this._VIDEO_STATE_ITEMS(),
}
},
};
}