Workable system, firt step
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
<span class="stat-value">{{deckCount}}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<i class="fas fa-hand-holding"></i>
|
||||
<span class="stat-label">{{localize "HAMALRON.TarotDeck.CardsDrawn"}}:</span>
|
||||
<span class="stat-value">{{drawnCount}}</span>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
<span class="stat-label">{{localize "HAMALRON.TarotDeck.CardsInDiscard"}}:</span>
|
||||
<span class="stat-value">{{discardCount}}</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<i class="fas fa-clone"></i>
|
||||
@@ -26,48 +26,31 @@
|
||||
{{localize "HAMALRON.TarotDeck.ResetDeck"}}
|
||||
</button>
|
||||
|
||||
<div class="draw-actions">
|
||||
<button type="button" class="action-button draw-button" data-action="drawCard" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-hand-sparkles"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DrawOne"}}
|
||||
</button>
|
||||
<button type="button" class="action-button collect-hands-button" data-action="collectHands">
|
||||
<i class="fas fa-users"></i>
|
||||
{{localize "HAMALRON.TarotDeck.CollectHands"}}
|
||||
</button>
|
||||
|
||||
<button type="button" class="action-button draw-button" data-action="drawMultiple" data-count="3" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-cards-blank"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DrawThree"}}
|
||||
</button>
|
||||
<button type="button" class="action-button distribute-cards-button" data-action="distributeCards" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-hand-holding-heart"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DistributeCards"}}
|
||||
</button>
|
||||
|
||||
<button type="button" class="action-button draw-button" data-action="drawMultiple" data-count="5" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-cards"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DrawFive"}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="action-button shuffle-discard-button" data-action="shuffleDiscard" {{#unless hasDiscard}}disabled{{/unless}}>
|
||||
<i class="fas fa-recycle"></i>
|
||||
{{localize "HAMALRON.TarotDeck.ShuffleDiscard"}}
|
||||
</button>
|
||||
|
||||
{{#if drawnCards.length}}
|
||||
<div class="recent-draws">
|
||||
<h3>{{localize "HAMALRON.TarotDeck.RecentDraws"}}</h3>
|
||||
<div class="drawn-cards-list">
|
||||
{{#each drawnCards}}
|
||||
<div class="drawn-card">
|
||||
<img src="{{this.img}}" alt="{{this.name}}" class="card-image">
|
||||
<div class="card-info">
|
||||
<h4 class="card-name">{{this.name}}</h4>
|
||||
<div class="card-details">
|
||||
<span class="card-symbole">{{lookup ../symboleLabel @index}}</span>
|
||||
<span class="card-valeur">{{lookup ../valeurLabel @index}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<button type="button" class="action-button draw-button" data-action="drawCard" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-hand-sparkles"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DrawOne"}}
|
||||
</button>
|
||||
|
||||
<button type="button" class="action-button draw-tension-button" data-action="drawTension" {{#unless hasCards}}disabled{{/unless}}>
|
||||
<i class="fas fa-bolt"></i>
|
||||
{{localize "HAMALRON.TarotDeck.DrawTension"}}
|
||||
</button>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="no-draws">
|
||||
<i class="fas fa-cards fa-3x"></i>
|
||||
<p>{{localize "HAMALRON.TarotDeck.NoDrawsYet"}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless hasCards}}
|
||||
<div class="deck-empty-warning">
|
||||
|
||||
Reference in New Issue
Block a user