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
Added code in onChangeAfterLoading to handle VIEWPORT_CHANGE and BLOCK_CREATE events.
For VIEWPORT_CHANGE, set the paste location to the center of the blockly workspace.
For BLOCK_CREATE, call mrcOnCreate on the newly created block (if the block has that method).
In makeCurrent, set the paste workspace and location.
In mrc_call_python_function.ts, mrc_component.ts, mrc_event.ts, mrc_event_handler.ts, mrc_mechanism.ts:
Added mrcOnCreate so blocks that are created or pasted are checked.
In mrc_call_python_function.ts, mrc_event_handler.ts, mrc_jump_to_step.ts, mrc_mechanism.ts:
Check whether getIcon(Blockly.icons.IconType.WARNING) returns null.
In mrc_call_python_function.ts:
Added code to checkFunction to check blocks that call an instance method defined in the same module.
Copy file name to clipboardExpand all lines: src/i18n/locales/en/translation.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,7 @@
207
207
"PAGINATION_TOTAL": "{{start}}-{{end}} of {{total}} items"
208
208
},
209
209
"WARNING":{
210
+
"CALL_INSTANCE_WITHIN_METHOD_MISSING_METHOD": "This block calls a method that does not exist in this module.",
210
211
"CALL_COMPONENT_INSTANCE_METHOD_PRIVATE_COMPONENT": "This blocks calls a method on a private component in the {{mechanismClassName}} mechanism.",
211
212
"CALL_COMPONENT_INSTANCE_METHOD_MISSING_COMPONENT": "This block calls a method on a component that no longer exists.",
212
213
"CALL_MECHANISM_COMPONENT_INSTANCE_METHOD_MISSING_MECHANISM": "This block calls a method on a component that belongs to a mechanism that no longer exists.",
Copy file name to clipboardExpand all lines: src/i18n/locales/es/translation.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,7 @@
208
208
"PAGINATION_TOTAL": "{{start}}-{{end}} de {{total}} elementos"
209
209
},
210
210
"WARNING":{
211
+
"CALL_INSTANCE_WITHIN_METHOD_MISSING_METHOD": "Este bloque llama a un método que no existe en este módulo.",
211
212
"CALL_COMPONENT_INSTANCE_METHOD_PRIVATE_COMPONENT": "Este bloque llama a un método en un componente privado en el mecanismo {{mechanismClassName}}.",
212
213
"CALL_COMPONENT_INSTANCE_METHOD_MISSING_COMPONENT": "Este bloque llama a un método en un componente que ya no existe.",
213
214
"CALL_MECHANISM_COMPONENT_INSTANCE_METHOD_MISSING_MECHANISM": "Este bloque llama a un método de un componente que pertenece a un mecanismo que ya no existe.",
0 commit comments