kopia lustrzana https://github.com/backface/turtlestitch
fix error in showing jump stitches
rodzic
ee04357fa7
commit
793f98d659
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue