View orange status users in current instance

This commit is contained in:
Natsumi
2021-03-20 05:40:13 +13:00
parent 821b30a04f
commit ae5bafe18e
+31 -1
View File
@@ -3873,9 +3873,17 @@ speechSynthesis.getVoices();
} }
} }
} }
if (this.isGameRunning) {
this.lastLocation.playerList = playerList; this.lastLocation.playerList = playerList;
this.lastLocation.friendList = friendList; this.lastLocation.friendList = friendList;
sharedRepository.setObject('last_location', this.lastLocation); sharedRepository.setObject('last_location', this.lastLocation);
}
if (this.worldDialog.visible) {
this.applyWorldDialogInstances();
}
if (this.userDialog.visible) {
this.applyUserDialogLocation();
}
this.sharedFeed.gameLog.wrist = wristArr; this.sharedFeed.gameLog.wrist = wristArr;
this.sharedFeed.gameLog.noty = notyArr; this.sharedFeed.gameLog.noty = notyArr;
this.sharedFeed.pendingUpdate = true; this.sharedFeed.pendingUpdate = true;
@@ -5520,7 +5528,9 @@ speechSynthesis.getVoices();
this.lastLocation = { this.lastLocation = {
date: Date.parse(gameLog.dt), date: Date.parse(gameLog.dt),
location: gameLog.location, location: gameLog.location,
name: gameLog.worldName name: gameLog.worldName,
playerList: [],
friendList: []
}; };
} }
tableData = { tableData = {
@@ -7436,6 +7446,16 @@ speechSynthesis.getVoices();
users.push((typeof ref === 'undefined') users.push((typeof ref === 'undefined')
? API.currentUser ? API.currentUser
: ref); : ref);
var playersInInstance = this.lastLocation.friendList;
for (var i = 0; i < playersInInstance.length; i++) {
var player = playersInInstance[i];
for (var ref of API.cachedUsers.values()) {
if (ref.displayName === player) {
users.push(ref);
break;
}
}
}
} }
users.sort(compareByDisplayName); users.sort(compareByDisplayName);
D.users = users; D.users = users;
@@ -7960,6 +7980,16 @@ speechSynthesis.getVoices();
instance.users.push((typeof ref === 'undefined') instance.users.push((typeof ref === 'undefined')
? API.currentUser ? API.currentUser
: ref); : ref);
var playersInInstance = this.lastLocation.friendList;
for (var i = 0; i < playersInInstance.length; i++) {
var player = playersInInstance[i];
for (var ref of API.cachedUsers.values()) {
if (ref.displayName === player) {
instance.users.push(ref);
break;
}
}
}
} }
} }
var rooms = []; var rooms = [];