Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling block #10042

Open
nevergone opened this issue Jul 17, 2024 · 8 comments
Open

Disabling block #10042

nevergone opened this issue Jul 17, 2024 · 8 comments

Comments

@nevergone
Copy link

It would be useful if blocks could be disabled or deactivated in the block editor.
They would not be deleted, they would just appear differently. It would be similar to commenting lines of code in source code.

@BrightKn1ght
Copy link

I also would be interested in this described feature.

@WueCoding
Copy link

I am also interested!

@THEb0nny
Copy link
Contributor

This is a really good idea, but is there something like this in the parent Google Blockly?

@BrightKn1ght
Copy link

This is a really good idea, but is there something like this in the parent Google Blockly?

I quickly checked blockly 10.4.1. When you right click a block there's a "Disable" option in the context menu. So seems there's already something there. The difficulty will be to modify the transpiler to skip that block.

@THEb0nny
Copy link
Contributor

Indeed, I looked, there the blocks are switched off and they become translucent.
@riknoll is it difficult to implement now?

@riknoll
Copy link
Member

riknoll commented Sep 17, 2024

@THEb0nny we already use the disabled feature; that's what happens to the blocks that are outside of an event handler. we just changed the visuals so that it was a little more visually distinct than just fading the blocks

@THEb0nny
Copy link
Contributor

@riknoll I'm interested in whether it's possible to disable a block without removing it from the algorithm with other blocks. In Blockly, right-clicking on a block opens a menu with an option to disable the block.

@nevergone
Copy link
Author

@riknoll Could you make this feature available directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants