workspaces folders
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import * as Blockly from "blockly";
|
||||
import { javascriptGenerator, Order } from "blockly/javascript";
|
||||
|
||||
Blockly.Blocks['current_object_value'] = {
|
||||
init(this: Blockly.Block) {
|
||||
this.appendEndRowInput('NAME')
|
||||
.appendField('Me');
|
||||
this.setInputsInline(false);
|
||||
this.setOutput(true, 'Object');
|
||||
this.setTooltip('Returns current object instance');
|
||||
this.setColour(315);
|
||||
}
|
||||
};
|
||||
|
||||
javascriptGenerator.forBlock['current_object_value'] = function (_block, _generator) {
|
||||
return ['object', Order.NONE];
|
||||
};
|
||||
|
||||
export { };
|
||||
Reference in New Issue
Block a user