Congratulations @Kevinkun!! Your extension is wonderful!! I had a lot of trouble when I needed to find blocks since the two apps I have built using App Inventor are quite large. It took me ages of panning and zooming in and out, and with your extension I can go directly where I want!
click on find and write the name of what you want to find.
Unfortunately, it just does that, for everything else just follow the advice to download the extension. Hello
Thanks again! Works as expected on Chrome. My browser is Firefox, I'll try that too.
What I find confusing is that it always says "Found one match", it would be nice
if it said "n of m" - but may be tricky to code...
I made an update for this AI2HELPER, now it looks like this:
Click the AI2HELPER button, it will show (or hide) a palette, you will see some buttons and a list of all the top blocks (global variables, procedures, and events) in alphabetical order.
Click on this list item, it will highlight the relavent blocks.
Thanks for your report. please check with 0.7.7.
Now the helper will hide automaticly when switching to designer view.
If the screen is not wide enough, you need to use the horizontal scrollbar.
For some reason when I click on Download all as png after installing the extension, it says Are you sure you want to download 0 blocks? I have 13 blocks total.
function downloadPNGIgnoreOrphan(){
var topblocks=Blockly.getMainWorkspace().getTopBlocks();
var blocks=topblocks.filter((block)=>{
return types.indexOf(block.type)>=0
});
if(confirm("Are you sure to download all " + blocks.length + " blocks?")){
var i=0;
var timer=setTimeout(function(){
if(i<blocks.length){
exportBlockAsPng(blocks[i]);
i++;
timer=setTimeout(arguments.callee,1000)
}
},1000);
}
}
change
return types.indexOf(block.type)>=0
to
return types.indexOf(block.type)>=-1