1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 'use strict';
- goog.require('Blockly.Blocks');
- goog.require('Blockly.Types');
- Blockly.Blocks.variables.HUE = 330;
- Blockly.Blocks['define'] = {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init: function() {
- this.appendValueInput("define_init")
- .setCheck("define_var")
- .appendField("define");
- this.appendDummyInput();
- this.appendValueInput("define_variable")
- .setCheck(["String", "Number"])
- .appendField("for");
- this.setPreviousStatement(true, null);
- this.setNextStatement(true, null);
- this.setColour(255);
- this.setTooltip('LE');
- this.setHelpUrl('');
- }
- };
- Blockly.Blocks['define_var'] = {
- init: function() {
- this.appendDummyInput()
- .appendField(new Blockly.FieldVariable("item"), "define_variable");
- this.setOutput(true, null);
- this.setColour(210);
- this.setTooltip('');
- this.setHelpUrl('');
- }
- };
|