Commit efc47714 authored by Conor Shipp's avatar Conor Shipp Committed by Evan W. Patton

Include if-else and if-elseif-else mutations in blocks drawer

Resolves #1975
parent 68365c94
...@@ -478,6 +478,18 @@ Blockly.Drawer.getDefaultXMLString = function(blockType,mutatorAttributes) { ...@@ -478,6 +478,18 @@ Blockly.Drawer.getDefaultXMLString = function(blockType,mutatorAttributes) {
}; };
Blockly.Drawer.defaultBlockXMLStrings = { Blockly.Drawer.defaultBlockXMLStrings = {
controls_if: {xmlString:
'<xml>' +
'<block type="controls_if">' +
'</block>' +
'<block type="controls_if">' +
'<mutation else="1"></mutation>' +
'</block>' +
'<block type="controls_if">' +
'<mutation elseif="1" else="1"></mutation>' +
'</block>' +
'</xml>' },
controls_forRange: {xmlString: controls_forRange: {xmlString:
'<xml>' + '<xml>' +
'<block type="controls_forRange">' + '<block type="controls_forRange">' +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment