Custom Blocks don't show up in Toolbox categories

433 views
Skip to first unread message

Mike Mogenson

unread,
Oct 4, 2013, 5:46:18 PM10/4/13
to blo...@googlegroups.com
Hello,

I've created some custom Blockly blocks following the guides in the wiki.  But, I'm having a hard time getting these blocks to show up in the Toolbox.

If I create a new block definition javascript file in blockly/static/blocks/ and language generator javascript file in blockly/generators/javascript/ then build Blockly and add a new <category> and <block> tag to the Toolbox xml nothing shows up.



If I add my stuff to one of the existing block definition files and language generator files then build Blockly and add a new <block> Toolbox xml tag the category becomes messed up.


What am I missing?


Thanks,
Mike Mogenson

Ellen Spertus

unread,
Oct 4, 2013, 6:04:59 PM10/4/13
to blo...@googlegroups.com
Thanks for including pictures.  When I see what you showed in your second picture, it's because a javascript error occurred.  If you use Firefox, install Firebug to see console messages.  If you use Chrome, choose Tools -> Developer Tools.

Ellen




--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Mike Mogenson

unread,
Oct 7, 2013, 1:11:53 PM10/7/13
to blo...@googlegroups.com
Thank you for the help.  Blockly is running in a UIWebView within an iPad app.  It turns out XCode was not copying over the newly built blockly files.  Everything seems to be working now!
Reply all
Reply to author
Forward
0 new messages