Tirage des tarots
This commit is contained in:
9
templates/chat/display-tarot-card.hbs
Normal file
9
templates/chat/display-tarot-card.hbs
Normal file
@@ -0,0 +1,9 @@
|
||||
</div>
|
||||
<div class="flexcol">
|
||||
<img class="{{#if system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{img}}">
|
||||
<span class="tarot-title">{{name}}</span>
|
||||
{{#if system.isdualside}}
|
||||
<span class="tarot-title">{{#if system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
4
templates/chat/request-tarot-card.hbs
Normal file
4
templates/chat/request-tarot-card.hbs
Normal file
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<button class="chat-card-button draw-tarot-card">Tirer une carte de Tarot</button>
|
||||
</div>
|
||||
|
||||
72
templates/dialogs/tirage-tarot-dialog.hbs
Normal file
72
templates/dialogs/tirage-tarot-dialog.hbs
Normal file
@@ -0,0 +1,72 @@
|
||||
<form class="skill-roll-dialog">
|
||||
<header class="roll-dialog-header">
|
||||
<h1 class="dialog-roll-title roll-dialog-header">Joueur : {{user.name}}</h1>
|
||||
</header>
|
||||
|
||||
<div class="flexcol">
|
||||
|
||||
{{#if (eq state "select-player")}}
|
||||
<div class="flexrow">
|
||||
<span>Sélectionnez le joueur pour faire le tirage</span>
|
||||
<select id="playerId" name="playerId">
|
||||
{{#select playerId}}
|
||||
<option value="none"></option>
|
||||
{{#each players as |player id|}}
|
||||
<option value="{{player._id}}">{{player.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq state "attribute-to-actor")}}
|
||||
<div class="flexrow">
|
||||
<span>Sélectionnez l'acteur pour lui attribuer les tarots</span>
|
||||
<select id="actorId" name="actorId">
|
||||
{{#select actorId}}
|
||||
<option value="none"></option>
|
||||
{{#each actors as |actor id|}}
|
||||
<option value="{{actor._id}}">{{actor.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexcol">
|
||||
<span><h2>Main du joueur : </h2></span>
|
||||
<div class="flexrow">
|
||||
{{#each cards as |card index|}}
|
||||
<div class="flexcol">
|
||||
<div class="tarot-fixed-width flexcol">
|
||||
<img class="tarot-fixed-width {{#if card.system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{card.img}}">
|
||||
<span class="tarot-title">{{card.name}}</span>
|
||||
{{#if card.system.isdualside}}
|
||||
<span class="tarot-title">{{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<span><h2>Main secrête : </h2></span>
|
||||
<div class="flexrow">
|
||||
{{#each secretCards as |card index|}}
|
||||
<div class="flexcol">
|
||||
<div class="tarot-fixed-width flexcol">
|
||||
<img class="tarot-fixed-width {{#if card.system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{card.img}}">
|
||||
<span class="tarot-title">{{card.name}}</span>
|
||||
{{#if card.system.isdualside}}
|
||||
<span class="tarot-title">{{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -36,9 +36,15 @@
|
||||
|
||||
{{#if isGM}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">En positif ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.ispositif" {{checked system.ispositif}} />
|
||||
<label class="item-field-label-long">A un sens (ie positif/négatif)?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.isdualside" {{checked system.isdualside}} />
|
||||
</li>
|
||||
{{#if system.isdualside}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">En positif ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.ispositif" {{checked system.ispositif}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Carte cachée (ie MJ seulement) ?</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.isgm" {{checked system.isgm}} />
|
||||
|
||||
Reference in New Issue
Block a user