summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-05-26 10:46:00 +0200
committerjmoenig <jens@moenig.org>2014-05-26 10:46:00 +0200
commit6a4b4afbe98fa99623a81a89e2f6505ff5704d38 (patch)
treeebed924be30f8e823d048548c7c37f162529c530
parent24f7a37a56e4c44d6dd339f227507871867f1436 (diff)
downloadsnap-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.js16
-rwxr-xr-xhistory.txt1
2 files changed, 15 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index 4de6b3d..981696a 100644
--- a/gui.js
+++ b/gui.js
@@ -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