allow block-instances to be dragged off from templates in the "unused blocks" dialog

snap7
jmoenig 2021-11-09 18:03:02 +01:00
rodzic 49185ec27f
commit 28afc4d56c
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -24,7 +24,7 @@
* migrated SEND blocks to be BROADCAST TO blocks
* "when I receive 'any message'" hat scripts are threadsafe (uninterruptable by other messages)
* changed the color model for pen/background colors from HSV to HSL
* allow block-instances to be dragged off from templates in the "export blocks" and "hide blocks" dialogs
* allow block-instances to be dragged off from templates in the "export blocks", "unused blocks" and "hide blocks" dialogs
* new Birdbrain Technology extensions for Finch and Hummingbird, thanks, Kristina and Bambi!
* retired Leap Motion library
* display blocks with their error messages for custom blocks, thanks, Michael!
@ -58,6 +58,7 @@
* objects: fixed keyboard entry for script variable getters
* gui: changed edit project notes to always edit project motes instead of scene notes
* byob, blocks, gui: allow block-instances to be dragged off from templates in the "export blocks" dialog
* byob, gui: allow block-instances to be dragged off from templates in the "unused blocks" dialog
### 2021-11-08
* objects: renamed some internal color methods

Wyświetl plik

@ -4468,7 +4468,7 @@ BlockRemovalDialogMorph.prototype.selectNone
// BlockRemovalDialogMorph ops
BlockRemovalDialogMorph.prototype.removeBlocks = function () {
var ide = this.target.parentThatIsA(IDE_Morph);
var ide = this.target;
if (!ide) {return; }
if (this.blocks.length > 0) {
this.blocks.forEach(def => {

Wyświetl plik

@ -5173,7 +5173,7 @@ IDE_Morph.prototype.removeUnusedBlocks = function () {
if (unused.length > 0) {
new BlockRemovalDialogMorph(
unused,
this.stage
this
).popUp(this.world());
} else {
this.inform(