Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a regenerate impostor button #1057

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12043,6 +12043,7 @@ speechSynthesis.getVoices();
message: 'Imposter deleted',
type: 'success'
});
this.showAvatarDialog(D.id);
return args;
});
break;
Expand All @@ -12057,6 +12058,21 @@ speechSynthesis.getVoices();
return args;
});
break;
case 'Regenerate Imposter':
API.deleteImposter({
avatarId: D.id
}).then((args) => {return args;});
API.createImposter({
avatarId: D.id
}).then((args) => {
this.$message({
message: 'Imposter deleted and queued for creation',
type: 'success'
});
this.showAvatarDialog(D.id);
return args;
});
break;
}
}
});
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@
"download_package": "Download Unity Package",
"delete": "Delete",
"delete_impostor": "Delete Impostor",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "Create Impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/es/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@
"download_package": "Descargar paquete de Unity",
"delete": "Eliminar",
"delete_impostor": "Eliminar Impostor",
"regenerate_impostor": "Recrear Impostor",
"create_impostor": "Crear impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/fr/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "Télécharger le package Unity",
"delete": "Supprimer",
"delete_impostor": "Supprimer l'imposteur",
"regenerate_impostor": "Recréer un imposteur",
"create_impostor": "Créer un imposteur"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/hu/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "Download Unity Package",
"delete": "Törlés",
"delete_impostor": "Delete Impostor",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "Create Impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/ja/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@
"download_package": "Unity Packageをダウンロード",
"delete": "削除",
"delete_impostor": "インポスターを削除",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "インポスターを作成"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/ko/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "유니티 패키지 다운로드",
"delete": "삭제",
"delete_impostor": "Delete Impostor",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "Create Impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/pl/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "Pobierz paczkę Unity",
"delete": "Usuń",
"delete_impostor": "Usuń Impostora",
"regenerate_impostor": "Odtwórz Impostora",
"create_impostor": "Stwórz Impostora"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/pt/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "Baixar Pacote Unity",
"delete": "Excluir",
"delete_impostor": "Excluir Impostor",
"regenerate_impostor": "Recriar Impostor",
"create_impostor": "Criar Impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/ru/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@
"download_package": "Скачать пакет Unity",
"delete": "Удалить",
"delete_impostor": "Удалить импостора",
"regenerate_impostor": "Воссоздать импостора",
"create_impostor": "Создать импостора"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/vi/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"download_package": "Tải về Unity Package",
"delete": "Xóa",
"delete_impostor": "Delete Impostor",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "Create Impostor"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/zh-CN/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@
"download_package": "下载 Unity Package",
"delete": "删除",
"delete_impostor": "删除模型替身",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "创建模型替身"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/localization/zh-TW/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@
"download_package": "下載 Unity Package",
"delete": "刪除",
"delete_impostor": "刪除投影替身",
"regenerate_impostor": "Regenerate Impostor",
"create_impostor": "建立投影替身"
},
"info": {
Expand Down
1 change: 1 addition & 0 deletions html/src/mixins/dialogs/avatarDialog.pug
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ mixin avatarDialog()
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.hasImposter" icon="el-icon-delete" command="Delete Imposter" style="color:#F56C6C") {{ $t('dialog.avatar.actions.delete_impostor') }}
el-dropdown-item(v-if="avatarDialog.hasImposter" icon="el-icon-refresh" command="Regenerate Imposter" style="color:#F56C6C") {{ $t('dialog.avatar.actions.regenerate_impostor') }}
el-dropdown-item(v-else icon="el-icon-user" 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
Expand Down