{
"HIGHLIGHTSTROKECOLORS": [
[
"food",
"#000000"
],
[
"eatme",
"#000000"
]
],
"ARGPLUGINS": [
[
"fiber",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = nutritionFiber;"
],
[
"calories",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = nutritionCalories;"
],
[
"protein",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = nutritionProtein;"
],
[
"carbohydrates",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = nutritionCarbohydrate;"
],
[
"fat",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = nutritionFat;"
],
[
"get_calories",
"var block = logo.blocks.blockList[blk];var conns = block.connections;var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];block.value = blockFoodData[0];"
],
[
"get_protein",
"var block = logo.blocks.blockList[blk];var conns = block.connections;var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];block.value = blockFoodData[1];"
],
[
"get_carbohydrates",
"var block = logo.blocks.blockList[blk];var conns = block.connections;var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];block.value = blockFoodData[2];"
],
[
"get_fiber",
"var block = logo.blocks.blockList[blk];var conns = block.connections;var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];block.value = blockFoodData[3];"
],
[
"get_fat",
"var block = logo.blocks.blockList[blk];var conns = block.connections;var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];block.value = blockFoodData[4];"
],
[
"get_name",
"var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.blocks.blockList[conns[1]].name;"
]
],
"PARAMETERPLUGINS": [
[
"calories )",
"value = nutritionCalories;"
],
[
"protein",
"value = nutritionProtein;"
],
[
"carbohydrates",
"value = nutritionCarbohydrates;"
],
[
"fiber",
"value = nutritionFiber;"
],
[
"fat",
"value = nutritionFat;"
]
],
"GLOBALS": "nutritionCalories = 0;nutritionProtein = 0;nutritionCarbohydrate = 0;nutritionFiber = 0;nutritionFat = 0;nutritionFoodData = { 'apple': [72, 0, 19, 3, 0], 'banana': [105, 1, 27, 3, 0], 'orange': [62, 1, 15, 3, 0], 'bread': [69, 4, 12, 2, 1], 'corn': [96, 3, 21, 3, 1], 'potato': [159, 4, 36, 4, 0], 'sweetpotato': [169, 1, 22, 1, 8], 'tomato': [150, 4, 25, 3, 5], 'broccoli': [94, 4, 11, 5, 5], 'riceandbeans': [411, 14, 60, 8, 13], 'tamale': [126, 6, 11, 1, 6], 'cheese': [114, 7, 0, 0, 9], 'chicken': [152, 15, 0, 0, 10], 'fish': [58, 6, 0, 0, 3], 'beef': [285, 46, 0, 0, 10], 'cake': [387, 4, 69, 2, 13], 'cookie': [68, 1, 8, 0, 4], 'water': [0, 0, 0, 0, 0]};",
"PALETTEHIGHLIGHTCOLORS": [
[
"food",
"#FFFFFF"
],
[
"eatme",
"#FFFFFF"
]
],
"FLOWPLUGINS": [
[
"apple",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"banana",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"orange",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"bread",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"corn",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"potato",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"sweetpotato",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"tomato",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"broccoli",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"riceandbeans",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"tamale",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"cheese",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"chicken",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"fish",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"beef",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"cake",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"cookie",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"water",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};block.value = nutritionFoodData[block.name];showMsg(block.value);"
],
[
"eat",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};console.log();var blockFoodData = nutritionFoodData[logo.blocks.blockList[conns[1]].name];nutritionCalories += blockFoodData[0];nutritionProtein += blockFoodData[1];nutritionCarbohydrate += blockFoodData[2];nutritionFiber += blockFoodData[3];nutritionFat += blockFoodData[4];"
],
[
"digest",
"var block = logo.blocks.blockList[blk];var conns = block.connections;function showMsg(data) { logo.textMsg(JSON.stringify(data));};nutritionCalories = 0;nutritionProtein = 0;nutritionCarbohydrate = 0;nutritionFiber = 0;nutritionFat = 0;"
]
],
"PALETTEPLUGINS": [
[
"food",
""
],
[
"eatme",
""
]
],
"IMAGES": [
[
"egg",
"data:image/svg+xml;utf8,"
],
[
"orange",
"data:image/svg+xml;utf8,"
],
[
"tomato",
"data:image/svg+xml;utf8,"
],
[
"sweetpotato",
"data:image/svg+xml;utf8,"
],
[
"broccoli",
"data:image/svg+xml;utf8,"
],
[
"apple",
"data:image/svg+xml;utf8,"
],
[
"cookie",
"data:image/svg+xml;utf8,"
],
[
"corn",
"data:image/svg+xml;utf8,"
],
[
"water",
"data:image/svg+xml;utf8,"
],
[
"beef",
"data:image/svg+xml;utf8,"
],
[
"cake",
"data:image/svg+xml;utf8,"
],
[
"potato",
"data:image/svg+xml;utf8,"
],
[
"fish",
"data:image/svg+xml;utf8,"
],
[
"bread",
"data:image/svg+xml;utf8,"
],
[
"banana",
"data:image/svg+xml;utf8,"
],
[
"cheese",
"data:image/svg+xml;utf8,"
],
[
"chicken",
"data:image/svg+xml;utf8,"
],
[
"tamale",
"data:image/svg+xml;utf8,"
],
[
"riceandbeans",
"data:image/svg+xml;utf8,"
]
],
"BLOCKPLUGINS": [
[
"get_calories",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_calories', _('get calories'));"
],
[
"get_protein",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_protein', _('get protein'));"
],
[
"get_carbohydrates",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_carbohydrates', _('get carbs'));"
],
[
"get_fiber",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_fiber', _('get fiber'));"
],
[
"get_fat",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_fat', _('get fat'));"
],
[
"get_name",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};get_eatme('get_name', _('get name'));"
],
[
"calories",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};show_value('calories', _('calories'));"
],
[
"protein",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};show_value('protein', _('protein'));"
],
[
"carbohydrates",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};show_value('carbohydrates', _('carbs'));"
],
[
"fiber",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};show_value('fiber', _('fiber'));"
],
[
"fat",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};show_value('fat', _('fat'));"
],
[
"eat",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};eat('eat', _('eat'));"
],
[
"digest",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};action('digest', _('digest meal'), 20);"
],
[
"apple",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('apple', _('apple'));"
],
[
"banana",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('banana', _('banana'));"
],
[
"orange",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('orange', _('orange'));"
],
[
"bread",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('bread', _('wheat bread'));"
],
[
"corn",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('corn', _('corn'));"
],
[
"potato",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('potato', _('potato'));"
],
[
"sweetpotato",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('sweetpotato', _('sweet potato'));"
],
[
"tomato",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('tomato', _('tomato'));"
],
[
"broccoli",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('broccoli', _('broccoli'));"
],
[
"riceandbeans",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('riceandbeans', _('rice and beans'));"
],
[
"tamale",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('tamale', _('tamale'));"
],
[
"cheese",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('cheese', _('cheese'));"
],
[
"chicken",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('chicken', _('chicken'));"
],
[
"fish",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('fish', _('fish'));"
],
[
"beef",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('beef', _('beef'));"
],
[
"cake",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('cake', _('cake'));"
],
[
"cookie",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('cookie', _('cookie'));"
],
[
"water",
"var get_eatme = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.dockTypes[1] = 'mediain';};var show_value = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.parameterBlock();};var eat = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgBlock(); block.dockTypes[1] = 'mediain';};var action = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['eatme']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.zeroArgBlock();};var food_block = function (blkname, name) { var block = new ProtoBlock(blkname); block.palette = palettes.dict['food']; block.image = pluginsImages[blkname]; block.staticLabels.push(name); block.adjustWidthToLabel(); block.mediaBlock(); blocks.protoBlockDict[blkname] = block;};food_block('water', _('water'));"
]
],
"PALETTEFILLCOLORS": [
[
"food",
"#D5D5D5"
],
[
"eatme",
"#D5D5D5"
]
],
"PALETTESTROKECOLORS": [
[
"food",
"#A0A0A0"
],
[
"eatme",
"#A0A0A0"
]
]
}