mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-03 21:36:06 +02:00
Boops
This commit is contained in:
@@ -413,6 +413,15 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
}
|
||||
ref.details = details;
|
||||
}
|
||||
if (ref.type === 'boop') {
|
||||
ref.message = ref.title;
|
||||
if (ref.details?.emojiId.startsWith('default_')) {
|
||||
ref.details.imageUrl = ref.details.emojiId;
|
||||
ref.message += ` ${ref.details.emojiId.replace('default_', '')}`;
|
||||
} else {
|
||||
ref.details.imageUrl = `${AppDebug.endpointDomain}/file/${ref.details.emojiId}/${ref.details.emojiVersion}`;
|
||||
}
|
||||
}
|
||||
return ref;
|
||||
}
|
||||
|
||||
|
||||
@@ -1115,7 +1115,7 @@ export const usePhotonStore = defineStore('Photon', () => {
|
||||
} else if (type === 1) {
|
||||
emojiName = 'Custom';
|
||||
var fileId = data.Parameters[245][1];
|
||||
imageUrl = `https://api.vrchat.cloud/api/1/file/${fileId}/1/`;
|
||||
imageUrl = `${AppDebug.endpointDomain}/file/${fileId}/1/`;
|
||||
}
|
||||
addEntryPhotonEvent({
|
||||
photonId,
|
||||
|
||||
+11
-1
@@ -269,6 +269,10 @@ export const useUserStore = defineStore('User', () => {
|
||||
languageChoice: false,
|
||||
languages: []
|
||||
});
|
||||
const sendBoopDialog = ref({
|
||||
visible: false,
|
||||
userId: ''
|
||||
});
|
||||
const pastDisplayNameTable = ref({
|
||||
data: [],
|
||||
tableProps: {
|
||||
@@ -1960,6 +1964,11 @@ export const useUserStore = defineStore('User', () => {
|
||||
return ref;
|
||||
}
|
||||
|
||||
function showSendBoopDialog(userId) {
|
||||
sendBoopDialog.value.userId = userId;
|
||||
sendBoopDialog.value.visible = true;
|
||||
}
|
||||
|
||||
return {
|
||||
state,
|
||||
|
||||
@@ -1968,6 +1977,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
userDialog,
|
||||
subsetOfLanguages,
|
||||
languageDialog,
|
||||
sendBoopDialog,
|
||||
pastDisplayNameTable,
|
||||
showUserDialogHistory,
|
||||
customUserTags,
|
||||
@@ -1986,7 +1996,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
initUserNotes,
|
||||
getCurrentUser,
|
||||
handleConfig,
|
||||
|
||||
showSendBoopDialog,
|
||||
checkNote
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user