<divclass="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"*ngFor="let tasks of role.tasks, let i = index"[style.z-index]="role.tasks.length+i">
<div*ngFor="let task of tasks, let j = index"[style.z-index]="tasks.length-j">
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#b9dfe3'"mat-menu-item(click)="addTask(mission,role,i,j,'normal')">Ajouter une Tâche</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#bccecc'"mat-menu-item(click)="addTask(mission,role,i,j,'annexe')">Ajouter une Tâche annexe</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#e8e3b3'"mat-menu-item(click)="addTask(mission,role,i,j,'optionnal')">Ajouter une Tâche optionnelle</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#b28386'"mat-menu-item(click)="addTask(mission,role,i,j,'final')"*ngIf="dontContainFinalOrRepeatTask(tasks)">Ajouter une Tâche finale</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#bfdaa3'"mat-menu-item(click)="addTask(mission,role,i,j,'event')">Ajouter un Événement aléatoire</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#abbcc6'"mat-menu-item(click)="addTask(mission,role,i,j,'repeat')"*ngIf="dontContainFinalOrRepeatTask(tasks)">Recommencer le tour</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#b9dfe3'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'normal')">Ajouter une Tâche</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#bccecc'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'annexe')">Ajouter une Tâche annexe</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#e8e3b3'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'optionnal')">Ajouter une Tâche optionnelle</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#b28386'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'final')">Ajouter une Tâche finale</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#bfdaa3'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'event')">Ajouter un Événement aléatoire</button>
<buttonclass="container-scenario-main-missions-mission-roles-role-tasks-menuButton"[style.background-color]="'#abbcc6'"mat-menu-item(click)="addTask(mission,role,i,tasks.length,'repeat')">Recommencer le tour</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b9dfe3'"mat-menu-item(click)="onClickChange('normal')">Transformer en Tâche</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b28386'"mat-menu-item(click)="onClickChange('final')"*ngIf="canChangeInFinalTask()">Transformer une Tâche finale</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b9dfe3'"mat-menu-item(click)="onClickChange('normal')">Transformer en Tâche</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#e8e3b3'"mat-menu-item(click)="onClickChange('optionnal')">Transformer une Tâche optionnelle</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b9dfe3'"mat-menu-item(click)="onClickChange('normal')">Transformer en Tâche</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b28386'"mat-menu-item(click)="onClickChange('final')"*ngIf="canChangeInFinalTask()">Transformer une Tâche finale</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#bccecc'"mat-menu-item(click)="onClickChange('annexe')">Transformer en Tâche annexe</button>
<buttonclass="piece-menu-changeMenuButton"[style.background-color]="'#b28386'"mat-menu-item(click)="onClickChange('final')"*ngIf="canChangeInFinalTask()">Transformer une Tâche finale</button>