Round block design

166 views
Skip to first unread message

HARITHA H PILLAI

unread,
Aug 16, 2020, 1:48:02 AM8/16/20
to Blockly
Hello,    
      I need to create a round block similar in below figure.I created a block using shadow block but i need this kind of block in which here in  round block i can write True False or can attach a new block.So please give me a support to make round block  after the while 



block.png


     

Beka Westberg

unread,
Aug 16, 2020, 12:04:48 PM8/16/20
to blo...@googlegroups.com
Hello!

So if I'm reading this correctly: you have a shadow block that has the behavior you want, but it's the wrong shape?

Have you tried using the 'zelos' renderer? (See the bottom of the configuration doc)

Zelos.png
Or are you having a different problem?

Cheers,
--Beka

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/ff489692-59af-487c-b04a-3c07c87ab257o%40googlegroups.com.

HARITHA H PILLAI

unread,
Aug 18, 2020, 4:10:14 PM8/18/20
to Blockly

Thank you for your reply.
The while block that i created has a space to attach conditions or true/false  into the while block.I need a round block section after while where I can both write and attach its conditions.That is I need to change the structure of space after while into round

wh.png

Beka Westberg

unread,
Aug 18, 2020, 4:26:08 PM8/18/20
to blo...@googlegroups.com
Perfect! Then the 'zelos' renderer I recommended in my previous post should work for you :D 

--
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+u...@googlegroups.com.

rajuga...@gmail.com

unread,
Aug 19, 2020, 12:25:01 AM8/19/20
to Blockly
var workspace = Blockly.inject('blocklyDiv',
    {toolbox: document.getElementById('toolbox'),
     zoom:
         {controls: true,
          wheel: true,
          startScale: 1.0,
        },
     renderer: 'zelos',
     trashcan: true});


HARITHA H PILLAI

unread,
Aug 21, 2020, 6:43:20 AM8/21/20
to blo...@googlegroups.com
Thanks for your response.I put renderer as 'zelos' in the inject option but i did not get the required shape.Is there any editing needed in the workspace xml??

--
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+u...@googlegroups.com.

Beka Westberg

unread,
Aug 21, 2020, 1:15:56 PM8/21/20
to blo...@googlegroups.com
Hmmm that's odd. You shouldn't need to edit the XML. Do you know which version of Blockly you are using? The new rendering pipeline was originally released in 3.20191014.0 and the zelos renderer was completed in 3.20200123.0. If you're not running an updated version the 'renderer' attribute in your config won't work.

I would recommend trying to find your version, and seeing if you need to upgrade. If you're acquiring Blockly via npm I think you can look it up on your package.json file. If you're acquiring it via git you should be able to find out what tag you're checking out. And if you just downloaded the repo you can check if there is a core > renderers > zelos directory.

I hope that helps!
--Beka

HARITHA H PILLAI

unread,
Aug 23, 2020, 1:17:32 PM8/23/20
to blo...@googlegroups.com
I am using old version of blockly.How can I upgrade it to new version​

Beka Westberg

unread,
Aug 23, 2020, 2:43:37 PM8/23/20
to blo...@googlegroups.com
Well it depends on how you're acquiring blockly, and if you've made any modifications to it. If you're acquiring it via npm you can bump the version you're pointing at. If you're acquiring it via git you can checkout the latest release tag.

If you've made any changes to the core you'll have to manually migrate those changes to the latest version and rebuild.

I hope that gives you a place to start!
--Beka

Reply all
Reply to author
Forward
0 new messages