diff options
| author | jmoenig <jens@moenig.org> | 2014-05-26 10:46:00 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-05-26 10:46:00 +0200 |
| commit | 6a4b4afbe98fa99623a81a89e2f6505ff5704d38 (patch) | |
| tree | ebed924be30f8e823d048548c7c37f162529c530 | |
| parent | 24f7a37a56e4c44d6dd339f227507871867f1436 (diff) | |
| download | snap-byow-6a4b4afbe98fa99623a81a89e2f6505ff5704d38.tar.gz snap-byow-6a4b4afbe98fa99623a81a89e2f6505ff5704d38.zip | |
Show last-changed-timestamp of cloud projects
display a tool-tip “bubble” in the “Open-Project” dialog next to the
preview field
| -rw-r--r-- | gui.js | 16 | ||||
| -rwxr-xr-x | history.txt | 1 |
2 files changed, 15 insertions, 2 deletions
@@ -64,11 +64,12 @@ standardSettings, Sound, BlockMorph, ToggleMorph, InputSlotDialogMorph, ScriptsMorph, isNil, SymbolMorph, BlockExportDialogMorph, BlockImportDialogMorph, SnapTranslator, localize, List, InputSlotMorph, SnapCloud, Uint8Array, HandleMorph, SVG_Costume, fontHeight, hex_sha512, -sb, CommentMorph, CommandBlockMorph, BlockLabelPlaceHolderMorph, Audio*/ +sb, CommentMorph, CommandBlockMorph, BlockLabelPlaceHolderMorph, Audio, +SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2014-May-20'; +modules.gui = '2014-May-26'; // Declarations @@ -4533,6 +4534,17 @@ ProjectDialogMorph.prototype.installCloudProjectList = function (pl) { myself.preview.texture = item.Thumbnail || null; myself.preview.cachedTexture = null; myself.preview.drawNew(); + (new SpeechBubbleMorph(new TextMorph( + localize('last changed') + '\n' + item.Updated, + null, + null, + null, + null, + 'center' + ))).popUp( + myself.world(), + myself.preview.rightCenter().add(new Point(2, 0)) + ); } if (item.Public === 'true') { myself.shareButton.hide(); diff --git a/history.txt b/history.txt index 8155285..bd4d9fe 100755 --- a/history.txt +++ b/history.txt @@ -2138,3 +2138,4 @@ ______ ------ * Objects: Fixed #445 (minor search + zoom issues) * Localization additions and Portuguese translation update, thanks, Manuel! +* GUI, cloud: Show last-changed-timestamp when opening cloud projects |
