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.newColumn = 2;
|
||||
|
||||
|
||||
var XRayButton = new ToggleMorph(
|
||||
'checkbox',
|
||||
null,
|
||||
|
@ -1264,6 +1265,7 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
|||
function() {
|
||||
stage.turnXRayOff();
|
||||
myself.showMessage("done",0.4);
|
||||
myself.XRayButton.refresh();
|
||||
}, 250);
|
||||
} else {
|
||||
myself.showMessage("rendering X-RAY ...");
|
||||
|
@ -1271,14 +1273,16 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
|||
function() {
|
||||
stage.turnXRayOn();
|
||||
myself.showMessage("done", 0.4);
|
||||
myself.XRayButton.refresh();
|
||||
} ,250);
|
||||
}
|
||||
},
|
||||
'X-Ray',
|
||||
function () {
|
||||
return stage.isXRay;
|
||||
return stage.getIsXRay();
|
||||
});
|
||||
elements.push(XRayButton);
|
||||
myself.XRayButton = XRayButton;
|
||||
XRayButton.columns = 4;
|
||||
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.renderer.changed = true;
|
||||
|
||||
}
|
||||
|
@ -2908,6 +2907,10 @@ StageMorph.prototype.turnXRayOff = function () {
|
|||
|
||||
}
|
||||
|
||||
StageMorph.prototype.getIsXRay = function () {
|
||||
return this.isXRay;
|
||||
}
|
||||
|
||||
StageMorph.prototype.clearPenTrails = nop;
|
||||
|
||||
StageMorph.prototype.penTrails = function () {
|
||||
|
|
Ładowanie…
Reference in New Issue