kopia lustrzana https://github.com/backface/turtlestitch
correct display of XRay checkbox
rodzic
6bd731b4b6
commit
1db69bd4a1
|
@ -1254,6 +1254,7 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
||||||
resetCameraButton.columns = 4;
|
resetCameraButton.columns = 4;
|
||||||
resetCameraButton.newColumn = 2;
|
resetCameraButton.newColumn = 2;
|
||||||
|
|
||||||
|
|
||||||
var XRayButton = new ToggleMorph(
|
var XRayButton = new ToggleMorph(
|
||||||
'checkbox',
|
'checkbox',
|
||||||
null,
|
null,
|
||||||
|
@ -1264,6 +1265,7 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
||||||
function() {
|
function() {
|
||||||
stage.turnXRayOff();
|
stage.turnXRayOff();
|
||||||
myself.showMessage("done",0.4);
|
myself.showMessage("done",0.4);
|
||||||
|
myself.XRayButton.refresh();
|
||||||
}, 250);
|
}, 250);
|
||||||
} else {
|
} else {
|
||||||
myself.showMessage("rendering X-RAY ...");
|
myself.showMessage("rendering X-RAY ...");
|
||||||
|
@ -1271,14 +1273,16 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
||||||
function() {
|
function() {
|
||||||
stage.turnXRayOn();
|
stage.turnXRayOn();
|
||||||
myself.showMessage("done", 0.4);
|
myself.showMessage("done", 0.4);
|
||||||
|
myself.XRayButton.refresh();
|
||||||
} ,250);
|
} ,250);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'X-Ray',
|
'X-Ray',
|
||||||
function () {
|
function () {
|
||||||
return stage.isXRay;
|
return stage.getIsXRay();
|
||||||
});
|
});
|
||||||
elements.push(XRayButton);
|
elements.push(XRayButton);
|
||||||
|
myself.XRayButton = XRayButton;
|
||||||
XRayButton.columns = 4;
|
XRayButton.columns = 4;
|
||||||
XRayButton.newColumn = 3;
|
XRayButton.newColumn = 3;
|
||||||
|
|
||||||
|
|
|
@ -2859,7 +2859,6 @@ StageMorph.prototype.turnXRayOn = function () {
|
||||||
|
|
||||||
this.children[0].addStitch(stitch[0][0], stitch[0][1], stitch[1][0], stitch[1][1], angle)
|
this.children[0].addStitch(stitch[0][0], stitch[0][1], stitch[1][0], stitch[1][1], angle)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.renderer.changed = true;
|
this.renderer.changed = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2908,6 +2907,10 @@ StageMorph.prototype.turnXRayOff = function () {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StageMorph.prototype.getIsXRay = function () {
|
||||||
|
return this.isXRay;
|
||||||
|
}
|
||||||
|
|
||||||
StageMorph.prototype.clearPenTrails = nop;
|
StageMorph.prototype.clearPenTrails = nop;
|
||||||
|
|
||||||
StageMorph.prototype.penTrails = function () {
|
StageMorph.prototype.penTrails = function () {
|
||||||
|
|
Ładowanie…
Reference in New Issue