mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
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:
@@ -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, '');
|
||||
//}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user