Not sure if this is what you're looking for - below is the code I write - for what it's worth :)
Best wishes
Andy Stratton
Blockly.Blocks['quando_projector'] = {
init: function() {
this.appendValueInput("GREETING")
.appendField("Projector")
.appendField(
new Blockly.FieldImage(
"./resources/image_file.jpg", 31, 31, "*"));;
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(240);
}
};
Blockly.Blocks['quando_image'] = {
init: function() {
this.appendDummyInput("GREETING")
.appendField(
new Blockly.FieldImage(
"./resources/image_file.jpg", 31, 31, "*"))
.appendField("Image");
this.setOutput(true, "quando_image");
this.setColour(240);
}
};--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/AdEBeYJkkZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Noe
What you describe is what I want to do. Didn't make any progress so if you'll find a way pls let me know.
Thanks
David