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

Add 'undefined' block #756

Closed
TheBrokenRail opened this issue Dec 29, 2016 · 4 comments
Closed

Add 'undefined' block #756

TheBrokenRail opened this issue Dec 29, 2016 · 4 comments

Comments

@TheBrokenRail
Copy link
Contributor

TheBrokenRail commented Dec 29, 2016

obsolete_block
Currently Unknown blocks will load but be invisible I think we need to implement this so things like modded projects don't break, or broken json, I think it should also preserve shadow blocks.

@thisandagain thisandagain added this to the Backlog milestone Jan 3, 2017
@TheBrokenRail
Copy link
Contributor Author

TheBrokenRail commented Jan 8, 2017

I think inputs and block ID should be kept and the VM will still try to execute it so you don't completely break vertical projects by loading them in horizontal mode, it won't be editable but it would be a placeholdee to allow vertical projects to be edited on horizontal editor, or so modded projects don't fall apart.

@Tymewalk
Copy link
Contributor

We definitely need something like this. Same colors as the current undefined custom block?

@TheBrokenRail
Copy link
Contributor Author

Here is where It grabs data from Blockly.Blocks, adding the undefined block would mean adding a init function as an undefined block that uses inputs defined in it and changes it's output check and shape to adapt for where it is and stores that as an "undefined data" parameter for later use.

@TheBrokenRail
Copy link
Contributor Author

For output shapes Scratch-Blocks should store the output shape in xml so it can be imported properly inside blocks.

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

4 participants