-
Notifications
You must be signed in to change notification settings - Fork 614
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
Blocks from context menus #634
Comments
I think I've seen something like this in App Inventor. @ewpatton? |
We don't have this feature specifically, but we have two that are very similar and would in combination be something akin to this.
If I were to attempt an implementation of this, I would probably embed an |
Transferring to Blockly Samples as this would make a really nice plugin. |
Currently context menus for variables look like this:
It would be better if they looked like this:
Ideally the block could be dragged out (like from a flyout), but also consider it just being a graphical button which creates the block when clicked (like the existing menu row). This would apply to the context menus of variable blocks, for/in loops, function arguments, and maybe some others.
This issue should not be addressed right now, since the context menus are due for rewriting. They were copied from Closure and suffer from code bloat. However, while rewriting these menus, we should keep this issue in mind.
How to achieve this goal is an open question. Maybe the menu row should be a flyout. Maybe the menu row should contain a dynamically-generated PNG with XML payload. Maybe the menu row should be a workspace.
This proposal is a result of seeing @BeksOmega unexpectedly drag a block out of a field, followed by the rest of us dragging our jaws off the floor.
The text was updated successfully, but these errors were encountered: