mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
Expand row on hover, recommended steam params, legend color override
This commit is contained in:
@@ -893,7 +893,7 @@ speechSynthesis.getVoices();
|
||||
|
||||
Vue.component('avatar-info', {
|
||||
template:
|
||||
'<div @click="confirm" class="avatar-info"><span style="display:inline-block;margin-right:5px">{{ avatarName }}</span><span :class="color">{{ avatarType }}</span></div>',
|
||||
'<div @click="confirm" class="avatar-info"><span style="margin-right:5px">{{ avatarName }}</span><span :class="color">{{ avatarType }}</span></div>',
|
||||
props: {
|
||||
imageurl: String,
|
||||
userid: String,
|
||||
@@ -1196,7 +1196,7 @@ speechSynthesis.getVoices();
|
||||
ref.$trustColor = 'x-tag-troll';
|
||||
ref.$trustSortNum += 0.1;
|
||||
}
|
||||
if (ref.$isLegend) {
|
||||
if ($app.legendColorOverride && ref.$isLegend) {
|
||||
ref.$trustColor = 'x-tag-legendary';
|
||||
ref.$trustSortNum += 0.2;
|
||||
}
|
||||
@@ -6236,7 +6236,7 @@ speechSynthesis.getVoices();
|
||||
$app.data.orderFriendsGroupGPS = configRepository.getBool(
|
||||
'orderFriendGroupGPS'
|
||||
);
|
||||
var saveOrderFriendGroup = function () {
|
||||
$app.methods.saveOrderFriendGroup = function () {
|
||||
configRepository.setBool('orderFriendGroup0', this.orderFriendsGroup0);
|
||||
configRepository.setBool('orderFriendGroup1', this.orderFriendsGroup1);
|
||||
configRepository.setBool('orderFriendGroup2', this.orderFriendsGroup2);
|
||||
@@ -6256,13 +6256,6 @@ speechSynthesis.getVoices();
|
||||
this.sortFriendsGroup0 = true;
|
||||
this.sortFriendsGroup1 = true;
|
||||
};
|
||||
$app.watch.orderFriendsGroup0 = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroup1 = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroup2 = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroup3 = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroupPrivate = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroupStatus = saveOrderFriendGroup;
|
||||
$app.watch.orderFriendsGroupGPS = saveOrderFriendGroup;
|
||||
|
||||
$app.methods.fetchActiveFriend = function (userId) {
|
||||
this.pendingActiveFriends.add(userId);
|
||||
@@ -8039,6 +8032,8 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
};
|
||||
|
||||
$app.data.recommendedSteamParams =
|
||||
'--enable-sdk-log-levels --log-debug-levels=API;NetworkData';
|
||||
$app.data.lastPortalId = '';
|
||||
$app.data.lastPortalList = new Map();
|
||||
$app.data.portalQueue = '';
|
||||
@@ -8775,14 +8770,15 @@ speechSynthesis.getVoices();
|
||||
type = 'Muted';
|
||||
}
|
||||
if (row.userId) {
|
||||
if (block === row.block && mute === row.mute) {
|
||||
return;
|
||||
}
|
||||
if (!block && row.block) {
|
||||
type = 'Unblocked';
|
||||
} else if (!mute && row.mute) {
|
||||
type = 'Unmuted';
|
||||
}
|
||||
if (block === row.block && mute === row.mute) {
|
||||
// no change
|
||||
type = '';
|
||||
}
|
||||
}
|
||||
if (type) {
|
||||
var noty = {
|
||||
@@ -10577,6 +10573,9 @@ speechSynthesis.getVoices();
|
||||
$app.data.vrBackgroundEnabled = configRepository.getBool(
|
||||
'VRCX_vrBackgroundEnabled'
|
||||
);
|
||||
$app.data.legendColorOverride = configRepository.getBool(
|
||||
'VRCX_legendColorOverride'
|
||||
);
|
||||
$app.data.asideWidth = configRepository.getInt('VRCX_asidewidth');
|
||||
$app.data.autoUpdateVRCX = configRepository.getString(
|
||||
'VRCX_autoUpdateVRCX'
|
||||
@@ -10644,6 +10643,15 @@ speechSynthesis.getVoices();
|
||||
this.updateVRConfigVars();
|
||||
AppApi.ExecuteVrOverlayFunction('notyClear', '');
|
||||
};
|
||||
$app.methods.saveLegendColorOverride = function () {
|
||||
configRepository.setBool(
|
||||
'VRCX_legendColorOverride',
|
||||
this.legendColorOverride
|
||||
);
|
||||
API.cachedUsers.forEach((ref, id) => {
|
||||
API.applyUserTrustLevel(ref);
|
||||
});
|
||||
};
|
||||
$app.data.TTSvoices = speechSynthesis.getVoices();
|
||||
$app.methods.saveNotificationTTS = function () {
|
||||
speechSynthesis.cancel();
|
||||
@@ -10797,6 +10805,13 @@ speechSynthesis.getVoices();
|
||||
$app.data.vrBackgroundEnabled
|
||||
);
|
||||
}
|
||||
if (!configRepository.getBool('VRCX_legendColorOverride')) {
|
||||
$app.data.legendColorOverride = false;
|
||||
configRepository.setBool(
|
||||
'VRCX_legendColorOverride',
|
||||
$app.data.legendColorOverride
|
||||
);
|
||||
}
|
||||
if (!configRepository.getInt('VRCX_asidewidth')) {
|
||||
$app.data.asideWidth = 236;
|
||||
configRepository.setInt('VRCX_asidewidth', $app.data.asideWidth);
|
||||
@@ -11681,7 +11696,7 @@ speechSynthesis.getVoices();
|
||||
$app.methods.promptPhotonLobbyTimeoutThreshold = function () {
|
||||
this.$prompt(
|
||||
'Enter amount of seconds (default: 3)',
|
||||
'Photon Lobby Timeout Threshold',
|
||||
'User Timeout Threshold',
|
||||
{
|
||||
distinguishCancelAndClose: true,
|
||||
confirmButtonText: 'OK',
|
||||
@@ -14200,6 +14215,14 @@ speechSynthesis.getVoices();
|
||||
this.copyToClipboard(url);
|
||||
};
|
||||
|
||||
$app.methods.copyText = function (text) {
|
||||
this.$message({
|
||||
message: 'Text copied to clipboard',
|
||||
type: 'success'
|
||||
});
|
||||
this.copyToClipboard(text);
|
||||
};
|
||||
|
||||
// App: VRCPlus Icons
|
||||
|
||||
API.$on('LOGIN', function () {
|
||||
@@ -17704,29 +17727,29 @@ speechSynthesis.getVoices();
|
||||
};
|
||||
|
||||
$app.methods.clearVRCXCache = function () {
|
||||
API.cachedUsers.forEach((value, key) => {
|
||||
API.cachedUsers.forEach((ref, id) => {
|
||||
if (
|
||||
!this.friends.has(key) &&
|
||||
!this.lastLocation.playerList.has(value.displayName) &&
|
||||
key !== API.currentUser.id
|
||||
!this.friends.has(id) &&
|
||||
!this.lastLocation.playerList.has(ref.displayName) &&
|
||||
id !== API.currentUser.id
|
||||
) {
|
||||
API.cachedUsers.delete(key);
|
||||
API.cachedUsers.delete(id);
|
||||
}
|
||||
});
|
||||
API.cachedWorlds.forEach((value, key) => {
|
||||
API.cachedWorlds.forEach((ref, id) => {
|
||||
if (
|
||||
!API.cachedFavoritesByObjectId.has(key) &&
|
||||
value.authorId !== API.currentUser.id
|
||||
!API.cachedFavoritesByObjectId.has(id) &&
|
||||
ref.authorId !== API.currentUser.id
|
||||
) {
|
||||
API.cachedWorlds.delete(key);
|
||||
API.cachedWorlds.delete(id);
|
||||
}
|
||||
});
|
||||
API.cachedAvatars.forEach((value, key) => {
|
||||
API.cachedAvatars.forEach((ref, id) => {
|
||||
if (
|
||||
!API.cachedFavoritesByObjectId.has(key) &&
|
||||
value.authorId !== API.currentUser.id
|
||||
!API.cachedFavoritesByObjectId.has(id) &&
|
||||
ref.authorId !== API.currentUser.id
|
||||
) {
|
||||
API.cachedAvatars.delete(key);
|
||||
API.cachedAvatars.delete(id);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user