Commit 22308e3a authored by Romain DELEAU's avatar Romain DELEAU

trace on enable/disable unity mode

parent 0a39569f
......@@ -179,7 +179,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"
<span mat-menu-item (click)="unityService.unity_isActive = !unityService.unity_isActive; unityTrace($event)"
[matTooltip]="translate.instant('unity_tooltip')"
matTooltipPosition="left" [matTooltipDisabled]="!tooltipService.activatedTooltips">
<input name="unity" type="checkbox" [(ngModel)]="unityService.unity_isActive"/>
......
......@@ -474,6 +474,14 @@ export class AppComponent {
}
}
unityTrace(event: any) {
if(event.target.checked) {
this.scenario.traces.push(new Trace(this.scenario.traces.length,'enable_unity',undefined, undefined,'unity','Scenario'));
} else {
this.scenario.traces.push(new Trace(this.scenario.traces.length,'disable_unity',undefined, undefined,'unity','Scenario'));
}
}
resumeTutorialTrace() {
this.scenario.traces.push(new Trace(this.scenario.traces.length, 'resume_tutorial', undefined, undefined, 'phase_'+this.tutorialService.phase, 'Tutorial'));
}
......
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