mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
Fixes
This commit is contained in:
@@ -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,24 +8746,49 @@ speechSynthesis.getVoices();
|
|||||||
$app.methods.parsePhotonEvent = function (data, gameLogDate) {
|
$app.methods.parsePhotonEvent = function (data, gameLogDate) {
|
||||||
if (data.Code === 253) {
|
if (data.Code === 253) {
|
||||||
// SetUserProperties
|
// SetUserProperties
|
||||||
this.parsePhotonUser(
|
if (data.Parameters[253] === -1) {
|
||||||
data.Parameters[253],
|
for (var i in data.Parameters[251]) {
|
||||||
data.Parameters[251].user,
|
var id = parseInt(i, 10);
|
||||||
gameLogDate
|
var user = data.Parameters[251][i];
|
||||||
);
|
this.parsePhotonUser(id, user.user, gameLogDate);
|
||||||
this.parsePhotonAvatarChange(
|
this.parsePhotonAvatarChange(
|
||||||
data.Parameters[253],
|
id,
|
||||||
data.Parameters[251].user,
|
user.user,
|
||||||
data.Parameters[251].avatarDict,
|
user.avatarDict,
|
||||||
gameLogDate
|
gameLogDate
|
||||||
);
|
);
|
||||||
this.parsePhotonAvatar(data.Parameters[251].avatarDict);
|
this.parsePhotonAvatar(user.avatarDict);
|
||||||
this.parsePhotonAvatar(data.Parameters[251].favatarDict);
|
this.parsePhotonAvatar(user.favatarDict);
|
||||||
if (typeof data.Parameters[251].inVRMode !== 'undefined') {
|
if (typeof user.inVRMode !== 'undefined') {
|
||||||
this.photonLobbyInVrMode.set(
|
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(
|
||||||
data.Parameters[253],
|
data.Parameters[253],
|
||||||
data.Parameters[251].inVRMode
|
data.Parameters[251].user,
|
||||||
|
gameLogDate
|
||||||
);
|
);
|
||||||
|
this.parsePhotonAvatarChange(
|
||||||
|
data.Parameters[253],
|
||||||
|
data.Parameters[251].user,
|
||||||
|
data.Parameters[251].avatarDict,
|
||||||
|
gameLogDate
|
||||||
|
);
|
||||||
|
this.parsePhotonAvatar(data.Parameters[251].avatarDict);
|
||||||
|
this.parsePhotonAvatar(data.Parameters[251].favatarDict);
|
||||||
|
if (typeof data.Parameters[251].inVRMode !== 'undefined') {
|
||||||
|
this.photonLobbyInVrMode.set(
|
||||||
|
data.Parameters[253],
|
||||||
|
data.Parameters[251].inVRMode
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (data.Code === 42) {
|
} else if (data.Code === 42) {
|
||||||
// SetUserProperties
|
// SetUserProperties
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user