Extensions: 'code' block fields

ShivaFang

  • Posts: 248
I'd like to be able to set a field for a block as a 'code' field in an extension.  This would work exactly like 'text', but without the automatic quotes.

I'm trying to make something like this work;
Code: [Select]
<block tag="CreateLocalVar" spec="Create Local variable %0 of type %1" code="var ~:~;" type="action" color="gray" returns="void">
<fields>
<code order="0"></code>
<code order="1"></code>
</fields>
</block>

and currently it can't;  'text' puts quotes around it which makes the output;
Code: [Select]
var "%0":"%1";which of course doesn't parse!

Edited to make it more clear I'm talking about extensions.

« Last Edit: October 29, 2012, 02:48:44 pm by ShivaFang »
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!

Hectate

  • *
  • Posts: 4645
Does the code block under Flow - Advanced not do what you need?

Oh, you mean as one of the parameter types of the custom block setup.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

ShivaFang

  • Posts: 248
As a parameter of the 'extensions' blocks. (blocks.xml)  My bad, I should have been more clear - will edit original post.
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!