adjusted block-search-bar for variadic infix reporters

snap8
Jens Mönig 2022-03-01 14:56:48 +01:00
rodzic 9d628d823d
commit a7741a7275
3 zmienionych plików z 20 dodań i 7 usunięć

Wyświetl plik

@ -13,7 +13,8 @@
### 2022-03-01
* blocks: adjusted restoring inputs for relabelling to / from variadic infix reporters
* blocks: refactored adding and removing inputs in variadic slots
* blocks: adjusted inserting / deleting single inputs in variadic infix slots
* blocks: adjusted inserting / deleting single inputs in variadic infix slots
* objects: adjusted block-search-bar for variadic infix reporters
### 2022-02-28
* blocks, objects, threads, store: made addition reporter variadic

Wyświetl plik

@ -18,7 +18,7 @@
<script src="src/widgets.js?version=2021-17-09"></script>
<script src="src/blocks.js?version=2022-03-01"></script>
<script src="src/threads.js?version=2022-02-28"></script>
<script src="src/objects.js?version=2022-02-28"></script>
<script src="src/objects.js?version=2022-03-01"></script>
<script src="src/scenes.js?version=2021-11-24"></script>
<script src="src/gui.js?version=2022-02-27"></script>
<script src="src/paint.js?version=2021-07-05"></script>

Wyświetl plik

@ -87,7 +87,7 @@ BlockVisibilityDialogMorph, CostumeIconMorph, SoundIconMorph*/
/*jshint esversion: 6*/
modules.objects = '2022-February-28';
modules.objects = '2022-March-01';
var SpriteMorph;
var StageMorph;
@ -1099,16 +1099,19 @@ SpriteMorph.prototype.initBlocks = function () {
spec: '%rp %ringparms',
alias: 'predicate ring lambda'
},
/* +++
reportSum: {
type: 'reporter',
category: 'operators',
spec: '%n + %n'
},
*/
reportVariadicSum: { // +++ under construction
// +++ dev: true,
type: 'reporter',
category: 'operators',
spec: '%sum'
spec: '%sum',
alias: '+'
},
reportDifference: {
type: 'reporter',
@ -1116,17 +1119,20 @@ SpriteMorph.prototype.initBlocks = function () {
spec: '%n \u2212 %n',
alias: '-'
},
/* +++
reportProduct: {
type: 'reporter',
category: 'operators',
spec: '%n \u00D7 %n',
alias: '*'
},
*/
reportVariadicProduct: { // +++ under construction
// +++ dev: true,
type: 'reporter',
category: 'operators',
spec: '%product'
spec: '%product',
alias: '*'
},
reportQuotient: {
type: 'reporter',
@ -1159,25 +1165,31 @@ SpriteMorph.prototype.initBlocks = function () {
category: 'operators',
spec: 'atan2 %n ÷ %n'
},
/* +++
reportMin: {
type: 'reporter',
category: 'operators',
spec: '%n min %n'
},
*/
reportVariadicMin: { // +++
type: 'reporter',
category: 'operators',
spec: '%min'
spec: '%min',
alias: 'min'
},
/* +++
reportMax: {
type: 'reporter',
category: 'operators',
spec: '%n max %n'
},
*/
reportVariadicMax: { // +++
type: 'reporter',
category: 'operators',
spec: '%max'
spec: '%max',
alias: 'max'
},
reportRandom: {
type: 'reporter',