mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix empty displayName in gameLog + Fix progress pie filter
This commit is contained in:
@@ -8244,6 +8244,9 @@ speechSynthesis.getVoices();
|
|||||||
this.showUserDialog(ref.userId);
|
this.showUserDialog(ref.userId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!ref.displayname) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (var ctx of API.cachedUsers.values()) {
|
for (var ctx of API.cachedUsers.values()) {
|
||||||
if (ctx.displayName === ref.displayName) {
|
if (ctx.displayName === ref.displayName) {
|
||||||
this.showUserDialog(ctx.id);
|
this.showUserDialog(ctx.id);
|
||||||
@@ -9852,6 +9855,21 @@ speechSynthesis.getVoices();
|
|||||||
if (this.isDarkMode) {
|
if (this.isDarkMode) {
|
||||||
notificationTheme = 'sunset';
|
notificationTheme = 'sunset';
|
||||||
}
|
}
|
||||||
|
var VRConfigVars = {
|
||||||
|
overlayNotifications: this.overlayNotifications,
|
||||||
|
hideDevicesFromFeed: this.hideDevicesFromFeed,
|
||||||
|
minimalFeed: this.minimalFeed,
|
||||||
|
notificationPosition: this.notificationPosition,
|
||||||
|
notificationTimeout: this.notificationTimeout,
|
||||||
|
notificationTheme,
|
||||||
|
backgroundEnabled: this.vrBackgroundEnabled
|
||||||
|
};
|
||||||
|
var json = JSON.stringify(VRConfigVars);
|
||||||
|
AppApi.ExecuteVrFeedFunction('configUpdate', json);
|
||||||
|
AppApi.ExecuteVrOverlayFunction('configUpdate', json);
|
||||||
|
};
|
||||||
|
|
||||||
|
$app.methods.updateVRLastLocation = function () {
|
||||||
var progressPie = false;
|
var progressPie = false;
|
||||||
if (this.progressPie) {
|
if (this.progressPie) {
|
||||||
progressPie = true;
|
progressPie = true;
|
||||||
@@ -9866,28 +9884,13 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var VRConfigVars = {
|
|
||||||
overlayNotifications: this.overlayNotifications,
|
|
||||||
hideDevicesFromFeed: this.hideDevicesFromFeed,
|
|
||||||
minimalFeed: this.minimalFeed,
|
|
||||||
notificationPosition: this.notificationPosition,
|
|
||||||
notificationTimeout: this.notificationTimeout,
|
|
||||||
notificationTheme,
|
|
||||||
backgroundEnabled: this.vrBackgroundEnabled,
|
|
||||||
progressPie
|
|
||||||
};
|
|
||||||
var json = JSON.stringify(VRConfigVars);
|
|
||||||
AppApi.ExecuteVrFeedFunction('configUpdate', json);
|
|
||||||
AppApi.ExecuteVrOverlayFunction('configUpdate', json);
|
|
||||||
};
|
|
||||||
|
|
||||||
$app.methods.updateVRLastLocation = function () {
|
|
||||||
var lastLocation = {
|
var lastLocation = {
|
||||||
date: this.lastLocation.date,
|
date: this.lastLocation.date,
|
||||||
location: this.lastLocation.location,
|
location: this.lastLocation.location,
|
||||||
name: this.lastLocation.name,
|
name: this.lastLocation.name,
|
||||||
playerList: Array.from(this.lastLocation.playerList.values()),
|
playerList: Array.from(this.lastLocation.playerList.values()),
|
||||||
friendList: Array.from(this.lastLocation.friendList.values())
|
friendList: Array.from(this.lastLocation.friendList.values()),
|
||||||
|
progressPie
|
||||||
};
|
};
|
||||||
var json = JSON.stringify(lastLocation);
|
var json = JSON.stringify(lastLocation);
|
||||||
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);
|
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ html
|
|||||||
span(v-else v-text="scope.row.type")
|
span(v-else v-text="scope.row.type")
|
||||||
el-table-column(label="User" prop="displayName" width="180")
|
el-table-column(label="User" prop="displayName" width="180")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
span.x-link(v-text="scope.row.displayName" @click="lookupUser(scope.row)" style="padding-right:10px")
|
span.x-link(v-if="scope.row.displayName" v-text="scope.row.displayName" @click="lookupUser(scope.row)" style="padding-right:10px")
|
||||||
el-table-column(label="Detail" prop="data")
|
el-table-column(label="Detail" prop="data")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
location(v-if="scope.row.type === 'Location'" :location="scope.row.location" :hint="scope.row.worldName")
|
location(v-if="scope.row.type === 'Location'" :location="scope.row.location" :hint="scope.row.worldName")
|
||||||
@@ -977,10 +977,10 @@ html
|
|||||||
span.header Progress pie overlay for videos
|
span.header Progress pie overlay for videos
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
span.name Enable
|
span.name Enable
|
||||||
el-switch(v-model="progressPie" @change="changeYouTubeApi")
|
el-switch(v-model="progressPie" @change="changeYouTubeApi" :disabled="!openVR")
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
span.name Dance worlds only
|
span.name Dance worlds only
|
||||||
el-switch(v-model="progressPieFilter" @change="changeYouTubeApi")
|
el-switch(v-model="progressPieFilter" @change="changeYouTubeApi" :disabled="!openVR")
|
||||||
div.options-container
|
div.options-container
|
||||||
span.header VRCX Instance Cache/Debug
|
span.header VRCX Instance Cache/Debug
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
|
|||||||
@@ -193,7 +193,8 @@ import configRepository from './repository/config.js';
|
|||||||
location: '',
|
location: '',
|
||||||
name: '',
|
name: '',
|
||||||
playerList: [],
|
playerList: [],
|
||||||
friendList: []
|
friendList: [],
|
||||||
|
progressPie: false
|
||||||
},
|
},
|
||||||
lastLocationTimer: '',
|
lastLocationTimer: '',
|
||||||
wristFeed: [],
|
wristFeed: [],
|
||||||
@@ -298,7 +299,10 @@ import configRepository from './repository/config.js';
|
|||||||
this.nowPlaying = JSON.parse(json);
|
this.nowPlaying = JSON.parse(json);
|
||||||
if (this.appType === '2') {
|
if (this.appType === '2') {
|
||||||
var circle = document.querySelector('.np-progress-circle-stroke');
|
var circle = document.querySelector('.np-progress-circle-stroke');
|
||||||
if (this.config.progressPie && this.nowPlaying.percentage !== 0) {
|
if (
|
||||||
|
this.lastLocation.progressPie &&
|
||||||
|
this.nowPlaying.percentage !== 0
|
||||||
|
) {
|
||||||
circle.style.opacity = 0.5;
|
circle.style.opacity = 0.5;
|
||||||
var circumference = circle.getTotalLength();
|
var circumference = circle.getTotalLength();
|
||||||
circle.style.strokeDashoffset =
|
circle.style.strokeDashoffset =
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ html
|
|||||||
span(style="display:inline-block;margin-right:5px") {{ downloadProgress }}%
|
span(style="display:inline-block;margin-right:5px") {{ downloadProgress }}%
|
||||||
template(v-if="lastLocation.date !== 0")
|
template(v-if="lastLocation.date !== 0")
|
||||||
span(style="float:right") {{ lastLocationTimer }}
|
span(style="float:right") {{ lastLocationTimer }}
|
||||||
span(style="display:inline-block") {{ lastLocation.playerList.length }}
|
span(style="display:inline-block") {{ lastLocation.playerList.length }}
|
||||||
span(style="display:inline-block;font-weight:bold") {{ lastLocation.friendList.length !== 0 ? ` (${lastLocation.friendList.length})` : ''}}
|
span(style="display:inline-block;font-weight:bold") {{ lastLocation.friendList.length !== 0 ? ` (${lastLocation.friendList.length})` : ''}}
|
||||||
template(v-else)
|
template(v-else)
|
||||||
template(v-if="downloadProgress === 100")
|
template(v-if="downloadProgress === 100")
|
||||||
|
|||||||
Reference in New Issue
Block a user