File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -177,6 +177,11 @@ class ScriptTreeGenerator {
177177 kind : 'constant' ,
178178 value : block . fields . TEXT . value
179179 } ;
180+ case 'checkbox' :
181+ return {
182+ kind : 'constant' ,
183+ value : true
184+ } ;
180185
181186 case 'argument_reporter_string_number' : {
182187 const name = block . fields . VALUE . value ;
You can’t perform that action at this time.
0 commit comments