Merge pull request #1546 from jguille2/background

Costumes tab name to Costumes/Backgrounds
pull/29/head
Jens Mönig 2016-12-09 08:58:57 +01:00 zatwierdzone przez GitHub
commit a09b20b4ad
2 zmienionych plików z 9 dodań i 5 usunięć

6
gui.js
Wyświetl plik

@ -1280,7 +1280,9 @@ IDE_Morph.prototype.createSpriteBar = function () {
tabColors,
null, // target
function () {tabBar.tabTo('costumes'); },
localize('Costumes'), // label
localize(this.currentSprite instanceof SpriteMorph ?
'Costumes' : 'Backgrounds'
),
function () { // query
return myself.currentTab === 'costumes';
}
@ -6819,7 +6821,7 @@ CostumeIconMorph.prototype.renameCostume = function () {
}
}
).prompt(
'rename costume',
this.currentSprite instanceof SpriteMorph ? 'rename costume' : 'rename background',
costume.name,
this.world()
);

Wyświetl plik

@ -6207,7 +6207,7 @@ StageMorph.prototype.userMenu = function () {
if (shiftClicked) {
menu.addLine();
menu.addItem(
"turn pen trails into new costume...",
ide.currentSprite instanceof SpriteMorph ? "turn pen trails into new costume..." : "turn pen trails into new background...",
function () {
var costume = new Costume(
myself.trailsCanvas,
@ -6217,8 +6217,10 @@ StageMorph.prototype.userMenu = function () {
ide.currentSprite.wearCostume(costume);
ide.hasChangedMedia = true;
},
'turn all pen trails and stamps\n' +
'into a new costume for the\ncurrently selected sprite',
ide.currentSprite instanceof SpriteMorph ? 'turn all pen trails and stamps\n' +
'into a new costume for the\ncurrently selected sprite' :
'turn all pen trails and stamps\n' +
'into a new background for the stage',
new Color(100, 0, 0)
);
}