diff --git a/TODO.txt b/TODO.txt index 34e2e2a..d9f74ba 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,4 +1,15 @@ +- add sound fx when you get buddy request +- add friend requests to automatons that autoaccept +- add mute / desktop volume control to top nav + - have youtube and soundcloud players respect mute / volume levels + - not hard...i think... - complete v1 camera app + +YOUTUBE LIVE EMBED + + - blocked on `App.VideoPlayer` since we can't inject anymore youtube API embeds + - need instaniatable youtube window with custom playlist / source + Camera X - camera switching code ! - audio switching code @@ -16,6 +27,9 @@ Camera - swap online / offline emoji icons for images - add back button to interdemon cable / mtv / all video players +- add sigils and signets + - sigils are for system powers like matrix agent spell casting + - signets are for feature role checks like Buddy Pond Gold or Membership is Guilds, etc PUSHED to post launch diff --git a/data/interdimensionalcable.js b/data/interdimensionalcable.js index ff17b02..b67b4ae 100644 --- a/data/interdimensionalcable.js +++ b/data/interdimensionalcable.js @@ -1905,5 +1905,7 @@ desktop.interdimensionalcable.playlist = [ 'Q9XTqQbuavI', 'UuYV81r5SO0', 'MALyCfMP0a0', - '8QxIIz1yEsA' + '8QxIIz1yEsA', + 'tyWwEm-rKUY', + 'cZUfpcTrZcU' ]; \ No newline at end of file diff --git a/data/mtv.js b/data/mtv.js index 3dd6b5a..a779e4d 100644 --- a/data/mtv.js +++ b/data/mtv.js @@ -106,6 +106,7 @@ desktop.ytPlaylist = [ 'JASvfdG8INI', '856x2xIpoZM', 'TuAetZIG0mg', - 'JBTUgYIQGFo' + 'JBTUgYIQGFo', + 'DkYPge6ZKSQ' ]; diff --git a/desktop/apps/EASTER-EGG.txt b/desktop/apps/EASTER-EGG.txt index 371fefd..826f1fd 100644 --- a/desktop/apps/EASTER-EGG.txt +++ b/desktop/apps/EASTER-EGG.txt @@ -20,6 +20,7 @@ Ideas for community apps: - pick js1k winners / entries? - https://github.com/k4zmu2a/SpaceCadetPinball - https://github.com/mtevans/SkiFree + - https://github.com/nmrugg/stockfish.js/ - Wallpaper Manager - user contributed wallpapers diff --git a/desktop/apps/desktop.audioplayer/desktop.audioplayer.js b/desktop/apps/desktop.audioplayer/desktop.audioplayer.js index f148da6..2ab8dd9 100644 --- a/desktop/apps/desktop.audioplayer/desktop.audioplayer.js +++ b/desktop/apps/desktop.audioplayer/desktop.audioplayer.js @@ -8,8 +8,8 @@ desktop.audioplayer.load = function loadAudioPlayer (params, next) { desktop.audioplayer.playing = {}; desktop.audioplayer.play = function playAudio (soundPath) { - if (desktop.settings.audio_muted) { - // do not play any audio if desktop is muted + if (!desktop.settings.audio_enabled) { + // do not play any audio if desktop is not enabled } else { // play the audio if (desktop.audioplayer.playing[soundPath]) { @@ -22,9 +22,9 @@ desktop.audioplayer.play = function playAudio (soundPath) { audio.addEventListener('ended', function() { desktop.audioplayer.playing[soundPath] = false; },false); + audio.play(); } catch (err) { desktop.audioplayer.playing[soundPath] = false; } - audio.play(); } } \ No newline at end of file diff --git a/desktop/apps/desktop.buddylist/desktop.buddylist.js b/desktop/apps/desktop.buddylist/desktop.buddylist.js index cc762ba..68adcb9 100644 --- a/desktop/apps/desktop.buddylist/desktop.buddylist.js +++ b/desktop/apps/desktop.buddylist/desktop.buddylist.js @@ -192,6 +192,18 @@ desktop.updateBuddyList = function updateBuddyList () { $('.buddy_email').val(desktop.buddyListData.email); } + if (data.myProfile) { + // Remark: this cache is cleared each time the user clicks "Update Profile" + desktop.profileCache = desktop.profileCache || {}; + if (!desktop.profileCache[data.myProfile]) { + $('.publicProfilePreview').text(data.myProfile); + $('.profileMarkdown').val(data.myProfile); + desktop.profileCache[data.myProfile] = true + } else { + // do nothing, do not re-render the same text twice + } + } + desktop.buddylistProfileState = { updates: {}}; // @@ -355,7 +367,21 @@ desktop.updateBuddyList = function updateBuddyList () { $('.apiResult').val(JSON.stringify(data, true, 2)) - if ($('.pendingIncomingBuddyRequests li').length == 0) { + desktop.buddylist.pendingIncomingBuddyRequests = desktop.buddylist.pendingIncomingBuddyRequests || 0; + + let totalIncomingBuddyRequests = $('.pendingIncomingBuddyRequests li').length; + + if (totalIncomingBuddyRequests > desktop.buddylist.pendingIncomingBuddyRequests) { + desktop.buddylist.pendingIncomingBuddyRequests = totalIncomingBuddyRequests; + // Remark: short delay is used here to provide nice login experience if Buddy has requests + // allows WELCOME sound to play + // A better solution here is to here priority option for playing sound with queue + setTimeout(function(){ + desktop.audioplayer.play('desktop/assets/audio/YOUVEGOTMAIL.wav'); + }, 2222); + } + + if (totalIncomingBuddyRequests === 0) { $('.pendingIncomingBuddyRequestsHolder').hide(); } else { $('.pendingIncomingBuddyRequestsHolder').show(); diff --git a/desktop/apps/desktop.localstorage/desktop.localstorage.js b/desktop/apps/desktop.localstorage/desktop.localstorage.js index c1dedae..72b6077 100644 --- a/desktop/apps/desktop.localstorage/desktop.localstorage.js +++ b/desktop/apps/desktop.localstorage/desktop.localstorage.js @@ -4,11 +4,11 @@ desktop.localstorage.label = "localstorage"; desktop.localstorage.prefix = '_buddypond_desktop_'; desktop.localstorage.set = function setLocalStorage (key, val) { - val = JSON.stringify(val); - localStorage.setItem(desktop.localstorage.prefix + key, val); // in addition to updating the localstorage, update desktop.settings // Remark: desktop.settings is booted from localstorage on load desktop.settings[key] = val; + val = JSON.stringify(val); + localStorage.setItem(desktop.localstorage.prefix + key, val); } desktop.localstorage.get = function getLocalStorage (key) { diff --git a/desktop/apps/desktop.login/desktop.login.js b/desktop/apps/desktop.login/desktop.login.js index 78631dc..d17c09e 100644 --- a/desktop/apps/desktop.login/desktop.login.js +++ b/desktop/apps/desktop.login/desktop.login.js @@ -105,6 +105,8 @@ desktop.login.auth = function authDesktop (buddyname) { desktop.login.success = function desktopLoginSuccess () { $('#me_title').html('Welcome - ' + buddypond.me); + $('.me').html(buddypond.me); + desktop.audioplayer.play('desktop/assets/audio/WELCOME.wav') $('.logoutLink').show(); $('.loginLink').hide(); // $('.qtokenid').val(data); diff --git a/desktop/apps/desktop.profile/desktop.profile.html b/desktop/apps/desktop.profile/desktop.profile.html index 822e0d5..d0f9b44 100644 --- a/desktop/apps/desktop.profile/desktop.profile.html +++ b/desktop/apps/desktop.profile/desktop.profile.html @@ -1,3 +1,17 @@ + +
Marak
+Last Seen: 2/22/2022 14:40pm
+Buddy Desktop Apps are *Locked* for Buddy Pond Alpha. @@ -89,82 +127,92 @@
Simple preview of what your Buddy Profile will look like
-Marak
-Last Seen: 2/22/2022 14:40pm
-