1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 'use strict';
- goog.provide('Blockly.Blocks.Thread');
- goog.require('Blockly.Blocks');
- Blockly.Blocks.Thread.HUE = "#5cd3db";
- Blockly.Blocks['Thread_import'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.Thread.HUE);
- this.appendDummyInput()
- .appendField(Blockly.Msg.THREAD_IMPORT);
-
-
- this.setPreviousStatement(true);
- this.setNextStatement(true);
- },
- };
- Blockly.Blocks['Thread_start_output'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.Thread.HUE);
- this.appendValueInput("INPUT")
- .appendField(Blockly.Msg.THREAD_THREADING)
- this.appendDummyInput()
- .appendField(Blockly.Msg.THREAD_START)
- this.setInputsInline(true);
- this.setOutput(true);
-
-
- },
- };
- Blockly.Blocks['Thread_start_preNext'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.Thread.HUE);
- this.appendValueInput("INPUT")
- .appendField(Blockly.Msg.THREAD_THREADING)
- this.appendDummyInput()
- .appendField(Blockly.Msg.THREAD_START)
- this.setInputsInline(true);
-
- this.setPreviousStatement(true);
- this.setNextStatement(true);
- },
- };
- Blockly.Blocks['Thread_set_target'] = {
- init: function() {
- this.setColour(Blockly.Blocks.Thread.HUE);
- this.appendValueInput("TARGET")
- .appendField(Blockly.Msg.THREAD_SET_TARGET)
- this.setInputsInline(true);
- this.setOutput(true);
- }
- }
|