fix error in showing jump stitches

pull/3/merge
Michael Aschauer 2015-05-09 21:49:38 +02:00
rodzic ee04357fa7
commit 793f98d659
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -5,9 +5,9 @@
var tStitch = {};
tStitch.draw_jump = true;
tStitch.draw_jumps = true;
tStitch.draw_stitches = true;
tStitch.draw_stitch_len = 3;
tStitch.draw_stitch_len = 2;
tStitch.debug_msg = function (st,clear) {
o = new String();
@ -318,8 +318,8 @@ SpriteMorph.prototype.moveBy = function (delta, justMe) {
if (tStitch.draw_stitches) {
this.drawStitch(this.rotationCenter());
}
if (tStitch.draw_jump && !this.isDown) {
//this.drawJumpLine(origin,this.rotationCenter());
if (tStitch.draw_jumps && !this.isDown) {
this.drawJumpLine(origin,this.rotationCenter());
}
}
}

Wyświetl plik

@ -788,11 +788,11 @@ IDE_Morph.prototype.createStatusDisplay = function () {
'checkbox',
null,
function () {
//stage.renderer.toggleWireframe();
tStitch.toogleShowJumpStitches();
},
'Show Jump Stitches',
function () {
return true; //stage.renderer.isWireframeMode
return tStitch.getShowJumpStitches();
});
toogleShowJumpsButton.columns = 2;