diff options
| author | jmoenig <jens@moenig.org> | 2014-07-08 13:26:42 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-08 13:26:42 +0200 |
| commit | 81745502e7346ae3ef5c6d0402a52388825c6db6 (patch) | |
| tree | 82eab65ce292e612ce4718e59e011e912cb39c2e /gui.js | |
| parent | e0289f8c411491a08bc077d938767c1cd6e478c4 (diff) | |
| download | snap-byow-81745502e7346ae3ef5c6d0402a52388825c6db6.tar.gz snap-byow-81745502e7346ae3ef5c6d0402a52388825c6db6.zip | |
show username in ‘logout’ entry of cloud menu
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2014-Jun-23'; +modules.gui = '2014-July-08'; // Declarations @@ -924,6 +924,8 @@ IDE_Morph.prototype.createSpriteBar = function () { tabColors = this.tabColors, tabBar = new AlignmentMorph('row', -tabCorner * 2), tab, + symbols = ['\u2192', '\u21BB', '\u2194'], + labels = ['don\'t rotate', 'can rotate', 'only face left/right'], myself = this; if (this.spriteBar) { @@ -952,17 +954,13 @@ IDE_Morph.prototype.createSpriteBar = function () { each.refresh(); }); }, - ['\u2192', '\u21BB', '\u2194'][rotationStyle], // label + symbols[rotationStyle], // label function () { // query return myself.currentSprite instanceof SpriteMorph && myself.currentSprite.rotationStyle === rotationStyle; }, null, // environment - localize( - [ - 'don\'t rotate', 'can rotate', 'only face left/right' - ][rotationStyle] - ) + localize(labels[rotationStyle]) ); button.corner = 8; @@ -1947,7 +1945,7 @@ IDE_Morph.prototype.cloudMenu = function () { ); } else { menu.addItem( - 'Logout', + localize('Logout') + ' ' + SnapCloud.username, 'logout' ); menu.addItem( |
