Closed GoogleCodeExporter closed 8 years ago
> "For mutator enabled blocks not all information are visible within the xml
representation"
I believe this is false. Here is the XML for an if/elseif/elseif:
<xml>
<block type="controls_if" inline="false" x="46" y="42">
<mutation elseif="2"></mutation>
</block>
</xml>
Without this one couldn't use XML to save and restore blocks.
Please reopen if I have misunderstood.
Original comment by neil.fra...@gmail.com
on 12 Mar 2013 at 11:39
Hey, you are right about the XML representation. In my case i don't use the XML
representation to create a block but "new Blockly.Block ()" . In order to
modify the block (setTitleValue, etc) I require the input area names and in the
case of the mutator the names of the mutator count variables. They are not
known. At the moment it is sufficient to add "Count_" to the mutator attributes
within the mutator child element. But this is not mandatory, just true for the
moment.
But you can stick with the actual realisation, I just thought it would separate
the mutator feature from the rest.
Best regards
Original comment by borntob...@googlemail.com
on 13 Mar 2013 at 12:09
Original issue reported on code.google.com by
borntob...@googlemail.com
on 12 Mar 2013 at 10:29