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

Adding Blockly #15

Open
KVonGit opened this issue Dec 29, 2020 · 1 comment
Open

Adding Blockly #15

KVonGit opened this issue Dec 29, 2020 · 1 comment

Comments

@KVonGit
Copy link
Contributor

KVonGit commented Dec 29, 2020

Hello.

The current version of QEdit in my fork has Blockly (partially) set up.

When in a room tab, there is a "switch" for Blockly. If toggled on, you can scroll down to use Blockly.

Right now, the code has to be copied from the Blockly textarea and pasted into the actual Javascript textarea, but I'm working on getting it to inject the code into the correct textarea (which will negate the need for the Blockly textarea).

Here's what I've got it doing at the moment: https://github.com/KVonGit/QEdit/issues/8#issuecomment-752119306

@KVonGit
Copy link
Contributor Author

KVonGit commented Jan 1, 2021

Hello.

  1. I changed the way Blockly is toggled in the editor. (You'll see when you click the link provided in this post.)
  2. Who's going to be in charge of making all the Quest-specific blocks? (Or will you come up with some fancy for loop to do it?)

It took me a while, but I finally made a msg block.

I made it in the block factory, and I had to watch a video before I knew what the heck to do.

Here's the code for (and an example video illustrating the use of) the msg block:
Blockly msg block for QuestJS


PS

I still need to figure out how to include a block for a variable. (I think I've got that halfway figured out. I can add the block, but it won't let you change the name of the variable. (I think I have to add some code to tell Blockly how to handle that part.))

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

1 participant