Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 10, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* 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.
@pull pull bot locked and limited conversation to collaborators Oct 10, 2025
@pull pull bot added the ⤵️ pull label Oct 10, 2025
@pull pull bot merged commit 06dfdb0 into alan412:main Oct 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant