kopia lustrzana https://github.com/backface/turtlestitch
added test for the existence of generic hat blocks
rodzic
c28631d117
commit
173446fdd5
|
@ -17,6 +17,9 @@
|
|||
* Russian, thanks, Pavel!
|
||||
* German
|
||||
|
||||
### 2020-10-26
|
||||
* objects: added test for the existence of generic WHEN hat blocks
|
||||
|
||||
### 2020-10-23
|
||||
* pushed dev version to v6.3.0 because of new features
|
||||
* objects: don't show some development-only blocks as search results
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/blocks.js?version=2020-10-23"></script>
|
||||
<script src="src/threads.js?version=2020-10-08"></script>
|
||||
<script src="src/objects.js?version=2020-10-23"></script>
|
||||
<script src="src/objects.js?version=2020-10-26"></script>
|
||||
<script src="src/gui.js?version=2020-10-23"></script>
|
||||
<script src="src/paint.js?version=2020-05-17"></script>
|
||||
<script src="src/lists.js?version=2020-07-01"></script>
|
||||
|
|
|
@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, BooleanSlotMorph,
|
|||
localize, TableMorph, TableFrameMorph, normalizeCanvas, VectorPaintEditorMorph,
|
||||
AlignmentMorph, Process, WorldMap, copyCanvas, useBlurredShadows*/
|
||||
|
||||
modules.objects = '2020-October-23';
|
||||
modules.objects = '2020-October-26';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -5825,6 +5825,12 @@ SpriteMorph.prototype.allHatBlocksForInteraction = function (interaction) {
|
|||
});
|
||||
};
|
||||
|
||||
SpriteMorph.prototype.hasGenericHatBlocks = function () {
|
||||
return this.scripts.children.some(morph =>
|
||||
morph.selector === 'receiveCondition'
|
||||
);
|
||||
};
|
||||
|
||||
SpriteMorph.prototype.allGenericHatBlocks = function () {
|
||||
return this.scripts.children.filter(morph => {
|
||||
if (morph.selector) {
|
||||
|
@ -9195,6 +9201,9 @@ StageMorph.prototype.allHatBlocksForKey
|
|||
StageMorph.prototype.allHatBlocksForInteraction
|
||||
= SpriteMorph.prototype.allHatBlocksForInteraction;
|
||||
|
||||
StageMorph.prototype.hasGenericHatBlocks
|
||||
= SpriteMorph.prototype.hasGenericHatBlocks;
|
||||
|
||||
StageMorph.prototype.allGenericHatBlocks
|
||||
= SpriteMorph.prototype.allGenericHatBlocks;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue