mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-14 04:13:52 +02:00
Add world name to online event if instance isn't private
This commit is contained in:
@@ -4883,7 +4883,14 @@ speechSynthesis.getVoices();
|
||||
);
|
||||
break;
|
||||
case 'Online':
|
||||
this.speak(`${noty.displayName} has logged in`);
|
||||
var locationName = '';
|
||||
if (noty.worldName) {
|
||||
locationName = ` to ${this.displayLocation(
|
||||
noty.location,
|
||||
noty.worldName
|
||||
)}`;
|
||||
}
|
||||
this.speak(`${noty.displayName} has logged in${locationName}`);
|
||||
break;
|
||||
case 'Offline':
|
||||
this.speak(`${noty.displayName} has logged out`);
|
||||
@@ -5016,9 +5023,16 @@ speechSynthesis.getVoices();
|
||||
);
|
||||
break;
|
||||
case 'Online':
|
||||
var locationName = '';
|
||||
if (noty.worldName) {
|
||||
locationName = ` to ${this.displayLocation(
|
||||
noty.location,
|
||||
noty.worldName
|
||||
)}`;
|
||||
}
|
||||
AppApi.XSNotification(
|
||||
'VRCX',
|
||||
`${noty.displayName} has logged in`,
|
||||
`${noty.displayName} has logged in${locationName}`,
|
||||
timeout,
|
||||
image
|
||||
);
|
||||
@@ -5215,9 +5229,16 @@ speechSynthesis.getVoices();
|
||||
);
|
||||
break;
|
||||
case 'Online':
|
||||
var locationName = '';
|
||||
if (noty.worldName) {
|
||||
locationName = ` to ${this.displayLocation(
|
||||
noty.location,
|
||||
noty.worldName
|
||||
)}`;
|
||||
}
|
||||
AppApi.DesktopNotification(
|
||||
noty.displayName,
|
||||
'has logged in',
|
||||
`has logged in${locationName}`,
|
||||
image
|
||||
);
|
||||
break;
|
||||
|
||||
@@ -368,7 +368,14 @@ import configRepository from './repository/config.js';
|
||||
)}`;
|
||||
break;
|
||||
case 'Online':
|
||||
text = `<strong>${noty.displayName}</strong> has logged in`;
|
||||
var locationName = '';
|
||||
if (noty.worldName) {
|
||||
locationName = ` to ${this.displayLocation(
|
||||
noty.location,
|
||||
noty.worldName
|
||||
)}`;
|
||||
}
|
||||
text = `<strong>${noty.displayName}</strong> has logged in${locationName}`;
|
||||
break;
|
||||
case 'Offline':
|
||||
text = `<strong>${noty.displayName}</strong> has logged out`;
|
||||
|
||||
@@ -31,7 +31,9 @@ html
|
||||
.detail
|
||||
span.extra
|
||||
span.time {{ feed.created_at | formatDate('HH:MI') }}
|
||||
| #[span.name(v-text="feed.displayName")] ✔
|
||||
| #[span.name(v-text="feed.displayName")] ✔
|
||||
template(v-if="feed.worldName")
|
||||
| #[location(:location="feed.location" :hint="feed.worldName")]
|
||||
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||
.detail
|
||||
span.extra
|
||||
@@ -122,9 +124,9 @@ html
|
||||
.detail
|
||||
span.extra
|
||||
span.time {{ feed.created_at | formatDate('HH:MI') }}
|
||||
| ✨ #[span.name(v-text="feed.displayName")]
|
||||
| ✨ #[span.name(v-text="feed.displayName")]
|
||||
template(v-if="feed.worldName")
|
||||
| #[location(:location="feed.instanceId" :hint="feed.worldName")]
|
||||
| #[location(:location="feed.instanceId" :hint="feed.worldName")]
|
||||
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||
.detail
|
||||
span.extra
|
||||
@@ -178,7 +180,9 @@ html
|
||||
.detail
|
||||
span.extra
|
||||
span.time {{ feed.created_at | formatDate('HH:MI') }}
|
||||
| #[span.name(v-text="feed.displayName")] has logged in
|
||||
| #[span.name(v-text="feed.displayName")] has logged in
|
||||
template(v-if="feed.worldName")
|
||||
| to #[location(:location="feed.location" :hint="feed.worldName")]
|
||||
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||
.detail
|
||||
span.extra
|
||||
@@ -268,9 +272,9 @@ html
|
||||
.detail
|
||||
span.extra
|
||||
span.time {{ feed.created_at | formatDate('HH:MI') }}
|
||||
| #[span.name(v-text="feed.displayName")] has spawned a portal
|
||||
| #[span.name(v-text="feed.displayName")] has spawned a portal
|
||||
template(v-if="feed.worldName")
|
||||
| to #[location(:location="feed.instanceId" :hint="feed.worldName")]
|
||||
| to #[location(:location="feed.instanceId" :hint="feed.worldName")]
|
||||
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||
.detail
|
||||
span.extra
|
||||
|
||||
Reference in New Issue
Block a user