From c9f46be70a8c5f756d5154137e0ba6f8517ed20d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 11 Feb 2021 10:46:39 +0100 Subject: [PATCH] rearranged the blocks in the lists category palette (moved commands up) --- HISTORY.md | 4 ++++ snap.html | 2 +- src/objects.js | 22 +++++++++++----------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e27cea89..9f3e60b4 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,6 +12,7 @@ * added "is _ identical to _ ?" to relabel options of equals * enabled scientific notation in numeric text fields * removed experimental "transpose (list)" primitive - has been merged into "length of list" + * rearranged the blocks in the lists category palette (moved commands up) * **Notable Fixes:** * don't show internal "compile" reporter in search results * **Documentation Updates:** @@ -19,6 +20,9 @@ * **Translation Updates:** * German +### 2021-02-11 +* objects: rearranged the blocks in the lists category palette + ### 2021-02-10 * objects: added "is _ identical to _ ?" to relabel options of equals * morphic: enable scientific notation in numeric text fields diff --git a/snap.html b/snap.html index dc683088..cde3fa99 100755 --- a/snap.html +++ b/snap.html @@ -10,7 +10,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 555ac37b..28a1d6e2 100644 --- a/src/objects.js +++ b/src/objects.js @@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, BooleanSlotMorph, localize, TableMorph, TableFrameMorph, normalizeCanvas, VectorPaintEditorMorph, AlignmentMorph, Process, WorldMap, copyCanvas, useBlurredShadows*/ -modules.objects = '2021-February-10'; +modules.objects = '2021-February-11'; var SpriteMorph; var StageMorph; @@ -2785,6 +2785,11 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(block('reportNewList')); blocks.push(block('reportNumbers')); blocks.push('-'); + blocks.push(block('doAddToList')); + blocks.push(block('doDeleteFromList')); + blocks.push(block('doInsertInList')); + blocks.push(block('doReplaceInList')); + blocks.push('-'); blocks.push(block('reportCONS')); blocks.push(block('reportListItem')); blocks.push(block('reportCDR')); @@ -2803,11 +2808,6 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('reportConcatenatedLists')); blocks.push(block('reportReshape')); - blocks.push('-'); - blocks.push(block('doAddToList')); - blocks.push(block('doDeleteFromList')); - blocks.push(block('doInsertInList')); - blocks.push(block('doReplaceInList')); // for debugging: /////////////// @@ -8946,6 +8946,11 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(block('reportNewList')); blocks.push(block('reportNumbers')); blocks.push('-'); + blocks.push(block('doAddToList')); + blocks.push(block('doDeleteFromList')); + blocks.push(block('doInsertInList')); + blocks.push(block('doReplaceInList')); + blocks.push('-'); blocks.push(block('reportCONS')); blocks.push(block('reportListItem')); blocks.push(block('reportCDR')); @@ -8964,11 +8969,6 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('reportConcatenatedLists')); blocks.push(block('reportReshape')); - blocks.push('-'); - blocks.push(block('doAddToList')); - blocks.push(block('doDeleteFromList')); - blocks.push(block('doInsertInList')); - blocks.push(block('doReplaceInList')); // for debugging: ///////////////