mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Add game up time to wrist feed
This commit is contained in:
+2
-1
@@ -11640,7 +11640,8 @@ speechSynthesis.getVoices();
|
|||||||
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
|
progressPie,
|
||||||
|
onlineFor: API.currentUser.$online_for
|
||||||
};
|
};
|
||||||
var json = JSON.stringify(lastLocation);
|
var json = JSON.stringify(lastLocation);
|
||||||
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);
|
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);
|
||||||
|
|||||||
+12
-3
@@ -178,9 +178,11 @@ Vue.component('marquee-text', MarqueeText);
|
|||||||
name: '',
|
name: '',
|
||||||
playerList: [],
|
playerList: [],
|
||||||
friendList: [],
|
friendList: [],
|
||||||
progressPie: false
|
progressPie: false,
|
||||||
|
onlineFor: 0
|
||||||
},
|
},
|
||||||
lastLocationTimer: '',
|
lastLocationTimer: '',
|
||||||
|
onlineForTimer: '',
|
||||||
wristFeed: [],
|
wristFeed: [],
|
||||||
devices: []
|
devices: []
|
||||||
},
|
},
|
||||||
@@ -337,12 +339,19 @@ Vue.component('marquee-text', MarqueeText);
|
|||||||
var cpuUsage = await AppApi.CpuUsage();
|
var cpuUsage = await AppApi.CpuUsage();
|
||||||
this.cpuUsage = cpuUsage.toFixed(0);
|
this.cpuUsage = cpuUsage.toFixed(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.lastLocationTimer = '';
|
|
||||||
if (this.lastLocation.date !== 0) {
|
if (this.lastLocation.date !== 0) {
|
||||||
this.lastLocationTimer = timeToText(
|
this.lastLocationTimer = timeToText(
|
||||||
Date.now() - this.lastLocation.date
|
Date.now() - this.lastLocation.date
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
this.lastLocationTimer = '';
|
||||||
|
}
|
||||||
|
if (this.lastLocation.onlineForTimer !== 0) {
|
||||||
|
this.onlineForTimer = timeToText(
|
||||||
|
Date.now() - this.lastLocation.onlineFor
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.onlineForTimer = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.config.hideDevicesFromFeed) {
|
if (!this.config.hideDevicesFromFeed) {
|
||||||
|
|||||||
+2
-2
@@ -404,7 +404,7 @@ html
|
|||||||
template(v-else-if="downloadProgress > 0")
|
template(v-else-if="downloadProgress > 0")
|
||||||
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 }} / {{ onlineForTimer }}
|
||||||
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})` : ''}}
|
||||||
span(v-if="photonLobbyBotSize > 0 && lastLocation.playerList.length > 0" style="display:inline-block;color:red;margin-left:5px") {{ photonLobbyBotSize }}
|
span(v-if="photonLobbyBotSize > 0 && lastLocation.playerList.length > 0" style="display:inline-block;color:red;margin-left:5px") {{ photonLobbyBotSize }}
|
||||||
@@ -414,7 +414,7 @@ html
|
|||||||
template(v-else-if="downloadProgress > 0")
|
template(v-else-if="downloadProgress > 0")
|
||||||
span(style="display:inline-block;margin-right:5px") Downloading: {{ downloadProgress }}%
|
span(style="display:inline-block;margin-right:5px") Downloading: {{ downloadProgress }}%
|
||||||
template(v-if="lastLocation.date !== 0")
|
template(v-if="lastLocation.date !== 0")
|
||||||
span(style="float:right") Timer: {{ lastLocationTimer }}
|
span(style="float:right") Timer: {{ lastLocationTimer }} / {{ onlineForTimer }}
|
||||||
span(style="display:inline-block") Players: {{ lastLocation.playerList.length }}
|
span(style="display:inline-block") Players: {{ 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})` : ''}}
|
||||||
span(v-if="photonLobbyBotSize > 0 && lastLocation.playerList.length > 0" style="display:inline-block;color:red;margin-left:5px") {{ photonLobbyBotSize }}
|
span(v-if="photonLobbyBotSize > 0 && lastLocation.playerList.length > 0" style="display:inline-block;color:red;margin-left:5px") {{ photonLobbyBotSize }}
|
||||||
|
|||||||
+1
-1
@@ -205,7 +205,7 @@ button {
|
|||||||
position: relative;
|
position: relative;
|
||||||
flex: none;
|
flex: none;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
overflow: hidden auto;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-containerbottom {
|
.x-containerbottom {
|
||||||
|
|||||||
Reference in New Issue
Block a user