diff --git a/extensions/Lily/CommentBlocks.js b/extensions/Lily/CommentBlocks.js index bd831f0b4f..9876c65e00 100644 --- a/extensions/Lily/CommentBlocks.js +++ b/extensions/Lily/CommentBlocks.js @@ -61,7 +61,37 @@ type: Scratch.ArgumentType.BOOLEAN } } - } + }, + { + opcode: 'commentMatrix', + blockType: Scratch.BlockType.REPORTER, + text: '[INPUT] // [COMMENT]', + arguments: { + COMMENT: { + type: Scratch.ArgumentType.STRING, + defaultValue: 'comment' + }, + INPUT: { + type: Scratch.ArgumentType.MATRIX, + defaultValue: '0101010101100010101000100' // a <3 lool + } + } + }, + { + opcode: 'commentColor', + blockType: Scratch.BlockType.REPORTER, + text: '[INPUT] // [COMMENT]', + arguments: { + COMMENT: { + type: Scratch.ArgumentType.STRING, + defaultValue: 'comment' + }, + INPUT: { + type: Scratch.ArgumentType.COLOR, + defaultValue: '#ff0000' // red + } + } + } ] }; } @@ -81,6 +111,14 @@ commentBoolean (args) { return args.INPUT || false; } + + commentMatrix (args) { + return args.INPUT; + } + + commentColor (args) { + return args.INPUT; + } } Scratch.extensions.register(new CommentBlocks()); })(Scratch);