kopia lustrzana https://github.com/backface/turtlestitch
save and restore "log pen trails" setting in project file
rodzic
7aa4f7d965
commit
b2d9856521
|
@ -12,6 +12,9 @@
|
||||||
* **Translation Updates:**
|
* **Translation Updates:**
|
||||||
* German
|
* German
|
||||||
|
|
||||||
|
### 2019-12-09
|
||||||
|
* store: save and restore "log pen trails" setting in project file
|
||||||
|
|
||||||
### 2019-12-08
|
### 2019-12-08
|
||||||
* lists: support null-serialization in list-csv conversions
|
* lists: support null-serialization in list-csv conversions
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<script type="text/javascript" src="src/video.js?version=2019-06-27"></script>
|
<script type="text/javascript" src="src/video.js?version=2019-06-27"></script>
|
||||||
<script type="text/javascript" src="src/maps.js?version=2019-10-28"></script>
|
<script type="text/javascript" src="src/maps.js?version=2019-10-28"></script>
|
||||||
<script type="text/javascript" src="src/xml.js?version=2019-06-27"></script>
|
<script type="text/javascript" src="src/xml.js?version=2019-06-27"></script>
|
||||||
<script type="text/javascript" src="src/store.js?version=2019-08-08"></script>
|
<script type="text/javascript" src="src/store.js?version=2019-12-09"></script>
|
||||||
<script type="text/javascript" src="src/locale.js?version=2019-12-03"></script>
|
<script type="text/javascript" src="src/locale.js?version=2019-12-03"></script>
|
||||||
<script type="text/javascript" src="src/cloud.js?version=2019-10-09"></script>
|
<script type="text/javascript" src="src/cloud.js?version=2019-10-09"></script>
|
||||||
<script type="text/javascript" src="src/sha512.js?version=2019-06-27"></script>
|
<script type="text/javascript" src="src/sha512.js?version=2019-06-27"></script>
|
||||||
|
|
10
src/store.js
10
src/store.js
|
@ -61,7 +61,7 @@ normalizeCanvas, contains*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.store = '2019-August-08';
|
modules.store = '2019-December-09';
|
||||||
|
|
||||||
|
|
||||||
// XML_Serializer ///////////////////////////////////////////////////////
|
// XML_Serializer ///////////////////////////////////////////////////////
|
||||||
|
@ -255,7 +255,7 @@ SnapSerializer.uber = XML_Serializer.prototype;
|
||||||
|
|
||||||
// SnapSerializer constants:
|
// SnapSerializer constants:
|
||||||
|
|
||||||
SnapSerializer.prototype.app = 'Snap! 5.1, http://snap.berkeley.edu';
|
SnapSerializer.prototype.app = 'Snap! 5.4, http://snap.berkeley.edu';
|
||||||
|
|
||||||
SnapSerializer.prototype.thumbnailSize = new Point(160, 120);
|
SnapSerializer.prototype.thumbnailSize = new Point(160, 120);
|
||||||
|
|
||||||
|
@ -404,6 +404,10 @@ SnapSerializer.prototype.rawLoadProjectModel = function (xmlNode, remixID) {
|
||||||
if (model.stage.attributes.pan) {
|
if (model.stage.attributes.pan) {
|
||||||
project.stage.pan = +model.stage.attributes.pan;
|
project.stage.pan = +model.stage.attributes.pan;
|
||||||
}
|
}
|
||||||
|
if (model.stage.attributes.penlog) {
|
||||||
|
StageMorph.prototype.enablePenLogging =
|
||||||
|
(model.stage.attributes.penlog === 'true');
|
||||||
|
}
|
||||||
|
|
||||||
model.pentrails = model.stage.childNamed('pentrails');
|
model.pentrails = model.stage.childNamed('pentrails');
|
||||||
if (model.pentrails) {
|
if (model.pentrails) {
|
||||||
|
@ -1727,6 +1731,7 @@ StageMorph.prototype.toXML = function (serializer) {
|
||||||
'<thumbnail>$</thumbnail>' +
|
'<thumbnail>$</thumbnail>' +
|
||||||
'<stage name="@" width="@" height="@" ' +
|
'<stage name="@" width="@" height="@" ' +
|
||||||
'costume="@" color="@,@,@,@" tempo="@" threadsafe="@" ' +
|
'costume="@" color="@,@,@,@" tempo="@" threadsafe="@" ' +
|
||||||
|
'penlog="@" ' +
|
||||||
'%' +
|
'%' +
|
||||||
'volume="@" ' +
|
'volume="@" ' +
|
||||||
'pan="@" ' +
|
'pan="@" ' +
|
||||||
|
@ -1765,6 +1770,7 @@ StageMorph.prototype.toXML = function (serializer) {
|
||||||
this.color.a,
|
this.color.a,
|
||||||
this.getTempo(),
|
this.getTempo(),
|
||||||
this.isThreadSafe,
|
this.isThreadSafe,
|
||||||
|
this.enablePenLogging,
|
||||||
this.instrument ?
|
this.instrument ?
|
||||||
' instrument="' + parseInt(this.instrument) + '" ' : '',
|
' instrument="' + parseInt(this.instrument) + '" ' : '',
|
||||||
this.volume,
|
this.volume,
|
||||||
|
|
Ładowanie…
Reference in New Issue