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 define block #6

Open
SebCanet opened this issue Jul 10, 2020 · 9 comments
Open

Add define block #6

SebCanet opened this issue Jul 10, 2020 · 9 comments

Comments

@SebCanet
Copy link
Contributor

No description provided.

@sam-tj
Copy link
Contributor

sam-tj commented Sep 7, 2020

would have to make a block just like for variables but should have properties of definition block.

@sam-tj
Copy link
Contributor

sam-tj commented Sep 8, 2020

Try define block on this https://sam-tj.github.io/Turtle-Studio-v1/

If works well will add this here too.

@SebCanet
Copy link
Contributor Author

SebCanet commented Sep 8, 2020

Seems to be good, but there's a problem when you comment the block, the comment in code appears in loop.

@sam-tj
Copy link
Contributor

sam-tj commented Sep 8, 2020

this
image

@SebCanet
Copy link
Contributor Author

SebCanet commented Sep 8, 2020

yes...helas

@sam-tj
Copy link
Contributor

sam-tj commented Sep 8, 2020

yeah,that will be a problem. The data for that is populating from contextual menu and by default that comment goes to loop section.

@sam-tj
Copy link
Contributor

sam-tj commented Sep 8, 2020

any idea about disabling Add comment option for some blocks?

@SebCanet
Copy link
Contributor Author

SebCanet commented Sep 8, 2020

I prefer understanding how comments work and hack this, I think this could be a good question on the Blockly's forum :-D

@sam-tj
Copy link
Contributor

sam-tj commented Sep 8, 2020

yes that would be great.
Till then I have disabled the context menu for this define block.
Using: this.contextMenu=false;

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

No branches or pull requests

2 participants