123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- 'use strict';
- goog.provide('Blockly.Blocks.System');
- goog.require('Blockly.Blocks');
- Blockly.Blocks.System.HUE = "#6cb7b3";
- Blockly.Blocks['System_import'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.System.HUE);
- this.appendDummyInput()
- .appendField(Blockly.Msg.SYSTEM_IMPORT);
-
-
- this.setPreviousStatement(true);
- this.setNextStatement(true);
- },
- };
- Blockly.Blocks['System_exit'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.System.HUE);
- this.appendDummyInput()
- .appendField(Blockly.Msg.SYSTEM_EXIT)
- .appendField(new Blockly.FieldTextInput("1"),"TEXT_INPUT")
-
-
- this.setPreviousStatement(true);
- this.setNextStatement(true);
- },
- };
- Blockly.Blocks['System_dot'] = {
-
- init: function() {
- this.setColour(Blockly.Blocks.System.HUE);
- this.appendValueInput("INPUT1")
- .appendField("")
- this.appendValueInput("INPUT2")
- .appendField(".")
- this.setInputsInline(true);
- this.setOutput(true);
-
-
- },
- }
|