The blocks will be disabled if not to connect to the "mutation_container" block on top in the mutator.
I want to remove the "mutation_container" block.
How to modify it?
Thank you.
Blockly.Blocks["mutation_container"] = {
init: function() {
this.appendDummyInput()
.appendField("Hello World");
this.setNextStatement(true, null);
}
};
Blockly.Blocks["mutation_test"] = {
init: function() {
this.appendDummyInput()
.appendField(new Blockly.FieldLabelSerializable(""), "code");
this.getField("code").setVisible(false);
this.appendDummyInput()
.appendField(new Blockly.FieldLabelSerializable(""), "xml");
this.getField("xml").setVisible(false);
this.setInputsInline(true);
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setColour(100);
this.updateShape_();
this.setMutator(new Blockly.Mutator1(["controls_if","logic_compare","math_number"]));
},
mutationToDom: function (workspace) {
},
domToMutation: function (xmlElement) {
},
decompose: function (workspace) {
},
compose: function(containerBlock) {
},
saveConnections: function(containerBlock) {
},
updateShape_: function() {
}
};