kopia lustrzana https://github.com/backface/turtlestitch
backwards-compatibility fix for key-event hat blocks
rodzic
9f0f28fff7
commit
d9c78e691e
|
@ -9,6 +9,7 @@
|
|||
* hide any block, including variables and custom helper blocks in palette, also use "hide/show var" primitive on custom blocks (same as on primitives)
|
||||
* generate Parsons Problems from projects: Hide all unused blocks from the scripting area in the palette
|
||||
* user defined custom block palettes
|
||||
* introspection, syntax analysis and assembly (new block-attribute reporter, split & join scripts)
|
||||
* PWA, thanks, Joan and John, for pioneering this at Robolot and in Mircoblocks!
|
||||
* new "blocksZoom=n" url parameter, thanks, Bernat!
|
||||
* message and key hat blocks can be expanded to show an optional upvar referencing their event data
|
||||
|
@ -68,6 +69,9 @@
|
|||
* Chinese, thanks, Simon!
|
||||
* Brazilian Portuguese, thank you, Cassiano D'Andrea!
|
||||
|
||||
### 2021-12-07
|
||||
* objects: backwards-compatibility fix for key-event hat blocks
|
||||
|
||||
### 2021-12-06
|
||||
* blocks, threads: refactored block assembly, experimental
|
||||
* German translation update
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||
<script src="src/blocks.js?version=2021-12-06"></script>
|
||||
<script src="src/threads.js?version=2021-12-06"></script>
|
||||
<script src="src/objects.js?version=2021-12-05"></script>
|
||||
<script src="src/objects.js?version=2021-12-07"></script>
|
||||
<script src="src/scenes.js?version=2021-11-24"></script>
|
||||
<script src="src/gui.js?version=2021-12-06"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
|
|
|
@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/
|
|||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
modules.objects = '2021-November-05';
|
||||
modules.objects = '2021-November-07';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -6299,7 +6299,8 @@ SpriteMorph.prototype.allHatBlocksForKey = function (key) {
|
|||
return this.scripts.children.filter(morph => {
|
||||
if (morph.selector) {
|
||||
if (morph.selector === 'receiveKey') {
|
||||
var evt = morph.inputs()[0].evaluate()[0];
|
||||
var choice = morph.inputs()[0].evaluate(),
|
||||
evt = choice instanceof Array ? choice[0] : choice;
|
||||
return evt === key || evt === 'any key';
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue