overte-JulianGro/scripts/system
Alezia Kurdis 3e7854a034
Re-coded to be more stable.
This is a an almost complete re-coding of the notifications script.
The previous version had too useless complexities and was computing each element position independently causing the notifications to be unstably displayed in HMD if the user moved.
There was also too many array used to achieved this. It was a bit painful.

This new version use an invisible entity parented to the avatar as a "container" where the notification elements are parented to it, making the positioning easier and more stable if the avatar moves.
I used only one array of objects to contain the the notification stack.
There is also a better management of some signal to avoid useless computing when it wasn't necessary.
I think the code is also more clear.

I got rid of the little x buttons to close the notification, it was on each element, you had to target a very small square surface with the mouse if you wanted to absolutely close a notification within the 10 second of their existence. Now you can close a notification simply by clicking on it (on all its surface)
But as before, the close function works only on desktop mode. (Apparently it's relatively complex to get the id of the entity that you click on in HMD. Maybe one day.)

It's also easier now to adjust the scale of the notifications in HMD if we want too, (only one value to change in the script)
The parenting using a container entity has also made all the notification UI in HMD scaling correctly according the avatar scale (it was free by parenting all those together).
2022-09-14 23:11:56 -04:00
..
+android_interface update urls 2019-02-06 14:25:25 -08:00
appreciate Updated some URLs, rebranded documentation and changed default metaverse server address 2022-02-09 23:57:24 +01:00
assets Merge branch 'master' of github.com:highfidelity/hifi into create 2019-06-25 09:28:43 -07:00
commerce Update all scripts, script-archive scripts still broken. 2020-09-22 19:24:58 -04:00
controllers Minor code adjustment 2021-01-29 21:55:55 -05:00
create Remove useless code 2022-08-12 22:51:23 -04:00
html Add small blue button 2022-07-21 15:57:53 -04:00
keyboardShortcuts remembered that macs exist 2019-07-12 12:39:58 -07:00
libraries Initial JS files for Edit Tools 2022-07-16 16:22:45 +02:00
marketplaces Fixed bad path to gridControls 2019-06-25 16:31:21 -07:00
more Requested adjustments 2022-06-08 18:57:35 -04:00
places Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
tablet-ui Swap flying binding to other hand. 2019-03-21 17:05:20 -07:00
attachedEntitiesManager.js convert clientOnly to entityHost and add local entities 2018-11-14 11:25:37 -08:00
audio.js Update all scripts, script-archive scripts still broken. 2020-09-22 19:24:58 -04:00
audioMuteOverlay.js moving text position higher 2019-03-29 10:41:16 -07:00
audioScope.js
avatarapp.js cause 'save' button to unghost if an attachment is adjusted via grab while the adjust-wearables page is open 2019-03-27 10:12:58 -07:00
avatarFinderBeacon.js Update all scripts, script-archive scripts still broken. 2020-09-22 19:24:58 -04:00
away.js Update scripts/system/away.js 2021-02-25 17:36:56 -05:00
bubble.js Update menu item name 2021-08-22 10:04:37 +02:00
chat.js fix chat.js textSize 2019-02-28 15:28:18 -08:00
checkForUpdates.js Merge branch 'pr/691' into fix/URL-migrations 2020-09-20 17:58:26 -04:00
clickToAvatarApp.js Whitespace changes per code review 2019-07-22 10:36:57 -07:00
dialTone.js
directory.js
emote.js Adding icon states to emote app, active state 2018-08-09 16:00:36 -07:00
fingerPaint.js
firstPersonHMD.js Restate legacy first person camera mode 2019-10-17 13:26:42 -07:00
generalSettings.js
goto.js
graphicsSettings.js Add graphics settings menu bar button. 2020-08-05 23:37:45 -04:00
help.js Goto now uses AppUi; lint 2018-09-12 16:04:37 -07:00
hmd.js remove view/Independent-Mode and view/Entity-Mode menu items and related code. Leave the modes available for scripts. 2019-04-12 09:21:48 -07:00
inspect.js Reduce minimum inspect distance 2020-06-08 08:10:19 +12:00
interstitialPage.js Replace the "HifiAbout" API with a new "About" API 2020-08-17 11:34:58 +12:00
makeUserConnection.js Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
menu.js Update all scripts, script-archive scripts still broken. 2020-09-22 19:24:58 -04:00
miniTablet.js Replace old Goto in mini tablet with Explore app 2021-04-17 16:55:16 +12:00
mod.js
nameTag.js convert clientOnly to entityHost and add local entities 2018-11-14 11:25:37 -08:00
notifications.js Re-coded to be more stable. 2022-09-14 23:11:56 -04:00
onEscape.js Apply suggestions from code review 2021-02-25 16:18:51 -05:00
onFirstRun.js Revert onFirstRun.js to its original state. 2021-02-19 07:42:01 -05:00
pal.js Case 20617 - People app filter bar breaks when deleting connections 2019-03-21 12:08:42 -07:00
progress.js adding fade in and fade outt in interstitial for progress 2018-10-18 13:12:04 -07:00
quickGoto.js Rebranding and fixing URLs 2022-09-08 22:10:13 +02:00
redirectOverlays.js go to error-room when failing to connect to a full domain 2018-10-12 11:28:54 -07:00
request-service.js Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
run.js
snapshot.js Update all scripts, script-archive scripts still broken. 2020-09-22 19:24:58 -04:00
tablet-goto.js Update copyright headers. 2020-05-25 15:59:43 -04:00
tablet-users.js Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
voxels.js Voxel creation and presets from Create App 2022-07-16 16:22:33 +02:00