kopia lustrzana https://github.com/backface/turtlestitch
fix updaing label and dimension on new project
rodzic
bae5cfe357
commit
5aaef0bdc8
|
@ -1,4 +1,4 @@
|
||||||
VERSION="2.7.9"
|
VERSION="2.7.10"
|
||||||
|
|
||||||
// get debug mode
|
// get debug mode
|
||||||
url = new URL(window.location.href);
|
url = new URL(window.location.href);
|
||||||
|
@ -296,6 +296,16 @@ IDE_Morph.prototype.newProject = function () {
|
||||||
|
|
||||||
SpriteMorph.prototype.useFlatLineEnds = false;
|
SpriteMorph.prototype.useFlatLineEnds = false;
|
||||||
|
|
||||||
|
// hide sprite
|
||||||
|
this.stage.children[0].hide();
|
||||||
|
this.stage.clearAll();
|
||||||
|
this.stage.rotateTurtle(this.stage.children[0].heading);
|
||||||
|
this.createStatusDisplay();
|
||||||
|
// clear stitch cache now (loading projects sends turtle move commands!)
|
||||||
|
this.stage.clearAll();
|
||||||
|
this.stage.turtleShepherd.clear();
|
||||||
|
this.stage.reRender();
|
||||||
|
|
||||||
this.setProjectName('');
|
this.setProjectName('');
|
||||||
this.projectNotes = '';
|
this.projectNotes = '';
|
||||||
this.createStageHandle();
|
this.createStageHandle();
|
||||||
|
@ -1635,10 +1645,14 @@ IDE_Morph.prototype.setProjectName = function (string) {
|
||||||
this.creator = SnapCloud.username ? SnapCloud.username : "anonymous";
|
this.creator = SnapCloud.username ? SnapCloud.username : "anonymous";
|
||||||
this.projectName = string.replace(/['"]/g, '');
|
this.projectName = string.replace(/['"]/g, '');
|
||||||
|
|
||||||
|
this.controlBar.updateLabel();
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IDE_Morph.prototype.createSpriteBar = function () {
|
IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
// assumes that the categories pane has already been created
|
// assumes that the categories pane has already been created
|
||||||
var rotationStyleButtons = [],
|
var rotationStyleButtons = [],
|
||||||
|
|
Ładowanie…
Reference in New Issue