kopia lustrzana https://github.com/backface/turtlestitch
commit
5571c656de
|
@ -3444,16 +3444,19 @@ ReporterBlockMorph.prototype.getSlotSpec = function () {
|
||||||
// ReporterBlockMorph events
|
// ReporterBlockMorph events
|
||||||
|
|
||||||
ReporterBlockMorph.prototype.mouseClickLeft = function (pos) {
|
ReporterBlockMorph.prototype.mouseClickLeft = function (pos) {
|
||||||
|
var isRing;
|
||||||
if (this.parent instanceof BlockInputFragmentMorph) {
|
if (this.parent instanceof BlockInputFragmentMorph) {
|
||||||
return this.parent.mouseClickLeft();
|
return this.parent.mouseClickLeft();
|
||||||
}
|
}
|
||||||
if (this.parent instanceof TemplateSlotMorph) {
|
if (this.parent instanceof TemplateSlotMorph) {
|
||||||
|
isRing = this.parent.parent && this.parent.parent.parent &&
|
||||||
|
this.parent.parent.parent instanceof RingMorph;
|
||||||
new DialogBoxMorph(
|
new DialogBoxMorph(
|
||||||
this,
|
this,
|
||||||
this.setSpec,
|
this.setSpec,
|
||||||
this
|
this
|
||||||
).prompt(
|
).prompt(
|
||||||
"Input name",
|
isRing ? "Input name" : "Script variable name",
|
||||||
this.blockSpec,
|
this.blockSpec,
|
||||||
this.world()
|
this.world()
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue