Show last-changed-timestamp of cloud projects

display a tool-tip “bubble” in the “Open-Project” dialog next to the
preview field
pull/3/merge
jmoenig 2014-05-26 10:46:00 +02:00
rodzic 24f7a37a56
commit 6a4b4afbe9
2 zmienionych plików z 15 dodań i 2 usunięć

16
gui.js
Wyświetl plik

@ -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();

Wyświetl plik

@ -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