Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Michael 0234897eed also update data in index 2022-10-07 10:49:57 +02:00
Michael 5aaef0bdc8 fix updaing label and dimension on new project 2022-10-07 10:48:13 +02:00
2 zmienionych plików z 16 dodań i 2 usunięć

Wyświetl plik

@ -48,7 +48,7 @@
<script type="text/javascript" src="stitchcode/threads.js?version=2022-10-05"></script>
<script type="text/javascript" src="stitchcode/objects.js?version=2022-10-05"></script>
<script type="text/javascript" src="stitchcode/turtlecloud.js?version=2022-10-05"></script>
<script type="text/javascript" src="stitchcode/gui.js?version=2022-10-05"></script>
<script type="text/javascript" src="stitchcode/gui.js?version=2022-10-07"></script>
<script type="text/javascript" src="stitchcode/store.js?version=2022-06-14"></script>
<script type="text/javascript">

Wyświetl plik

@ -1,4 +1,4 @@
VERSION="2.7.9"
VERSION="2.7.10"
// get debug mode
url = new URL(window.location.href);
@ -296,6 +296,16 @@ IDE_Morph.prototype.newProject = function () {
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.projectNotes = '';
this.createStageHandle();
@ -1634,11 +1644,15 @@ IDE_Morph.prototype.setProjectName = function (string) {
this.origCreator = SnapCloud.username != this.creator ? this.creator : SnapCloud.username;
this.creator = SnapCloud.username ? SnapCloud.username : "anonymous";
this.projectName = string.replace(/['"]/g, '');
this.controlBar.updateLabel();
return name;
};
IDE_Morph.prototype.createSpriteBar = function () {
// assumes that the categories pane has already been created
var rotationStyleButtons = [],