hench/templates/cards/cards.hbs

104 lines
5.0 KiB
Handlebars
Raw Normal View History

2024-12-20 12:00:44 -05:00
<form>
2024-12-26 14:56:48 -05:00
2024-12-20 12:00:44 -05:00
Cards sheet
2024-12-26 14:56:48 -05:00
<div class="hench-sheet-container hench-unbiased hench-padding-wide hench-gap-wide hench-white">
<!-- Decks -->
<div class="hench-row hench-flex-resizeable hench-gap-wide">
<div class="hench-box hench-m-grey hench-flex-resizeable hench-padding-wide hench-gap-narrow">
<div class="hench-row hench-row-align-stretch hench-gap-narrow">
2024-12-26 15:38:59 -05:00
<div class="hench-box hench-flex-resizeable hench-card-fixed-item hench-clickable hench-cards-action-draw">
{{#topCard document "DECK"}}
<img class="hench-image-resize-vertical" src="{{#if hasTopCard}}{{deckImage}}{{/if}}" />
{{/topCard}}
2024-12-26 14:56:48 -05:00
</div>
<div class="hench-box hench-flex-resizeable hench-gap-narrow hench-row-even">
2024-12-26 22:36:56 -05:00
<div class="hench-row hench-padding-narrow hench-white hench-centered hench-clickable hench-cards-action-draw">
<span class="hench-flex-resizeable">
2024-12-26 14:56:48 -05:00
Draw
</span>
</div>
2024-12-26 22:54:39 -05:00
<div class="hench-row hench-padding-narrow hench-white hench-centered {{#if canManage}}hench-clickable hench-cards-action-edit-deck{{else}}hench-strikethrough{{/if}}">
2024-12-26 22:36:56 -05:00
<span class="hench-flex-resizeable">
Edit deck
2024-12-26 14:56:48 -05:00
</span>
</div>
2024-12-26 22:36:56 -05:00
<div class="hench-row hench-padding-narrow hench-white hench-centered hench-clickable hench-cards-action-draw-bottom">
<span class="hench-flex-resizeable">
2024-12-26 14:56:48 -05:00
Draw from Bottom
</span>
</div>
</div>
2024-12-26 22:36:56 -05:00
{{#topCard document "HELD"}}
<div class="hench-box hench-flex-resizeable hench-card-fixed-item {{#if hasTopCard}}hench-card-action-play-held hench-clickable{{/if}}">
<img class="hench-image-resize-vertical" src="{{#if hasTopCard}}{{topCardImage}}{{/if}}" />
2024-12-26 14:56:48 -05:00
</div>
2024-12-26 22:36:56 -05:00
{{/topCard}}
2024-12-26 14:56:48 -05:00
<div class="hench-box hench-flex-resizeable hench-gap-narrow hench-row-even">
2024-12-26 22:36:56 -05:00
<div class="hench-row hench-padding-narrow hench-white hench-centered hench-clickable hench-cards-action-reset">
<span class="hench-flex-resizeable">
2024-12-26 15:38:59 -05:00
Reset
2024-12-26 14:56:48 -05:00
</span>
</div>
2024-12-26 22:36:56 -05:00
<div class="hench-row hench-padding-narrow hench-centered hench-white hench-clickable hench-cards-action-view-discard">
<span class="hench-flex-resizeable">
2024-12-26 15:38:59 -05:00
View discard
2024-12-26 14:56:48 -05:00
</span>
</div>
2024-12-26 22:36:56 -05:00
<div class="hench-row hench-padding-narrow hench-white hench-centered hench-clickable hench-cards-action-return-spread">
<span class="hench-flex-resizeable">
2024-12-26 15:38:59 -05:00
Return Spread
2024-12-26 14:56:48 -05:00
</span>
</div>
</div>
<div class="hench-box hench-flex-resizeable hench-card-fixed-item">
2024-12-26 15:38:59 -05:00
{{#topCard document "DISCARD"}}
<img class="hench-image-resize-vertical" src="{{#if hasTopCard}}{{topCardImage}}{{/if}}" />
{{/topCard}}
2024-12-26 14:56:48 -05:00
</div>
</div>
</div>
</div>
<!-- Spread -->
<div class="hench-row hench-flex-resizeable hench-gap-wide">
<div class="hench-box hench-m-grey hench-flex-resizeable hench-padding-wide hench-gap-narrow">
<div class="hench-row hench-row-even hench-gap-narrow">
{{#each document.spread}}
2024-12-26 15:38:59 -05:00
<div class="hench-box hench-flex-resizeable hench-card-fixed-item hench-clickable hench-cards-action-play" data-card-index="{{@index}}">
2024-12-26 22:43:19 -05:00
<img class="hench-image-resize-vertical" src="{{this.currentFace.img}}" title="{{this.system.cue}}" />
2024-12-26 14:56:48 -05:00
</div>
{{else}}
<div class="hench-box hench-flex-resizeable hench-card-fixed-item hench-card-empty"></div>
{{/each}}
</div>
</div>
</div>
</div>
</form>
<!--
| deck | ui | held | ui | deck |
| c | c | C | c | c |
deck click -> draw card to spread (max 5)
ui:
- draw -> draw card to spread (max 5)
- view -> open view-deck dialogue (GM only)
- draw from bottom -> draw card to spread from bottom (max 5)
held click -> play to discard
ui:
- shuffle -> shuffle
- reset -> reset & shuffle
- view -> open view-discard dialogue (all players)
discard click -> ???
card:
| play |
| card |
| cue |
play -> play card
card -> image
cue -> cue
-->