Fix performance stat "None", auto status change with company check, print crop and centering

This commit is contained in:
Natsumi
2024-12-27 12:48:16 +13:00
parent 5cf492c735
commit 87b79c9b7e
2 changed files with 62 additions and 16 deletions

View File

@@ -1876,6 +1876,12 @@ speechSynthesis.getVoices();
});
};
API.$on('AVATAR:IMPOSTER:DELETE', function (args) {
if (args.json && $app.avatarDialog.visible) {
$app.showAvatarDialog($app.avatarDialog.id);
}
});
// #endregion
// #region | API: Notification
@@ -6253,7 +6259,7 @@ speechSynthesis.getVoices();
var withCompany = this.lastLocation.playerList.size > 1;
if (this.autoStateChangeNoFriends) {
withCompany = this.lastLocation.friendList.size > 1;
withCompany = this.lastLocation.friendList.size >= 1;
}
var currentStatus = API.currentUser.status;
@@ -10317,10 +10323,28 @@ speechSynthesis.getVoices();
continue;
}
if (unityPackage.platform === 'standalonewindows') {
if (
unityPackage.performanceRating === 'None' &&
pc.performanceRating
) {
continue;
}
pc = unityPackage;
} else if (unityPackage.platform === 'android') {
if (
unityPackage.performanceRating === 'None' &&
android.performanceRating
) {
continue;
}
android = unityPackage;
} else if (unityPackage.platform === 'ios') {
if (
unityPackage.performanceRating === 'None' &&
ios.performanceRating
) {
continue;
}
ios = unityPackage;
}
}
@@ -12019,7 +12043,6 @@ speechSynthesis.getVoices();
message: 'Imposter deleted',
type: 'success'
});
this.showAvatarDialog(D.id);
return args;
});
break;
@@ -16346,8 +16369,12 @@ speechSynthesis.getVoices();
};
$app.methods.getAndDisplayScreenshotFromFile = async function () {
var filePath = await AppApi.OpenFileSelectorDialog(await AppApi.GetVRChatPhotosLocation(), ".png", "PNG Files (*.png)|*.png");
if (filePath === "") {
var filePath = await AppApi.OpenFileSelectorDialog(
await AppApi.GetVRChatPhotosLocation(),
'.png',
'PNG Files (*.png)|*.png'
);
if (filePath === '') {
return;
}
@@ -22247,7 +22274,7 @@ speechSynthesis.getVoices();
var unityPackage = D.ref.unityPackages[i];
if (
unityPackage.variant &&
unityPackage.variant !== 'standard' &&
// unityPackage.variant !== 'standard' &&
unityPackage.variant !== 'security'
) {
continue;