Overlay notification opacity

This commit is contained in:
Natsumi
2025-06-20 18:39:40 +12:00
parent 84913a0ef6
commit 921070da71
7 changed files with 186 additions and 16 deletions

View File

@@ -6156,6 +6156,10 @@ console.log(`isLinux: ${LINUX}`);
'VRCX_notificationTTSNickName',
false
);
$app.data.notificationOpacity = await configRepository.getFloat(
'VRCX_notificationOpacity',
100
);
// It's not necessary to store it in configRepo because it's rarely used.
$app.data.isTestTTSVisible = false;
@@ -6523,6 +6527,11 @@ console.log(`isLinux: ${LINUX}`);
this.autoDeleteOldPrints
);
await configRepository.setInt(
'VRCX_notificationOpacity',
this.notificationOpacity
);
this.updateSharedFeed(true);
this.updateVRConfigVars();
this.updateVRLastLocation();
@@ -7392,7 +7401,8 @@ console.log(`isLinux: ${LINUX}`);
backgroundEnabled: this.vrBackgroundEnabled,
dtHour12: this.dtHour12,
pcUptimeOnFeed: this.pcUptimeOnFeed,
appLanguage: this.appLanguage
appLanguage: this.appLanguage,
notificationOpacity: this.notificationOpacity
};
var json = JSON.stringify(VRConfigVars);
AppApi.ExecuteVrFeedFunction('configUpdate', json);