mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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 () {
|
||||
return `<comment id="${this.id}" x="${this.x}" y="${
|
||||
this.y}" w="${this.width}" h="${this.height}" pinned="${this.blockId !== null}">${this.text}</comment>`;
|
||||
return `<comment type="scratch" id="${this.id}" x="${this.x}" y="${
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue