Add OVR Toolkit Images (#753)

* Add OVR Toolkit Images

* Remove comment

* Make SendMessages a general use method

* Dotnet 8 cleanup

* Fix comment
This commit is contained in:
Usman Shafiq
2024-03-22 17:50:25 -04:00
committed by GitHub
parent 2e0014739b
commit 6f074cc7bf
2 changed files with 84 additions and 92 deletions

View File

@@ -6378,40 +6378,34 @@ speechSynthesis.getVoices();
this.playNotyTTS(noty, message);
}
if (playDesktopToast || playXSNotification || playOvrtHudNotifications || playOvrtWristNotifications || playOverlayNotification) {
// Currently images are not supported on OVRT, I have future-proofed the code for when they are.
// Remove this when OVRT supports images and uncomment the two if statements below.
if (playOvrtHudNotifications || playOvrtWristNotifications) {
this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, '');
}
if (this.imageNotifications) {
this.notySaveImage(noty).then((image) => {
if (playXSNotification) {
this.displayXSNotification(noty, message, image);
}
if (playOvrtHudNotifications || playOvrtWristNotifications) {
this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, image);
}
if (playDesktopToast) {
this.displayDesktopToast(noty, message, image);
}
if (playOverlayNotification) {
this.displayOverlayNotification(noty, message, image);
}
//if (playOvrtHudNotifications || playOvrtWristNotifications) {
// this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, image);
//}
});
} else {
if (playXSNotification) {
this.displayXSNotification(noty, message, '');
}
if (playOvrtHudNotifications || playOvrtWristNotifications) {
this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, '');
}
if (playDesktopToast) {
this.displayDesktopToast(noty, message, '');
}
if (playOverlayNotification) {
this.displayOverlayNotification(noty, message, '');
}
//if (playOvrtHudNotifications || playOvrtWristNotifications) {
// this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, '');
//}
}
}
};