kopia lustrzana https://github.com/backface/turtlestitch
made "show buttons" setting for unified palette persistent in the XML
rodzic
54d22dd118
commit
3175e13584
|
@ -67,6 +67,7 @@
|
|||
### 2021-11-24
|
||||
* threads: fixed #2918
|
||||
* gui, objects, scenes: added scene-setting to hide/show buttons in the unified palette
|
||||
* store: made "show buttons" setting for unified palette persistent in the XML
|
||||
|
||||
### 2021-11-23
|
||||
* byob: refresh category buttons when hiding / showing blocks
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<script src="src/maps.js?version=2021-06-15"></script>
|
||||
<script src="src/extensions.js?version=2021-11-22"></script>
|
||||
<script src="src/xml.js?version=2021-07-05"></script>
|
||||
<script src="src/store.js?version=2021-11-16"></script>
|
||||
<script src="src/store.js?version=2021-11-24"></script>
|
||||
<script src="src/locale.js?version=2021-11-15"></script>
|
||||
<script src="src/cloud.js?version=2021-02-04"></script>
|
||||
<script src="src/api.js?version=2021-11-17"></script>
|
||||
|
|
|
@ -63,7 +63,7 @@ Project*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.store = '2021-November-16';
|
||||
modules.store = '2021-November-24';
|
||||
|
||||
// XML_Serializer ///////////////////////////////////////////////////////
|
||||
/*
|
||||
|
@ -380,6 +380,7 @@ SnapSerializer.prototype.loadScene = function (xmlNode, remixID) {
|
|||
}
|
||||
scene.unifiedPalette = model.scene.attributes.palette === 'single';
|
||||
scene.showCategories = model.scene.attributes.categories !== 'false';
|
||||
scene.showPaletteButtons = model.scene.attributes.buttons !== 'false';
|
||||
scene.disableClickToRun = model.scene.attributes.clickrun === 'false';
|
||||
scene.penColorModel = model.scene.attributes.colormodel === 'hsl' ?
|
||||
'hsl' : 'hsv';
|
||||
|
@ -1733,7 +1734,7 @@ Scene.prototype.toXML = function (serializer) {
|
|||
}
|
||||
|
||||
xml = serializer.format(
|
||||
'<scene name="@"%%%%>' +
|
||||
'<scene name="@"%%%%%>' +
|
||||
'<notes>$</notes>' +
|
||||
'%' +
|
||||
'<hidden>$</hidden>' +
|
||||
|
@ -1747,6 +1748,8 @@ Scene.prototype.toXML = function (serializer) {
|
|||
this.unifiedPalette ? ' palette="single"' : '',
|
||||
this.unifiedPalette && !this.showCategories ?
|
||||
' categories="false"' : '',
|
||||
this.unifiedPalette && !this.showPaletteButtons ?
|
||||
' buttons="false"' : '',
|
||||
this.disableClickToRun ? ' clickrun="false"' : '',
|
||||
this.penColorModel === 'hsl' ? ' colormodel="hsl"' : '',
|
||||
this.notes || '',
|
||||
|
|
Ładowanie…
Reference in New Issue