You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change indentation from 4 spaces to 2 spaces.
* Add Parameters string to i18n.
mrc_param_container.ts:
Add constants INPUT_STACK and FIELD_NAME.
mrc_class_method_def.ts:
Add constants INPUT_TITLE, FIELD_PARAM_REFIX, and INPUT_STACK.
Renamed constant RETURN_VALUE to INPUT_RETURN.
* mrc_param_container.ts:
Replaced mutatorOpenListener function (a blockly change listener) with onMutatorOpen function,
which is is called only for mutator open events on mrc_class_method_def and mrc_event blocks.
mrc_class_method_def.ts and mrc_event.ts:
Added mrcOnMutatorOpen method, which calls onMutatorOpen in mrc_param_container.
editor.ts:
Added code to handle the BubbleOpenEvent for a mutator and call mrcOnMutatorOpen on the block.
App.tsx:
Removed code that adds mutatorOpenListener to each blockly workspace.
* Added function getMutatorIcon to mrc_param_container.ts.
Call getMutatorIcon from mrc_class_method_def.ts and mrc_event.ts.
* Added function createMutatorBlocks to mrc_param_container.ts
Call createMutatorBlocks from EventBlock.decompose and ClassMethodDefBlock.decompose.
* mrc_param_container.ts:
Renamed METHOD_PARAM_CONTAINER to PARAM_CONTAINER.
Added type ParamContainerBlock, interface ParamContainerMixin, and type ParamContainerMixinType.
Added getParamItemBlocks function to ParamContainerBlock.
Renamed MUTATOR_BLOCK_NAME to PARAM_ITEM_BLOCK_NAME.
Renamed METHODS_MUTATORARG to PARAM_ITEM.
Renamed MethodMutatorArgBlock to ParamItemBlock.
Renamed MethodMutatorArgMixin to ParamItemMixin.
Renamed MethodMutatorArgMixinType to ParamItemMixinType
Added getName, getOriginalName, and setOriginalName functions to ParamItemBlock.
mrc_event.ts and mrc_class_method_def.ts:
Modified EventBlock.compose and ClassMethodDefBlock.compose to call getParamItemBlocks on the container block and then call getName, getOriginalName, and setOriginalName on each ParamItemBlock.
* Replaced function setName with method ParamItemBlock.makeNameLegal.
Changed function updateMutatorFlyout to use forEach loop. Renamed local variable argValue to uniqueName.
* Use a normal blockly change listener instead of change_framework.ts.
0 commit comments