summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-18 14:54:29 +0200
committerjmoenig <jens@moenig.org>2014-07-18 14:54:29 +0200
commit1076694d9c01a04e78508599aec4e8e1c674d5f5 (patch)
tree4d471bc7a87a2345f3d98d63e2fbc64f898e2308
parentc1d5910f33584837a5c33c98f1e750789e6221fc (diff)
downloadsnap-yow-1076694d9c01a04e78508599aec4e8e1c674d5f5.tar.gz
snap-yow-1076694d9c01a04e78508599aec4e8e1c674d5f5.zip
ensure unique names for costumes created by the paint editor
-rw-r--r--gui.js7
-rwxr-xr-xhistory.txt7
-rw-r--r--lists.js2
3 files changed, 12 insertions, 4 deletions
diff --git a/gui.js b/gui.js
index 208c6c7..5990a2b 100644
--- a/gui.js
+++ b/gui.js
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.gui = '2014-July-17';
+modules.gui = '2014-July-18';
// Declarations
@@ -5930,7 +5930,10 @@ WardrobeMorph.prototype.removeCostumeAt = function (idx) {
};
WardrobeMorph.prototype.paintNew = function () {
- var cos = new Costume(newCanvas(), "Untitled"),
+ var cos = new Costume(
+ newCanvas(),
+ this.sprite.newCostumeName('Untitled')
+ ),
ide = this.parentThatIsA(IDE_Morph),
myself = this;
cos.edit(this.world(), ide, true, null, function () {
diff --git a/history.txt b/history.txt
index 84cfc2f..b46a551 100755
--- a/history.txt
+++ b/history.txt
@@ -2198,9 +2198,14 @@ ______
* GUI: fixed #507 (limit persistent block zoom to 12x), thanks Michael!
* Morphic, GUI, Objects: fixed #508 (don’t popup empty menus), thanks Michael!
-140714
+140717
------
* new translation into Bangla (Bengali)!!! Yay, thanks, Mokter!!
* Lists: make internal list ops iterative (instead of recursive), thanks, Brian!
* Objects, Blocks: new feature (hidden in dev mode): Save screenshot, thanks, Viraj!
* GUI: Use new mechanism for unique costume names on imported costumes as well
+
+140718
+------
+* Lists: incorporate Brian’s adhoc fixes, thanks, Brian!
+* GUI: Use new mechanism for unique costume names on the paint editor
diff --git a/lists.js b/lists.js
index 028827a..c56789a 100644
--- a/lists.js
+++ b/lists.js
@@ -61,7 +61,7 @@ PushButtonMorph, SyntaxElementMorph, Color, Point, WatcherMorph,
StringMorph, SpriteMorph, ScrollFrameMorph, CellMorph, ArrowMorph,
MenuMorph, snapEquals, Morph, isNil, localize, MorphicPreferences*/
-modules.lists = '2014-July-17';
+modules.lists = '2014-July-18';
var List;
var ListWatcherMorph;