File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1361,3 +1361,54 @@ Blockly.Blocks['control_continueLoop'] = {
13611361 } ) ;
13621362 }
13631363} ;
1364+
1365+ Blockly . Blocks [ 'control_from_to' ] = {
1366+ init : function ( ) {
1367+ this . jsonInit ( {
1368+ "message0" : "for %1 of %2 to %3 %4" ,
1369+ "message1" : "%1" ,
1370+ "lastDummyAlign1" : "RIGHT" ,
1371+ "args0" : [
1372+ {
1373+ "type" : "input_value" ,
1374+ "name" : "SHADOW"
1375+ } ,
1376+ {
1377+ "type" : "input_value" ,
1378+ "name" : "FROM"
1379+ } ,
1380+ {
1381+ "type" : "input_value" ,
1382+ "name" : "TO"
1383+ } ,
1384+ {
1385+ "type" : "input_statement" ,
1386+ "name" : "SUBSTACK"
1387+ }
1388+ ] ,
1389+ "args1" : [
1390+ {
1391+ "type" : "field_image" ,
1392+ "src" : Blockly . mainWorkspace . options . pathToMedia + "repeat.svg" ,
1393+ "width" : 24 ,
1394+ "height" : 24 ,
1395+ "alt" : "*" ,
1396+ "flip_rtl" : true
1397+ }
1398+ ] ,
1399+ "category" : Blockly . Categories . control ,
1400+ "extensions" : [ "colours_control" , "shape_statement" ]
1401+ } ) ;
1402+ }
1403+ } ;
1404+
1405+ Blockly . Blocks [ 'control_from_to_index' ] = {
1406+ init : function ( ) {
1407+ this . jsonInit ( {
1408+ "message0" : "index" ,
1409+ "canDragDuplicate" : true ,
1410+ "category" : Blockly . Categories . control ,
1411+ "extensions" : [ "colours_control" , "output_number" ]
1412+ } ) ;
1413+ }
1414+ } ;
You can’t perform that action at this time.
0 commit comments