¡Hola! :vulcan_salute: Este es un proyecto relacionado a Pilas Bloques :heart:. En el repositorio de ese proyecto encontrarás las guías sobre cómo contribuir y el código de conducta, que son guías que aplican también a este proyecto.
Hi! :vulcan_salute: This is a project related to Pilas Bloques :heart:. In that project's repository you'll find the contribution guidelines and the code of conduct which also apply to this project.
Blockly Proceds
This Blockly plugin installs new custom procedures for blockly, with custom modifications:
- The parameters now can be easily added and removed with buttons, replacing the mutator popup.
- The arguments (
variables_get
) are associated with the procedure. All this blocks now have a $parent
field with the id of the procedure where they belong. For this to work, you must save this $parent
in the mutation of variables_get
. - The 'help' option was removed from the context menu.
- Procedure descriptions are disabled by default.
Usage
If you desire to use a different language than Spanish, you can define your own translations for the needed blocks using Blockly.Msg
, for example:
Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = 'your translation';
Then proceed to call procedsBlocklyInit()
to load these new translations. Otherwise, you can use the default language by calling setDefacultLocale()
: