Enabled pico extension

This commit is contained in:
Shane M. Clements 2014-05-16 12:41:25 -06:00
parent d01bacacfb
commit 4b517cf8c1
3 changed files with 4 additions and 9 deletions

View file

@ -61,7 +61,7 @@ public class ExtensionManager {
public function clearImportedExtensions():void {
// Clear imported extensions before loading a new project.
extensionDict = {};
//extensionDict['PicoBoard'] = ScratchExtension.PicoBoard();
extensionDict['PicoBoard'] = ScratchExtension.PicoBoard();
extensionDict[wedoExt] = ScratchExtension.WeDo();
}

View file

@ -69,14 +69,9 @@ public class ScratchExtension {
public static function PicoBoard():ScratchExtension {
// Return a descriptor for the Scratch PicoBoard extension.
var result:ScratchExtension = new ScratchExtension('PicoBoard', 17302);
var result:ScratchExtension = new ScratchExtension('PicoBoard', 0);
result.isInternal = true;
result.useScratchPrimitives = true;
result.blockSpecs = [
['h', 'when %m.booleanSensor', 'whenSensorConnected', 'button pressed'],
['b', 'sensor %m.booleanSensor?', 'sensorPressed:', 'button pressed'],
['r', '%m.sensor sensor value', 'sensor:', 'slider'],
];
result.javascriptURL = '/scratchr2/static/js/scratch_extensions/picoExtension.js';
result.thumbnailMD5 = '82318df0f682b1de33f64da8726660dc.png';
result.url = 'http://wiki.scratch.mit.edu/wiki/Sensor_Board_Blocks';
result.tags = ['hardware'];

View file

@ -340,7 +340,7 @@ spriteFeaturesFilter.visible = false; // disable features filter for now
private function addScratchExtensions():void {
const extList:Array = [
//ScratchExtension.PicoBoard(),
ScratchExtension.PicoBoard(),
ScratchExtension.WeDo()];
allItems = [];
for each (var ext:ScratchExtension in extList) {