use location hint

This commit is contained in:
pypy
2021-02-03 12:53:39 +09:00
parent 3ded098322
commit e0f819c54f
5 changed files with 26 additions and 9 deletions

View File

@@ -750,6 +750,10 @@ speechSynthesis.getVoices();
template: '<span @click="showWorldDialog" :class="{ \'x-link\': link && this.location !== \'private\' && this.location !== \'offline\'}">{{ text }}<slot></slot></span>',
props: {
location: String,
hint: {
type: String,
default: ''
},
link: {
type: Boolean,
default: true
@@ -767,6 +771,12 @@ speechSynthesis.getVoices();
this.text = 'Offline';
} else if (L.isPrivate) {
this.text = 'Private';
} else if (typeof this.hint === 'string' && this.hint !== '') {
if (L.instanceId) {
this.text = `${this.hint} #${L.instanceName} ${L.accessType}`;
} else {
this.text = this.hint;
}
} else if (L.worldId) {
var ref = API.cachedWorlds.get(L.worldId);
if (typeof ref === 'undefined') {
@@ -4719,7 +4729,7 @@ speechSynthesis.getVoices();
tableData = {
created_at: gameLog.dt,
type: 'Location',
data: gameLog.location
data: [gameLog.location, gameLog.worldName]
};
break;