update RGB-Block

This commit is contained in:
Mario
2020-12-29 15:13:33 +01:00
parent f6f6d6f1da
commit 48e63fe898
12 changed files with 378 additions and 98 deletions
@@ -12,6 +12,7 @@ Blockly.Blocks["sensebox_telegram"] = {
.appendField("telegram")
.appendField(new Blockly.FieldTextInput("token"), "telegram_token");
this.setPreviousStatement(true, null);
this.setTooltip(Blockly.Msg.senseBox_telegram_init_tooltip);
this.setNextStatement(true, null);
}
};
@@ -24,6 +25,7 @@ Blockly.Blocks["sensebox_telegram_do"] = {
this.appendStatementInput("telegram_do");
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setTooltip(Blockly.Msg.senseBox_telegram_do_tooltip)
}
};
@@ -36,6 +38,7 @@ Blockly.Blocks["sensebox_telegram_do_on_message"] = {
.appendField(Blockly.Msg.senseBox_telegram_message)
.appendField(new Blockly.FieldTextInput("/message"), 'telegram_message');
this.appendStatementInput("telegram_do_on_message").setCheck(null);
this.setTooltip(Blockly.Msg.senseBox_telegram_message_tooltip)
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
}
@@ -46,8 +49,10 @@ Blockly.Blocks["sensebox_telegram_send"] = {
this.setColour(getColour().sensebox);
this.appendDummyInput().appendField(Blockly.Msg.senseBox_telegram_send);
this.appendValueInput("telegram_text_to_send").setCheck(null);
this.setTooltip(Blockly.Msg.senseBox_telegram_send_tooltip)
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
},
LOOP_TYPES: ["sensebox_telegram_do_on_message"]
};