kopia lustrzana https://github.com/backface/turtlestitch
adjust bottom of STOP block to reflect the menu selection (show / hide bottom notch)
rodzic
c299d4df60
commit
015bc354c4
|
@ -25,6 +25,7 @@
|
||||||
* "loop arrow" symbol for primitive loops, also available for custom blocks
|
* "loop arrow" symbol for primitive loops, also available for custom blocks
|
||||||
* optimized in-project storage of atomic-data lists (more efficient, less space)
|
* optimized in-project storage of atomic-data lists (more efficient, less space)
|
||||||
* remove all clones when the Green Flag is clicked
|
* remove all clones when the Green Flag is clicked
|
||||||
|
* adjust bottom of STOP block to reflect the menu selection (show / hide bottom notch)
|
||||||
* Notable Fixes:
|
* Notable Fixes:
|
||||||
* "relabel" blocks with translated drop-down choices
|
* "relabel" blocks with translated drop-down choices
|
||||||
* transforming arrayed to linked lists without loosing the last element
|
* transforming arrayed to linked lists without loosing the last element
|
||||||
|
|
|
@ -4693,8 +4693,12 @@ CommandBlockMorph.prototype.snap = function (hand) {
|
||||||
};
|
};
|
||||||
|
|
||||||
CommandBlockMorph.prototype.isStop = function () {
|
CommandBlockMorph.prototype.isStop = function () {
|
||||||
|
var choice;
|
||||||
|
if (this.selector === 'doStopThis') { // this could be cached...
|
||||||
|
choice = this.inputs()[0].evaluate();
|
||||||
|
return choice instanceof Array && choice[0].length < 12;
|
||||||
|
}
|
||||||
return ([
|
return ([
|
||||||
'doStopThis',
|
|
||||||
'doForever',
|
'doForever',
|
||||||
'doReport',
|
'doReport',
|
||||||
'removeClone'
|
'removeClone'
|
||||||
|
@ -8437,13 +8441,13 @@ InputSlotMorph.prototype.setContents = function (data) {
|
||||||
}
|
}
|
||||||
cnts.drawNew();
|
cnts.drawNew();
|
||||||
|
|
||||||
|
// remember the constant, if any
|
||||||
|
this.constant = isConstant ? data : null;
|
||||||
|
|
||||||
// adjust to zebra coloring:
|
// adjust to zebra coloring:
|
||||||
if (this.isReadOnly && (this.parent instanceof BlockMorph)) {
|
if (this.isReadOnly && (this.parent instanceof BlockMorph)) {
|
||||||
this.parent.fixLabelColor();
|
this.parent.fixLabelColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
// remember the constant, if any
|
|
||||||
this.constant = isConstant ? data : null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
InputSlotMorph.prototype.userSetContents = function (aStringOrFloat) {
|
InputSlotMorph.prototype.userSetContents = function (aStringOrFloat) {
|
||||||
|
|
Ładowanie…
Reference in New Issue