mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Enabled pico extension
This commit is contained in:
parent
d01bacacfb
commit
4b517cf8c1
3 changed files with 4 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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'];
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue