overte-lubosz/scripts
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 force LOD to be 20-20 on android, and force lodAngleDeg to 0.248 2019-10-09 14:04:44 -07:00
+android_questInterface adding market place back to the default scripts 2019-02-25 14:05:54 -08:00
communityScripts Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
developer Update content URLs in example scripts 2022-09-08 22:19:54 +02:00
modules Fix linux specific script engine crash 2019-08-15 13:07:43 -07:00
simplifiedUI Replace Graphik with Fira Sans 2022-08-07 14:01:42 +02:00
system Re-coded to be more stable. 2022-09-14 23:11:56 -04:00
tutorials Renamed Metaverse Server to Directory Server/Services 2022-09-08 22:19:55 +02:00
defaultScripts.js Rebranding and fixing URLs 2022-09-08 22:10:13 +02:00
simplifiedUIBootstrapper.js Add Click to Zoom to the repo and bootstrapper 2019-11-14 17:05:47 -08:00