kopia lustrzana https://github.com/backface/turtlestitch
fix error in showing jump stitches
rodzic
ee04357fa7
commit
793f98d659
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
var tStitch = {};
|
var tStitch = {};
|
||||||
|
|
||||||
tStitch.draw_jump = true;
|
tStitch.draw_jumps = true;
|
||||||
tStitch.draw_stitches = true;
|
tStitch.draw_stitches = true;
|
||||||
tStitch.draw_stitch_len = 3;
|
tStitch.draw_stitch_len = 2;
|
||||||
|
|
||||||
tStitch.debug_msg = function (st,clear) {
|
tStitch.debug_msg = function (st,clear) {
|
||||||
o = new String();
|
o = new String();
|
||||||
|
@ -318,8 +318,8 @@ SpriteMorph.prototype.moveBy = function (delta, justMe) {
|
||||||
if (tStitch.draw_stitches) {
|
if (tStitch.draw_stitches) {
|
||||||
this.drawStitch(this.rotationCenter());
|
this.drawStitch(this.rotationCenter());
|
||||||
}
|
}
|
||||||
if (tStitch.draw_jump && !this.isDown) {
|
if (tStitch.draw_jumps && !this.isDown) {
|
||||||
//this.drawJumpLine(origin,this.rotationCenter());
|
this.drawJumpLine(origin,this.rotationCenter());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -788,11 +788,11 @@ IDE_Morph.prototype.createStatusDisplay = function () {
|
||||||
'checkbox',
|
'checkbox',
|
||||||
null,
|
null,
|
||||||
function () {
|
function () {
|
||||||
//stage.renderer.toggleWireframe();
|
tStitch.toogleShowJumpStitches();
|
||||||
},
|
},
|
||||||
'Show Jump Stitches',
|
'Show Jump Stitches',
|
||||||
function () {
|
function () {
|
||||||
return true; //stage.renderer.isWireframeMode
|
return tStitch.getShowJumpStitches();
|
||||||
});
|
});
|
||||||
toogleShowJumpsButton.columns = 2;
|
toogleShowJumpsButton.columns = 2;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue