mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
v2019.09.23
This commit is contained in:
51
html/app.js
51
html/app.js
@@ -3175,6 +3175,35 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'friend-location':
|
||||||
|
if (content.world) {
|
||||||
|
API.$emit('WORLD', {
|
||||||
|
param: {
|
||||||
|
worldId: content.world.id
|
||||||
|
},
|
||||||
|
json: content.world
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (content.userId === API.currentUser.id) {
|
||||||
|
API.$emit('USER', {
|
||||||
|
param: {
|
||||||
|
userId: content.userId
|
||||||
|
},
|
||||||
|
json: content.user
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
API.$emit('USER', {
|
||||||
|
param: {
|
||||||
|
userId: content.userId
|
||||||
|
},
|
||||||
|
json: {
|
||||||
|
location: content.location,
|
||||||
|
...content.user
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 'user-update':
|
case 'user-update':
|
||||||
API.$emit('USER:CURRENT', {
|
API.$emit('USER:CURRENT', {
|
||||||
param: {
|
param: {
|
||||||
@@ -3183,6 +3212,26 @@ if (window.CefSharp) {
|
|||||||
json: content.user
|
json: content.user
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'user-location':
|
||||||
|
if (content.world) {
|
||||||
|
API.$emit('WORLD', {
|
||||||
|
param: {
|
||||||
|
worldId: content.world.id
|
||||||
|
},
|
||||||
|
json: content.world
|
||||||
|
});
|
||||||
|
}
|
||||||
|
API.$emit('USER', {
|
||||||
|
param: {
|
||||||
|
userId: content.userId
|
||||||
|
},
|
||||||
|
json: {
|
||||||
|
id: content.userId,
|
||||||
|
location: content.location
|
||||||
|
}
|
||||||
|
});
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -3414,7 +3463,7 @@ if (window.CefSharp) {
|
|||||||
VRCX,
|
VRCX,
|
||||||
nextRefresh: 0,
|
nextRefresh: 0,
|
||||||
isGameRunning: false,
|
isGameRunning: false,
|
||||||
appVersion: '2019.09.04',
|
appVersion: '2019.09.23',
|
||||||
latestAppVersion: '',
|
latestAppVersion: '',
|
||||||
ossDialog: false
|
ossDialog: false
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user