mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
Region flags in game/wrist feeds
This commit is contained in:
@@ -765,7 +765,7 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
|
||||
Vue.component('location', {
|
||||
template: '<span @click="showWorldDialog" :class="{ \'x-link\': link && this.location !== \'private\' && this.location !== \'offline\'}">{{ text }}<slot></slot></span>',
|
||||
template: '<span @click="showWorldDialog" :class="{ \'x-link\': link && this.location !== \'private\' && this.location !== \'offline\'}">{{ text }}<slot></slot><span class="famfamfam-flags" :class="region" style="display:inline-block;margin-left:5px"></span></span>',
|
||||
props: {
|
||||
location: String,
|
||||
hint: {
|
||||
@@ -779,7 +779,8 @@ speechSynthesis.getVoices();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
text: this.location
|
||||
text: this.location,
|
||||
region: this.region
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -816,6 +817,16 @@ speechSynthesis.getVoices();
|
||||
this.text = ref.name;
|
||||
}
|
||||
}
|
||||
this.region = '';
|
||||
if ((this.location !== '') && (!L.isOffline) && (!L.isPrivate)) {
|
||||
if (L.region === 'eu') {
|
||||
this.region = 'europeanunion';
|
||||
} else if (L.region === 'jp') {
|
||||
this.region = 'jp';
|
||||
} else {
|
||||
this.region = 'us';
|
||||
}
|
||||
}
|
||||
},
|
||||
showWorldDialog() {
|
||||
if (this.link) {
|
||||
|
||||
Reference in New Issue
Block a user