mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Add info about minimized state to comment xml.
This commit is contained in:
parent
1639444a4d
commit
b0aa288916
1 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,9 @@ class Comment {
|
||||||
}
|
}
|
||||||
|
|
||||||
toXML () {
|
toXML () {
|
||||||
return `<comment id="${this.id}" x="${this.x}" y="${
|
return `<comment type="scratch" id="${this.id}" x="${this.x}" y="${
|
||||||
this.y}" w="${this.width}" h="${this.height}" pinned="${this.blockId !== null}">${this.text}</comment>`;
|
this.y}" w="${this.width}" h="${this.height}" pinned="${
|
||||||
|
this.blockId !== null}" minimized="${this.minimized}">${this.text}</comment>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO choose min and defaults for width and height
|
// TODO choose min and defaults for width and height
|
||||||
|
|
Loading…
Reference in a new issue