Commit a2f107a2 authored by Romain DELEAU's avatar Romain DELEAU

alert when enabling unity mode indicating that the export isn't available

parent 7193a725
......@@ -180,7 +180,7 @@
<img class="langIcon" [src]="'./assets/lang/icons/'+selectedLang+'.png'"/>
<span>{{'lang_label' | translate}}</span>
</button>
<span mat-menu-item (click)="unityService.unity_isActive = !unityService.unity_isActive; unityTrace($event); minimapService.reset()"
<span mat-menu-item (click)="changeMode(); unityTrace($event); minimapService.reset()"
[matTooltip]="translate.instant('unity_tooltip')"
matTooltipPosition="left" [matTooltipDisabled]="!tooltipService.activatedTooltips">
<input name="unity" type="checkbox" [(ngModel)]="unityService.unity_isActive"/>
......
......@@ -142,6 +142,13 @@ export class AppComponent {
}
}
changeMode(): void {
this.unityService.unity_isActive = !this.unityService.unity_isActive
if (this.unityService.unity_isActive) {
alert(this.translate.instant('unity_export_notavailable'))
}
}
downloadManual(): void {
const manualUrl = './assets/GuideMaker_v2.3.pdf';
this.http.get(manualUrl, { responseType: 'blob' }).subscribe((blob: Blob) => {
......
......@@ -18,6 +18,7 @@
"enableHelp_tooltip": "Description of each element of the RLG Maker.",
"unity_label": "Integrate the game into Unity",
"unity_tooltip": "Usage in a specific game template. Contact gaelle.guigon@imt-nord-europe.fr for more information.",
"unity_export_notavailable": "Attention, file export for the Unity application is not yet available in this version, only editing of the scenario in preparation is possible",
"download_label": "Download this scenario",
"download_tooltip": "Download a backup of the scenario.",
"upload_label": "Import a scenario",
......
......@@ -18,6 +18,7 @@
"enableHelp_tooltip": "Descriptif de chaque élément du RLG Maker.",
"unity_label": "Intégrer le jeu sous Unity",
"unity_tooltip": "Utilisation dans un template de jeu précis. Contacter gaelle.guigon@imt-nord-europe.fr pour plus d'informations.",
"unity_export_notavailable": "Attention, l'export de fichier pour l'application Unity n'est pas encore disponible dans cette version, seule l'édition du scénario en prévision est possible",
"download_label": "Télécharger ce scénario",
"download_tooltip": "Télécharger une sauvegarde du scénario.",
"upload_label": "Importer un scénario",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment