Skip to content

Commit

Permalink
Fix spell selector on items
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Mar 18, 2024
1 parent 158e346 commit 0d0ce32
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/app/item/spell-definition-selector.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,20 @@ <h2 class="title" [innerHTML]="highlightSpellName(spellResult)"></h2>
</div>
</ng-container>

<ng-container *ngIf="selectedSpell">
<div class="selected-spell">
<h2>Choisir le niveau d'arcane</h2>

<div class="arcane-levels">
<ng-container *ngFor="let arcaneLevel of arcanesLevels">
<a (click)="selectArcaneLevelForSpell(arcaneLevel)" class="level" [class.active]="arcaneLevel === selectedSpellContext.arcaneLevel">
{{arcaneLevel}}
</a>
</ng-container>
</div>
<h2>Sort</h2>
<lvl0-spell [spell]="selectedSpell"></lvl0-spell>
<button type="button" (click)="selectSpell()">Choisir</button>
</div>
</ng-container>

0 comments on commit 0d0ce32

Please sign in to comment.