@@ -256,46 +256,6 @@ Blockly.Blocks['operator_expandableCompare'] = {
256256 }
257257} ;
258258
259- Blockly . Blocks [ 'looks_setVertTransform' ] = {
260- /**
261- * Block to report properties of sprites.
262- * @this Blockly.Block
263- */
264- init : function ( ) {
265- this . jsonInit ( {
266- "message0" : 'skew sprite vertically %1 %' ,
267- "args0" : [
268- {
269- "type" : "input_value" ,
270- "name" : "PERCENT"
271- }
272- ] ,
273- "category" : Blockly . Categories . looks ,
274- "extensions" : [ "colours_looks" , "shape_statement" ]
275- } ) ;
276- }
277- } ;
278-
279- Blockly . Blocks [ 'looks_setHorizTransform' ] = {
280- /**
281- * Block to report properties of sprites.
282- * @this Blockly.Block
283- */
284- init : function ( ) {
285- this . jsonInit ( {
286- "message0" : 'skew sprite horizontally %1 %' ,
287- "args0" : [
288- {
289- "type" : "input_value" ,
290- "name" : "PERCENT"
291- }
292- ] ,
293- "category" : Blockly . Categories . looks ,
294- "extensions" : [ "colours_looks" , "shape_statement" ]
295- } ) ;
296- }
297- } ;
298-
299259Blockly . Blocks [ 'field_textdropdown_test' ] = {
300260 init : function ( ) {
301261 this . jsonInit ( {
@@ -531,3 +491,109 @@ Blockly.Blocks['control_dualblock'] = {
531491 } ) ;
532492 }
533493} ;
494+
495+ /* The following are Deprecated, either scrapped or redone */
496+ /**
497+ * Hidden since this is dangerous to keep in the main
498+ * toolbox. Its also now in the javascript extension
499+ * which is built to be safer and more focused on js
500+ */
501+ Blockly . Blocks [ 'control_javascript_command' ] = {
502+ init : function ( ) {
503+ this . jsonInit ( {
504+ "message0" : "javascript %1" ,
505+ "args0" : [
506+ {
507+ "type" : "input_value" ,
508+ "name" : "JS"
509+ }
510+ ] ,
511+ "category" : Blockly . Categories . control ,
512+ "extensions" : [ "colours_control" , "shape_statement" ]
513+ } ) ;
514+ }
515+ } ;
516+ Blockly . Blocks [ "operator_javascript_output" ] = {
517+ init : function ( ) {
518+ this . jsonInit ( {
519+ "inputsInline" : true ,
520+ "message0" : "javascript %1" ,
521+ "args0" : [
522+ {
523+ "type" : "input_value" ,
524+ "name" : "JS"
525+ }
526+ ] ,
527+ "category" : Blockly . Categories . operators ,
528+ "extensions" : [ "colours_operators" , "output_string" ]
529+ } ) ;
530+ }
531+ } ;
532+ Blockly . Blocks [ "operator_javascript_boolean" ] = {
533+ init : function ( ) {
534+ this . jsonInit ( {
535+ "inputsInline" : true ,
536+ "message0" : "javascript %1" ,
537+ "args0" : [
538+ {
539+ "type" : "input_value" ,
540+ "name" : "JS"
541+ }
542+ ] ,
543+ "category" : Blockly . Categories . operators ,
544+ "extensions" : [ "colours_operators" , "output_boolean" ]
545+ } ) ;
546+ }
547+ } ;
548+ Blockly . Blocks [ "event_whenjavascript" ] = {
549+ init : function ( ) {
550+ this . jsonInit ( {
551+ "inputsInline" : true ,
552+ "message0" : "when javascript %1 === true" ,
553+ "args0" : [
554+ {
555+ "type" : "input_value" ,
556+ "name" : "JS"
557+ }
558+ ] ,
559+ "category" : Blockly . Categories . event ,
560+ "extensions" : [ "colours_event" , "shape_hat" ]
561+ } ) ;
562+ }
563+ } ;
564+
565+ /**
566+ * Renamed to shear, which is now an effect in looks
567+ */
568+ Blockly . Blocks [ 'looks_setVertTransform' ] = {
569+ init : function ( ) {
570+ this . jsonInit ( {
571+ "message0" : 'skew sprite vertically %1 %' ,
572+ "args0" : [
573+ {
574+ "type" : "input_value" ,
575+ "name" : "PERCENT"
576+ }
577+ ] ,
578+ "category" : Blockly . Categories . looks ,
579+ "extensions" : [ "colours_looks" , "shape_statement" ]
580+ } ) ;
581+ }
582+ } ;
583+ Blockly . Blocks [ 'looks_setHorizTransform' ] = {
584+ init : function ( ) {
585+ this . jsonInit ( {
586+ "message0" : 'skew sprite horizontally %1 %' ,
587+ "args0" : [
588+ {
589+ "type" : "input_value" ,
590+ "name" : "PERCENT"
591+ }
592+ ] ,
593+ "category" : Blockly . Categories . looks ,
594+ "extensions" : [ "colours_looks" , "shape_statement" ]
595+ } ) ;
596+ }
597+ } ;
598+
599+ /* End of Deprecation marker */
0 commit comments