Skip to content

Commit 6c1860a

Browse files
author
yuri-kiss
authored
Implement checkbox on the vm side (1/2)
1 parent 510adce commit 6c1860a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/blocks/scratch3_operators.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ class Scratch3OperatorsBlocks {
3333
operator_contains: this.contains,
3434
operator_mod: this.mod,
3535
operator_round: this.round,
36-
operator_mathop: this.mathop
36+
operator_mathop: this.mathop,
37+
checkbox: this.checkbox
3738
};
3839
}
3940

41+
checkbox () {
42+
return true;
43+
}
44+
4045
add (args) {
4146
return Cast.toNumber(args.NUM1) + Cast.toNumber(args.NUM2);
4247
}

0 commit comments

Comments
 (0)