mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
show yourself in worlds (closes #35)
This commit is contained in:
+16
@@ -5573,6 +5573,9 @@ CefSharp.BindObjectAsync(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.lastLocation === L.tag) {
|
||||||
|
users.push(this.API.currentUser);
|
||||||
|
}
|
||||||
users.sort(compareByDisplayName);
|
users.sort(compareByDisplayName);
|
||||||
D.users = users;
|
D.users = users;
|
||||||
D.instance = {};
|
D.instance = {};
|
||||||
@@ -5987,6 +5990,19 @@ CefSharp.BindObjectAsync(
|
|||||||
}
|
}
|
||||||
instance.users.push(ref);
|
instance.users.push(ref);
|
||||||
}
|
}
|
||||||
|
var lastLocation$ = API.parseLocation(this.lastLocation);
|
||||||
|
if (lastLocation$.worldId === D.id) {
|
||||||
|
var instance = instances[lastLocation$.instanceId];
|
||||||
|
if (instance === undefined) {
|
||||||
|
instance = {
|
||||||
|
id: lastLocation$.instanceId,
|
||||||
|
occupants: 1,
|
||||||
|
users: []
|
||||||
|
};
|
||||||
|
instances[instance.id] = instance;
|
||||||
|
}
|
||||||
|
instance.users.push(this.API.currentUser);
|
||||||
|
}
|
||||||
var rooms = [];
|
var rooms = [];
|
||||||
for (var instance of Object.values(instances)) {
|
for (var instance of Object.values(instances)) {
|
||||||
// due to references on callback of API.getUser()
|
// due to references on callback of API.getUser()
|
||||||
|
|||||||
Reference in New Issue
Block a user