mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Impostors
This commit is contained in:
@@ -3054,6 +3054,42 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
params: {
|
||||||
|
avatarId: string
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
API.createImposter = function (params) {
|
||||||
|
return this.call(`avatars/${params.avatarId}/impostor/enqueue`, {
|
||||||
|
method: 'POST'
|
||||||
|
}).then((json) => {
|
||||||
|
var args = {
|
||||||
|
json,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
this.$emit('AVATAR:IMPOSTER:CREATE', args);
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
params: {
|
||||||
|
avatarId: string
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
API.deleteImposter = function (params) {
|
||||||
|
return this.call(`avatars/${params.avatarId}/impostor`, {
|
||||||
|
method: 'DELETE'
|
||||||
|
}).then((json) => {
|
||||||
|
var args = {
|
||||||
|
json,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
this.$emit('AVATAR:IMPOSTER:DELETE', args);
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// #endregion
|
// #endregion
|
||||||
// #region | API: Notification
|
// #region | API: Notification
|
||||||
|
|
||||||
@@ -18626,6 +18662,28 @@ speechSynthesis.getVoices();
|
|||||||
return args;
|
return args;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'Delete Imposter':
|
||||||
|
API.deleteImposter({
|
||||||
|
avatarId: D.id
|
||||||
|
}).then((args) => {
|
||||||
|
this.$message({
|
||||||
|
message: 'Imposter deleted',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
case 'Create Imposter':
|
||||||
|
API.createImposter({
|
||||||
|
avatarId: D.id
|
||||||
|
}).then((args) => {
|
||||||
|
this.$message({
|
||||||
|
message: 'Imposter queued for creation',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -858,7 +858,9 @@ html
|
|||||||
el-dropdown-item(icon="el-icon-edit" command="Change Content Tags") {{ $t('dialog.avatar.actions.change_content_tags') }}
|
el-dropdown-item(icon="el-icon-edit" command="Change Content Tags") {{ $t('dialog.avatar.actions.change_content_tags') }}
|
||||||
el-dropdown-item(icon="el-icon-picture-outline" command="Change Image") {{ $t('dialog.avatar.actions.change_image') }}
|
el-dropdown-item(icon="el-icon-picture-outline" command="Change Image") {{ $t('dialog.avatar.actions.change_image') }}
|
||||||
el-dropdown-item(v-if="avatarDialog.ref.unityPackageUrl" icon="el-icon-download" command="Download Unity Package") {{ $t('dialog.avatar.actions.download_package') }}
|
el-dropdown-item(v-if="avatarDialog.ref.unityPackageUrl" icon="el-icon-download" command="Download Unity Package") {{ $t('dialog.avatar.actions.download_package') }}
|
||||||
el-dropdown-item(icon="el-icon-user" command="Delete" style="color:#F56C6C" divided) {{ $t('dialog.avatar.actions.delete') }}
|
el-dropdown-item(v-if="avatarDialog.hasImposter" icon="el-icon-user" command="Delete Imposter" style="color:#F56C6C") {{ $t('dialog.avatar.actions.delete_impostor') }}
|
||||||
|
el-dropdown-item(v-else icon="el-icon-delete" command="Create Imposter") {{ $t('dialog.avatar.actions.create_impostor') }}
|
||||||
|
el-dropdown-item(icon="el-icon-delete" command="Delete" style="color:#F56C6C" divided) {{ $t('dialog.avatar.actions.delete') }}
|
||||||
el-tabs
|
el-tabs
|
||||||
el-tab-pane(:label="$t('dialog.avatar.info.header')")
|
el-tab-pane(:label="$t('dialog.avatar.info.header')")
|
||||||
.x-friend-list
|
.x-friend-list
|
||||||
|
|||||||
@@ -753,7 +753,9 @@
|
|||||||
"change_content_tags": "Change Content Tags",
|
"change_content_tags": "Change Content Tags",
|
||||||
"change_image": "Change Image",
|
"change_image": "Change Image",
|
||||||
"download_package": "Download Unity Package",
|
"download_package": "Download Unity Package",
|
||||||
"delete": "Delete"
|
"delete": "Delete",
|
||||||
|
"delete_impostor": "Delete Impostor",
|
||||||
|
"create_impostor": "Create Impostor"
|
||||||
},
|
},
|
||||||
"info": {
|
"info": {
|
||||||
"header": "Info",
|
"header": "Info",
|
||||||
|
|||||||
Reference in New Issue
Block a user