mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 23:03:51 +02:00
Add an option to toggle VR overlay notifications
Whoops Whoops 2
This commit is contained in:
@@ -5482,18 +5482,21 @@ CefSharp.BindObjectAsync(
|
||||
$app.data.hidePrivateFromFeed = VRCXStorage.GetBool('VRCX_hidePrivateFromFeed');
|
||||
$app.data.hideLoginsFromFeed = VRCXStorage.GetBool('VRCX_hideLoginsFromFeed');
|
||||
$app.data.hideDevicesFromFeed = VRCXStorage.GetBool('VRCX_hideDevicesFromFeed');
|
||||
$app.data.vipNotifications = VRCXStorage.GetBool('VRCX_VIPNotifications');
|
||||
var saveOpenVROption = function () {
|
||||
VRCXStorage.SetBool('openVR', this.openVR);
|
||||
VRCXStorage.SetBool('openVRAlways', this.openVRAlways);
|
||||
VRCXStorage.SetBool('VRCX_hidePrivateFromFeed', this.hidePrivateFromFeed);
|
||||
VRCXStorage.SetBool('VRCX_hideLoginsFromFeed', this.hideLoginsFromFeed);
|
||||
VRCXStorage.SetBool('VRCX_hideDevicesFromFeed', this.hideDevicesFromFeed);
|
||||
VRCXStorage.SetBool('VRCX_VIPNotifications', this.vipNotifications);
|
||||
};
|
||||
$app.watch.openVR = saveOpenVROption;
|
||||
$app.watch.openVRAlways = saveOpenVROption;
|
||||
$app.watch.hidePrivateFromFeed = saveOpenVROption;
|
||||
$app.watch.hideLoginsFromFeed = saveOpenVROption;
|
||||
$app.watch.hideDevicesFromFeed = saveOpenVROption;
|
||||
$app.watch.vipNotifications = saveOpenVROption;
|
||||
$app.data.isDarkMode = VRCXStorage.GetBool('isDarkMode');
|
||||
$appDarkStyle.disabled = $app.data.isDarkMode === false;
|
||||
$app.watch.isDarkMode = function () {
|
||||
|
||||
@@ -506,6 +506,9 @@ html
|
||||
div(style="font-size:12px;margin-top:5px")
|
||||
span(style="display:inline-block;min-width:150px") Hide Private worlds
|
||||
el-switch(v-model="hidePrivateFromFeed")
|
||||
div(style="font-size:12px;margin-top:5px")
|
||||
span(style="display:inline-block;min-width:150px") Overlay notifications
|
||||
el-switch(v-model="vipNotifications")
|
||||
div(style="margin-top:30px")
|
||||
span(style="font-weight:bold") Window
|
||||
div(style="font-size:12px;margin-top:5px")
|
||||
|
||||
@@ -705,6 +705,7 @@ CefSharp.BindObjectAsync(
|
||||
if (this.currentUser.status === 'busy') {
|
||||
return;
|
||||
}
|
||||
if (VRCXStorage.GetBool('VRCX_VIPNotifications') === true) {
|
||||
var notys = [];
|
||||
this.feeds.forEach((feed) => {
|
||||
if (feed.isFavorite) {
|
||||
@@ -752,6 +753,7 @@ CefSharp.BindObjectAsync(
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$app.methods.userStatusClass = function (user) {
|
||||
|
||||
Reference in New Issue
Block a user