foundryvtt-shadows-over-sol/templates/dialog-flip.html

120 lines
5.5 KiB
HTML
Raw Normal View History

2021-01-21 17:16:01 +01:00
<form class="flip-dialog">
<h2 class="compdialog" id="statSkillFlip">Flip Dialog !</h2>
2021-02-16 23:01:42 +01:00
<div class="flexrow">
<div class="flexcol">
{{#if (eq mode 'stat')}}
2021-02-17 20:45:52 +01:00
<label class="dialog-label" id="flipSubTitle">Stat Only Flip :</label>
<label class="dialog-label">
{{localize stat.label}} : {{stat.value}} - <img class="cardsuit-img" src="systems/foundryvtt-shadows-over-sol/img/cards/{{stat.cardsuit}}.webp"/>
</label>
2021-02-16 23:01:42 +01:00
<span>
2021-02-17 20:45:52 +01:00
<label class="dialog-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
2021-02-16 23:01:42 +01:00
</span>
{{else}}
2021-02-17 20:45:52 +01:00
<label class="dialog-label" id="flipSubTitle">Select Stat</h3>
2021-02-16 23:01:42 +01:00
<select name="stat" id="statSelect" data-dtype="String">
{{#select statList}}
{{#each statList as |stat key|}}
<option value={{key}} {{#if (eq key ../selectedStat)}}selected{{/if}}>{{localize stat.label}} : {{stat.value}} - {{stat.cardsuit}} </option>
2021-02-09 23:32:55 +01:00
{{/each}}
{{/select}}
2021-02-16 23:01:42 +01:00
</select>
<span>
2021-02-17 20:45:52 +01:00
<h3 class="dialog-label" id="flipSubTitle">Skill Flip : {{skill.name}} ({{skill.data.value}}) </h3>
<h3 class="dialog-label" id="flipSubTitle">Final Score : <span id='score-base'>0</span> </h3>
2021-02-16 23:01:42 +01:00
</span>
{{/if}}
</div>
<div class="flexcol">
<div class="tab" data-group="primary">
<select name="consequenceSelect" id="consequenceSelectMalus" data-dtype="String" multiple size="5" width="200">
{{#select consequencesList}}
{{#each consequencesList as |consequence key|}}
<option value={{consequence._id}}>{{localize consequence.name}} - {{consequence.data.severity}}</option>
{{/each}}
{{/select}}
</select>
2021-02-17 20:45:52 +01:00
<h3 class="dialog-label" id="flipConsequenceMalus">Consequences Malus : <span id='consequence-malus'>0</span> </h3>
2021-02-16 23:01:42 +01:00
</div>
</div>
<div class="flexcol">
<div class="tab" data-group="primary">
<select name="consequenceSelect" id="consequenceSelectBonus" data-dtype="String" multiple size="5" width="200">
{{#select consequencesList}}
{{#each consequencesList as |consequence key|}}
<option value={{consequence._id}}>{{localize consequence.name}} - {{consequence.data.severity}}</option>
{{/each}}
{{/select}}
</select>
2021-02-17 20:45:52 +01:00
<h3 class="dialog-label" id="flipConsequenceBonus">Consequences Bonus : <span id='consequence-bonus'>0</span> </h3>
2021-02-16 23:01:42 +01:00
</div>
2021-02-09 23:32:55 +01:00
</div>
2021-02-17 20:45:52 +01:00
<div class="flexcol">
{{#if (gt wounds.light 0)}}
<span><label class="dialog-label">Apply Light Wound Malus:</label><input type="checkbox" name="wound-light-checkbox" id="wound-light-checkbox"></span>
{{/if}}
{{#if (gt wounds.moderate 0)}}
<span><label class="dialog-label">Apply Moderate Wound Malus:</label><input type="checkbox" name="wound-moderate-checkbox" id="wound-moderate-checkbox"></span>
{{/if}}
{{#if (gt wounds.severe 0)}}
<span><label class="dialog-label">Apply Severe Wound Malus:</label><input type="checkbox" name="wound-severe-checkbox" id="wound-severe-checkbox"></span>
{{/if}}
{{#if (gt wounds.critical 0)}}
<span><label class="dialog-label">Apply Critical Wound Malus:</label><input type="checkbox" name="wound-critical-checkbox" id="wound-critical-checkbox"></span>
{{/if}}
<h3 class="dialog-label" id="flipWoundMalus">Wounds Malus : <span id='wound-malus'>0</span> </h3>
</div>
2021-02-09 23:32:55 +01:00
</div>
</div>
2021-02-16 23:01:42 +01:00
<hr>
2021-02-11 00:07:13 +01:00
{{#if target}}
<div>
<h4>Target : {{target.actor.name}} - Defense : {{target.actor.data.data.scores.defense.value}}/{{target.actor.data.data.scores.defense.critical}}</h4>
</div>
{{/if}}
2021-01-21 17:16:01 +01:00
<section class="sheet-body">
<div class="tab" data-group="primary">
<div class="flexrow">
2021-02-17 20:45:52 +01:00
<label for="categorie" class="dialog-label">Target Number (TN) : </label>
2021-02-11 00:07:13 +01:00
{{#if target}}
2021-02-17 20:45:52 +01:00
<label for="categorie" class="dialog-label"> {{target.actor.data.data.scores.defense.value}} </label>
2021-02-11 00:07:13 +01:00
{{else}}
2021-01-24 23:18:50 +01:00
<select name="tn" id="tn" data-dtype="number">
{{#select tn}}
{{#each tnList as |key|}}
<option value={{key}} {{#if (eq key 10)}}selected{{/if}}>{{numberFormat key decimals=0 sign=false}}</option>
{{/each}}
{{/select}}
2021-02-09 23:32:55 +01:00
</select>
2021-02-11 00:07:13 +01:00
{{/if}}
2021-02-17 20:45:52 +01:00
<label for="categorie" class="dialog-label"> Flip Modifier (GM bonus/malus)</label>
2021-01-24 23:18:50 +01:00
<select name="modifier" id="modifier" data-dtype="number">
{{#select modifier}}
{{#each modifierList as |key|}}
<option value={{key}} {{#if (eq key 0)}}selected{{/if}}>{{numberFormat key decimals=0 sign=true}}</option>
{{/each}}
{{/select}}
2021-02-09 23:32:55 +01:00
</select>
2021-01-21 17:16:01 +01:00
</div>
</div>
2021-02-16 23:01:42 +01:00
<hr>
<div class="flexcol">
2021-02-17 20:45:52 +01:00
<label class="dialog-label">Click on deck to flip from deck, or click on the relevant Edge card to flip from it!</label>
2021-02-16 23:01:42 +01:00
2021-02-17 20:45:52 +01:00
<label class="dialog-label flexrow">Discard Edge for Luck (ie force Trump) when clicking :
2021-02-16 23:01:42 +01:00
<span class="attribute-value checkbox"><input type="checkbox" name="edge-luck" id="edge-luck"/></span>
</label>
2021-02-09 23:32:55 +01:00
</div>
2021-02-16 23:01:42 +01:00
<div class="flexrow">
2021-02-09 23:32:55 +01:00
<span class="class-view-deck" id="view-deck"></span>
<span class="class-view-edge" id="view-edge"></span>
</div>
2021-02-16 23:01:42 +01:00
<div class="flexrow">
2021-02-17 20:45:52 +01:00
<label class="dialog-label"></label>
2021-02-09 23:32:55 +01:00
</div>
2021-01-21 17:16:01 +01:00
</section>
2021-01-24 23:18:50 +01:00
</form>