blocks_vertical/motion.js
function() {
    this.jsonInit({
      "message0": "%1",
      "args0": [
        {
          "type": "field_dropdown",
          "name": "TOWARDS",
          "options": [
            [Blockly.Msg.MOTION_POINTTOWARDS_POINTER, '_mouse_'],
            [Blockly.Msg.MOTION_POINTTOWARDS_RANDOM, '_random_']
          ]
        }
      ],
      "colour": Blockly.Colours.motion.secondary,
      "colourSecondary": Blockly.Colours.motion.secondary,
      "colourTertiary": Blockly.Colours.motion.tertiary,
      "extensions": ["output_string"]
    });
  }
function() {
    this.jsonInit({
      "message0": "%1",
      "args0": [
        {
          "type": "field_dropdown",
          "name": "TOWARDS",
          "options": [
            [Blockly.Msg.MOTION_POINTTOWARDS_POINTER, '_mouse_'],
            [Blockly.Msg.MOTION_POINTTOWARDS_RANDOM, '_random_']
          ]
        }
      ],
      "colour": Blockly.Colours.motion.secondary,
      "colourSecondary": Blockly.Colours.motion.secondary,
      "colourTertiary": Blockly.Colours.motion.tertiary,
      "extensions": ["output_string"]
    });
  }
function ( ) { this . jsonInit ( { "message0" : "%1" , "args0" : [ { "type" : "field_dropdown" , "name" : "TOWARDS" , "options" : [ [ Blockly . Msg . MOTION_POINTTOWARDS_POINTER , '_mouse_' ] , [ Blockly . Msg . MOTION_POINTTOWARDS_RANDOM , '_random_' ] ] } ] , "colour" : Blockly . Colours . motion . secondary , "colourSecondary" : Blockly . Colours . motion . secondary , "colourTertiary" : Blockly . Colours . motion . tertiary , "extensions" : [ "output_string" ] } ) ; }
Point towards drop-down menu.
@this Blockly.Block
Point towards drop - down menu .