Search and previous lobby photon logging feed

This commit is contained in:
Natsumi
2021-12-23 18:27:25 +13:00
parent e929eb2269
commit d54853f6ff
2 changed files with 74 additions and 12 deletions

View File

@@ -7555,7 +7555,10 @@ speechSynthesis.getVoices();
this.lastPortalId = '';
this.lastPortalList = new Map();
this.portalQueue = '';
this.photonEventTable.data = [];
if (this.photonEventTable.data.length > 0) {
this.photonEventTablePrevious.data = this.photonEventTable.data;
this.photonEventTable.data = [];
}
this.updateCurrentInstanceWorld();
var playerList = Array.from(this.lastLocation.playerList.values());
for (var ref of playerList) {
@@ -8285,8 +8288,42 @@ speechSynthesis.getVoices();
AppApi.ExecuteVrFeedFunction('updatePhotonLobbyBotSize', `${size}`);
};
$app.data.photonEventTableFilter = '';
$app.methods.photonEventTableFilterChange = function () {
this.photonEventTable.filters[0].value = this.photonEventTableFilter;
this.photonEventTablePrevious.filters[0].value =
this.photonEventTableFilter;
};
$app.data.photonEventTable = {
data: [],
filters: [
{
prop: ['displayName', 'text'],
value: ''
}
],
tableProps: {
stripe: true,
size: 'mini'
},
pageSize: 10,
paginationProps: {
small: true,
layout: 'sizes,prev,pager,next,total',
pageSizes: [5, 10, 15, 25, 50]
}
};
$app.data.photonEventTablePrevious = {
data: [],
filters: [
{
prop: ['displayName', 'text'],
value: ''
}
],
tableProps: {
stripe: true,
size: 'mini'