ensure unique names when renaming costumes

pull/3/merge
jmoenig 2014-07-18 15:21:19 +02:00
rodzic 1076694d9c
commit 7328bfb034
2 zmienionych plików z 3 dodań i 2 usunięć

3
gui.js
Wyświetl plik

@ -5533,12 +5533,13 @@ CostumeIconMorph.prototype.editRotationPointOnly = function () {
CostumeIconMorph.prototype.renameCostume = function () {
var costume = this.object,
wardrobe = this.parentThatIsA(WardrobeMorph),
ide = this.parentThatIsA(IDE_Morph);
new DialogBoxMorph(
null,
function (answer) {
if (answer && (answer !== costume.name)) {
costume.name = answer;
costume.name = wardrobe.sprite.newCostumeName(answer);
costume.version = Date.now();
ide.hasChangedMedia = true;
}

Wyświetl plik

@ -2208,4 +2208,4 @@ ______
140718
------
* Lists: incorporate Brians adhoc fixes, thanks, Brian!
* GUI: Use new mechanism for unique costume names on the paint editor
* GUI: Use new mechanism for unique costume names on the paint editor, renamed costumes