kopia lustrzana https://github.com/backface/turtlestitch
import tools shows block images
rodzic
ee6ba75388
commit
cb865a864f
7
gui.js
7
gui.js
|
@ -6472,14 +6472,13 @@ LibraryImportDialogMorph.prototype.displayBlocks = function (libraryKey) {
|
||||||
}
|
}
|
||||||
|
|
||||||
previousCategory = category;
|
previousCategory = category;
|
||||||
block = definition.templateInstance();
|
blockImage = definition.templateInstance().fullImage();
|
||||||
blockImage = block.fullImage();
|
|
||||||
blockContainer = new Morph();
|
blockContainer = new Morph();
|
||||||
blockContainer.image = blockImage;
|
|
||||||
blockContainer.setPosition(new Point(x, y));
|
|
||||||
blockContainer.setExtent(
|
blockContainer.setExtent(
|
||||||
new Point(blockImage.width, blockImage.height)
|
new Point(blockImage.width, blockImage.height)
|
||||||
);
|
);
|
||||||
|
blockContainer.image = blockImage;
|
||||||
|
blockContainer.setPosition(new Point(x, y));
|
||||||
myself.palette.add(blockContainer);
|
myself.palette.add(blockContainer);
|
||||||
y += blockContainer.fullBounds().height() + padding;
|
y += blockContainer.fullBounds().height() + padding;
|
||||||
blocksList.pop(idx);
|
blocksList.pop(idx);
|
||||||
|
|
Ładowanie…
Reference in New Issue