kopia lustrzana https://github.com/backface/turtlestitch
record changes made in the sprite bar
rodzic
859b604c5f
commit
2a7b98b7ba
|
@ -1436,6 +1436,7 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
myself.currentSprite.changed();
|
myself.currentSprite.changed();
|
||||||
myself.currentSprite.fixLayout();
|
myself.currentSprite.fixLayout();
|
||||||
myself.currentSprite.rerender();
|
myself.currentSprite.rerender();
|
||||||
|
myself.recordUnsavedChanges();
|
||||||
}
|
}
|
||||||
rotationStyleButtons.forEach(each =>
|
rotationStyleButtons.forEach(each =>
|
||||||
each.refresh()
|
each.refresh()
|
||||||
|
@ -1508,6 +1509,7 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
myself.newSpriteName(newName, myself.currentSprite)
|
myself.newSpriteName(newName, myself.currentSprite)
|
||||||
);
|
);
|
||||||
nameField.setContents(myself.currentSprite.name);
|
nameField.setContents(myself.currentSprite.name);
|
||||||
|
myself.recordUnsavedChanges();
|
||||||
};
|
};
|
||||||
this.spriteBar.reactToEdit = nameField.accept;
|
this.spriteBar.reactToEdit = nameField.accept;
|
||||||
|
|
||||||
|
@ -1515,8 +1517,10 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
padlock = new ToggleMorph(
|
padlock = new ToggleMorph(
|
||||||
'checkbox',
|
'checkbox',
|
||||||
null,
|
null,
|
||||||
() => this.currentSprite.isDraggable =
|
() => {
|
||||||
!this.currentSprite.isDraggable,
|
this.currentSprite.isDraggable = !this.currentSprite.isDraggable;
|
||||||
|
this.recordUnsavedChanges();
|
||||||
|
},
|
||||||
localize('draggable'),
|
localize('draggable'),
|
||||||
() => this.currentSprite.isDraggable
|
() => this.currentSprite.isDraggable
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue