renciso218 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

able to set an image on a block #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
FYR arduiblock in Arduino IDE: 
https://groups.google.com/forum/?fromgroups=#!topic/blockly/rwIRMxd4jDk

In arduiblock, the electric blocks are come with intuitive image, which helps 
newbies can visually recognize what this block is work for.

Original issue reported on code.google.com by gasolin on 10 Sep 2012 at 10:11

GoogleCodeExporter commented 8 years ago
Images can how be added to blocks (r440).  Use:
  this.appendTitle(new Blockly.FieldImage('http://example.com/cat.gif', 12, 12));
The block factory has been updated with the ability to add images.  The text 
block has been modified to display a couple of oversized quotes as an example 
of the use of images.

Still todo:
* Modify block rendering to expand vertically to fit the image (it does expand 
horizontally).
* Add wiki documentation.

Original comment by neil.fra...@gmail.com on 29 Sep 2012 at 6:22

GoogleCodeExporter commented 8 years ago
Blocks now resize to accommodate large images.  Documentation has been updated. 
 Enjoy!

Original comment by neil.fra...@gmail.com on 30 Sep 2012 at 6:46