text: /**
   * Visual Blocks Editor
   *
   * Copyright 2012 Google Inc.
   * http://blockly.googlecode.com/
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *   http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  /**
   * @fileoverview Custom blocks for Blockly.
   * @author mirage335
   */
  'use strict';
  
  goog.provide('Blockly.Blocks.custom');
  
  goog.require('Blockly.Blocks');
  
  Blockly.Blocks['custom_declarevar'] = {
    init: function() {
      this.setHelpUrl('http://www.example.com/');
      this.setColour(330);
      this.appendDummyInput()
          .appendTitle("declare");
      this.appendValueInput("var")
          .setCheck("null")
          .appendTitle(new Blockly.FieldTextInput("int"), "type");
      this.appendValueInput("NAME")
          .appendTitle("=");
      this.setInputsInline(true);
      this.setTooltip('');
    }
  };
  
  Blockly.Blocks['custom_length'] = {
    init: function() {
      this.setHelpUrl('http://www.w3schools.com/jsref/jsref_length_string.asp');
      this.setColour(160);
      this.appendValueInput('VALUE')
          .setCheck('String')
          .appendTitle('length');
      this.setOutput(true, 'Number');
      this.setTooltip('Returns number of letters in the provided text.');
    }
  };
  
  Blockly.Blocks['text_lengthmore'] = {
    init: function() {
      this.setHelpUrl('http://www.w3schools.com/jsref/jsref_length_string.asp');
      this.setColour(160);
      this.appendValueInput('VALUE')
          .setCheck('String')
          .appendTitle('length');
      this.setOutput(true, 'Number');
      this.setTooltip('Returns number of letters in the provided text.');
    }
  };
  
  