vrcplus tag

This commit is contained in:
pypy
2020-12-05 16:28:59 +09:00
parent 4ad63c52a8
commit 85d81b081e
2 changed files with 7 additions and 0 deletions

View File

@@ -1035,6 +1035,7 @@ import gameLogService from './service/gamelog.js'
if (ref.homeLocation !== ref.$homeLocation.tag) {
ref.$homeLocation = this.parseLocation(ref.homeLocation);
}
ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref);
} else {
@@ -1065,6 +1066,7 @@ import gameLogService from './service/gamelog.js'
offlineFriends: [],
// VRCX
$homeLocation: {},
$isVRCPlus: false,
$isModerator: false,
$isTroll: false,
$trustLevel: 'Visitor',
@@ -1074,6 +1076,7 @@ import gameLogService from './service/gamelog.js'
...json
};
ref.$homeLocation = this.parseLocation(ref.homeLocation);
ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref);
this.currentUser = ref;
@@ -1156,6 +1159,7 @@ import gameLogService from './service/gamelog.js'
// VRCX
$location: {},
$location_at: Date.now(),
$isVRCPlus: false,
$isModerator: false,
$isTroll: false,
$trustLevel: 'Visitor',
@@ -1165,6 +1169,7 @@ import gameLogService from './service/gamelog.js'
...json
};
ref.$location = this.parseLocation(ref.location);
ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref);
this.cachedUsers.set(ref.id, ref);
@@ -1180,6 +1185,7 @@ import gameLogService from './service/gamelog.js'
if (ref.location !== ref.$location.tag) {
ref.$location = this.parseLocation(ref.location);
}
ref.$isVRCPlus = ref.tags.includes('system_supporter');
this.applyUserTrustLevel(ref);
this.applyUserLanguage(ref);
for (var prop in ref) {

View File

@@ -674,6 +674,7 @@ html
div(style="margin-top:5px")
el-tag.name(type="info" effect="plain" size="mini" :class="userDialog.ref.$trustClass" v-text="userDialog.ref.$trustLevel")
el-tag.x-tag-friend(v-if="userDialog.isFriend && userDialog.friend" type="info" effect="plain" size="mini" style="margin-left:5px") Friend No.{{userDialog.friend.no}}
el-tag.x-tag-vrcplus(type="info" effect="plain" size="mini" v-if="userDialog.ref.$isVRCPlus" style="margin-left:5px") VRC+
div(style="margin-top:5px")
span(v-text="userDialog.ref.statusDescription" style="font-size:12px")
div(v-if="userDialog.ref.userIcon" style="flex:none")