add some help urls and tooltip 📚
This commit is contained in:
@@ -4,6 +4,7 @@ import { getColour } from "../helpers/colour";
|
||||
Blockly.Blocks["sensebox_phyphox_init"] = {
|
||||
init: function () {
|
||||
this.setColour(getColour().phyphox);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.sensebox_phyphox_init)
|
||||
.appendField(new Blockly.FieldTextInput("Geräte Name"), "devicename");
|
||||
@@ -37,6 +38,7 @@ Blockly.Blocks["sensebox_phyphox_experiment"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_experiment_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -77,6 +79,7 @@ Blockly.Blocks["sensebox_phyphox_graph"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_graph_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -86,6 +89,7 @@ Blockly.Blocks["sensebox_phyphox_timestamp"] = {
|
||||
this.appendDummyInput().appendField(Blockly.Msg.sensebox_phyphox_timestamp);
|
||||
this.setOutput(true);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_timestamp_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -107,6 +111,7 @@ Blockly.Blocks["sensebox_phyphox_channel"] = {
|
||||
|
||||
this.setOutput(true);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_channel_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -129,6 +134,7 @@ Blockly.Blocks["sensebox_phyphox_sendchannel"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_sendchannel_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -141,5 +147,6 @@ Blockly.Blocks["sensebox_phyphox_experiment_send"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_phyphox_experiment_send_tooltip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_phyphox_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -159,6 +159,7 @@ Blockly.Blocks["sensebox_lora_ttn_mapper"] = {
|
||||
this.setPreviousStatement(true, null);
|
||||
this.setNextStatement(true, null);
|
||||
this.setTooltip(Blockly.Msg.sensebox_lora_ttn_mapper_tip);
|
||||
this.setHelpUrl(Blockly.Msg.sensebox_lora_ttn_mapper_helpurl);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Blockly.Blocks["sensebox_osem_connection"] = {
|
||||
init: function () {
|
||||
var ssl = "TRUE";
|
||||
this.setTooltip(Blockly.Msg.senseBox_osem_connection_tip);
|
||||
this.setHelpUrl("");
|
||||
this.setHelpUrl(Blockly.Msg.senseBox_osem_connection_helpurl);
|
||||
this.setColour(getColour().sensebox);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.senseBox_osem_connection)
|
||||
|
||||
Reference in New Issue
Block a user