components/blockly-src/blocks/variables.js
function() {
    this.jsonInit({
      "message0": Blockly.Msg.VARIABLES_SET,
      "args0": [
        {
          "type": "field_variable",
          "name": "VAR",
          "variable": Blockly.Msg.VARIABLES_DEFAULT_NAME
        },
        {
          "type": "input_value",
          "name": "VALUE"
        }
      ],
      "previousStatement": null,
      "nextStatement": null,
      "colour": Blockly.Blocks.variables.HUE,
      "tooltip": Blockly.Msg.VARIABLES_SET_TOOLTIP,
      "helpUrl": Blockly.Msg.VARIABLES_SET_HELPURL
    });
    this.contextMenuMsg_ = Blockly.Msg.VARIABLES_SET_CREATE_GET;
  }
function() {
    this.jsonInit({
      "message0": Blockly.Msg.VARIABLES_SET,
      "args0": [
        {
          "type": "field_variable",
          "name": "VAR",
          "variable": Blockly.Msg.VARIABLES_DEFAULT_NAME
        },
        {
          "type": "input_value",
          "name": "VALUE"
        }
      ],
      "previousStatement": null,
      "nextStatement": null,
      "colour": Blockly.Blocks.variables.HUE,
      "tooltip": Blockly.Msg.VARIABLES_SET_TOOLTIP,
      "helpUrl": Blockly.Msg.VARIABLES_SET_HELPURL
    });
    this.contextMenuMsg_ = Blockly.Msg.VARIABLES_SET_CREATE_GET;
  }
function ( ) { this . jsonInit ( { "message0" : Blockly . Msg . VARIABLES_SET , "args0" : [ { "type" : "field_variable" , "name" : "VAR" , "variable" : Blockly . Msg . VARIABLES_DEFAULT_NAME } , { "type" : "input_value" , "name" : "VALUE" } ] , "previousStatement" : null , "nextStatement" : null , "colour" : Blockly . Blocks . variables . HUE , "tooltip" : Blockly . Msg . VARIABLES_SET_TOOLTIP , "helpUrl" : Blockly . Msg . VARIABLES_SET_HELPURL } ) ; this . contextMenuMsg_ = Blockly . Msg . VARIABLES_SET_CREATE_GET ; }
Block for variable setter.
@this Blockly.Block
Block for variable setter .