This commit is contained in:
Natsumi
2022-07-26 19:38:30 +12:00
parent c4f5df70ef
commit e2cb10fd8c

View File

@@ -224,9 +224,7 @@ speechSynthesis.getVoices();
observerOptions: { observerOptions: {
rootMargin: '0px', rootMargin: '0px',
threshold: 0.1 threshold: 0.1
}, }
error: './assets/blank.png',
loading: './assets/blank.png'
}); });
Vue.use(DataTables); Vue.use(DataTables);
@@ -8748,6 +8746,30 @@ speechSynthesis.getVoices();
$app.methods.parsePhotonEvent = function (data, gameLogDate) { $app.methods.parsePhotonEvent = function (data, gameLogDate) {
if (data.Code === 253) { if (data.Code === 253) {
// SetUserProperties // SetUserProperties
if (data.Parameters[253] === -1) {
for (var i in data.Parameters[251]) {
var id = parseInt(i, 10);
var user = data.Parameters[251][i];
this.parsePhotonUser(id, user.user, gameLogDate);
this.parsePhotonAvatarChange(
id,
user.user,
user.avatarDict,
gameLogDate
);
this.parsePhotonAvatar(user.avatarDict);
this.parsePhotonAvatar(user.favatarDict);
if (typeof user.inVRMode !== 'undefined') {
this.photonLobbyInVrMode.set(id, user.inVRMode);
}
this.photonLobbyJointime.set(id, {
joinTime: Date.parse(gameLogDate),
hasInstantiated: false,
inVRMode: user.inVRMode,
avatarEyeHeight: user.avatarEyeHeight
});
}
} else {
this.parsePhotonUser( this.parsePhotonUser(
data.Parameters[253], data.Parameters[253],
data.Parameters[251].user, data.Parameters[251].user,
@@ -8767,6 +8789,7 @@ speechSynthesis.getVoices();
data.Parameters[251].inVRMode data.Parameters[251].inVRMode
); );
} }
}
} else if (data.Code === 42) { } else if (data.Code === 42) {
// SetUserProperties // SetUserProperties
this.parsePhotonUser( this.parsePhotonUser(
@@ -15808,7 +15831,7 @@ speechSynthesis.getVoices();
} else if (ctx.ref.$offline_for) { } else if (ctx.ref.$offline_for) {
return Date.now() - ctx.ref.$offline_for; return Date.now() - ctx.ref.$offline_for;
} }
return 0; return '-';
}; };
$app.methods.userOnlineForTimestamp = function (ctx) { $app.methods.userOnlineForTimestamp = function (ctx) {