Blockly.Constants.Loops.HUE = 120; // Replace with whatever hue you wantYou say "after loading Blockly add"... Are you talking about in the file where I create my workspace and custom blocks? I'm using vue.js, so on the page where my workspace is I have the xml stuff for the blocks up top i.e. <block type="controls_whileUntil"> etc
Then I set up all my custom blocks in javascript (with vue) below that...Are you talking about in this file after I create all the custom blocks?
Also, can I use the HEX value for colors or does it have to be HUE for built in blocks?
Thanks again for your help!!
block.setColour(Blockly.Constants.Loops.HUE);Changing the text color in the css.js file didn't do anything either. Is it because I have mostly custom blocks and then set up loops and conditionals in the xml portion of my file?
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I placed those lines of code that is suggested at the very beginning of the "start' function and got those results. It stated to place them in the <script> tag at the top, but that did not produce any results.
I more so meant the functionality of the Loops and Conditionals. They will have the exact same functionality to them, I just need to chain a promise to each of them.