Done (r287). You can now add the following:
this.appendInput(';', Blockly.DUMMY_INPUT, '', null);
--
Thanks.
I check out the latest project source code but I can not define a new procedure.
Blockly.Language.procedures_defreturn_1 = {
// Define a procedure with a return value.
category: null, // Procedures are handled specially.
helpUrl: Blockly.LANG_PROCEDURES_DEFRETURN_HELPURL,
init: function() {
this.setColour(290);
this.appendTitle(':');
var name = Blockly.Procedures.findLegalName(Blockly.LANG_PROCEDURES_DEFRETURN_PROCEDURE, this);
this.appendTitle(new Blockly.FieldTextInput(name, Blockly.Procedures.rename), 'NAME');
this.appendInput('', Blockly.NEXT_STATEMENT, 'STACK');
//this.appendInput(Blockly.LANG_PROCEDURES_DEFRETURN_RETURN, Blockly.INPUT_VALUE, 'RETURN', null);
this.appendInput(';', Blockly.DUMMY_INPUT, '', null);
//this.setMutator(new Blockly.Mutator(this, ['procedures_mutatorparam']));
this.setTooltip(Blockly.LANG_PROCEDURES_DEFRETURN_TOOLTIP_1);
},
destroy: Blockly.Language.procedures_defnoreturn_1.destroy,
getProcedureDef: function() {
// Return the name of the defined procedure
// and that it does not have a return value.
return [this.getTitleText('NAME'), true];
}
};