photon logging status icon

This commit is contained in:
Natsumi
2022-01-08 18:19:56 +13:00
parent fc9aa97f27
commit 4a0aef8ce3
2 changed files with 21 additions and 1 deletions

View File

@@ -4138,6 +4138,7 @@ speechSynthesis.getVoices();
API.currentUser.$offline_for = Date.now();
Discord.SetActive(false);
this.autoVRChatCacheManagement();
this.ipcTimeout = 0;
}
this.lastLocationReset();
this.clearNowPlaying();
@@ -18265,6 +18266,9 @@ speechSynthesis.getVoices();
data.OnEventData
);
}
if (data.OnEventData.Code !== 7) {
this.photonEventPulse();
}
this.parsePhotonEvent(data.OnEventData, data.dt);
break;
case 'OnOperationResponse':
@@ -18279,6 +18283,7 @@ speechSynthesis.getVoices();
data.OnOperationResponseData,
data.dt
);
this.photonEventPulse();
break;
case 'Ping':
if (!this.photonLoggingEnabled) {
@@ -18295,6 +18300,15 @@ speechSynthesis.getVoices();
}
};
$app.data.photonEventCount = 0;
$app.data.photonEventIcon = false;
$app.methods.photonEventPulse = function () {
this.photonEventCount++;
this.photonEventIcon = true;
workerTimers.setTimeout(() => (this.photonEventIcon = false), 150);
};
$app.methods.parseOperationResponse = function (data, dateTime) {
switch (data.OperationCode) {
case 226: