virtual-world-framework/mars-game — pull request #78 by scottnc27603 (2014-05-29 17:48:40+00:00)
Title: Blockly toolbox

@eric79
The toolbox can be dynamically set now, with these exceptions:

https://code.google.com/p/blockly/wiki/Toolbox

Blockly.updateToolbox(newTree);
As was the case during initial configuration, newTree may either be a tree of nodes, or a string representation. The only restriction is that the mode cannot be changed; that is if there were categories in the initially-defined toolbox then the new toolbox must also have categories (though the categories may change). Likewise, if the initially-defined toolbox did not have any categories, then the new toolbox may not have any categories.

Be aware that at this time updating the toolbar causes some minor UI resets:

In a toolbox with categories, the flyout will close if it was open.
In a toolbox without categories, any fields changed by the user (such as a dropdown) will revert to the default.
Any toolbox so long that it extends beyond the page will have its scrollbar jump to the top.

Try:
rover or graph
or
toolbox or completeToolbox ( didn't actually test this )

Test with branch/blockly-toolbox from the mars game.