kopia lustrzana https://github.com/backface/turtlestitch
show username in ‘logout’ entry of cloud menu
rodzic
e0289f8c41
commit
81745502e7
14
gui.js
14
gui.js
|
@ -69,7 +69,7 @@ SpeechBubbleMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.gui = '2014-Jun-23';
|
modules.gui = '2014-July-08';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -924,6 +924,8 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
tabColors = this.tabColors,
|
tabColors = this.tabColors,
|
||||||
tabBar = new AlignmentMorph('row', -tabCorner * 2),
|
tabBar = new AlignmentMorph('row', -tabCorner * 2),
|
||||||
tab,
|
tab,
|
||||||
|
symbols = ['\u2192', '\u21BB', '\u2194'],
|
||||||
|
labels = ['don\'t rotate', 'can rotate', 'only face left/right'],
|
||||||
myself = this;
|
myself = this;
|
||||||
|
|
||||||
if (this.spriteBar) {
|
if (this.spriteBar) {
|
||||||
|
@ -952,17 +954,13 @@ IDE_Morph.prototype.createSpriteBar = function () {
|
||||||
each.refresh();
|
each.refresh();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
['\u2192', '\u21BB', '\u2194'][rotationStyle], // label
|
symbols[rotationStyle], // label
|
||||||
function () { // query
|
function () { // query
|
||||||
return myself.currentSprite instanceof SpriteMorph
|
return myself.currentSprite instanceof SpriteMorph
|
||||||
&& myself.currentSprite.rotationStyle === rotationStyle;
|
&& myself.currentSprite.rotationStyle === rotationStyle;
|
||||||
},
|
},
|
||||||
null, // environment
|
null, // environment
|
||||||
localize(
|
localize(labels[rotationStyle])
|
||||||
[
|
|
||||||
'don\'t rotate', 'can rotate', 'only face left/right'
|
|
||||||
][rotationStyle]
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
button.corner = 8;
|
button.corner = 8;
|
||||||
|
@ -1947,7 +1945,7 @@ IDE_Morph.prototype.cloudMenu = function () {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
'Logout',
|
localize('Logout') + ' ' + SnapCloud.username,
|
||||||
'logout'
|
'logout'
|
||||||
);
|
);
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
|
|
|
@ -2181,3 +2181,4 @@ ______
|
||||||
------
|
------
|
||||||
* Threads: show error messages for custom blocks (propagating to the script’s top block)
|
* Threads: show error messages for custom blocks (propagating to the script’s top block)
|
||||||
* Threads: adjust to Doug Crockford’s latest infuriating nitpickings in JSLint
|
* Threads: adjust to Doug Crockford’s latest infuriating nitpickings in JSLint
|
||||||
|
* GUI: show username in ‘logout’ entry of cloud menu
|
||||||
|
|
Ładowanie…
Reference in New Issue