fvtt-dark-stars/templates/apps/roll-dialog-generic.hbs

64 lines
2.5 KiB
Handlebars

<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{/if}}
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="flexcol">
{{#if skill}}
<div class="flexrow">
<span class="roll-dialog-label">Skill : </span>
<span class="roll-dialog-label">{{skill.name}} ( {{skill.total}}% )</span>
</div>
{{/if}}
{{#if weapon}}
<div class="flexrow">
<span class="roll-dialog-label">Weapon : </span>
<span class="roll-dialog-label">{{weapon.name}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Above effective range ({{weapon.system.effectiverange}}, -30%) : </span>
<label class="attribute-value checkbox"><input type="checkbox" id="above-effective-range" {{checked isAboveEffectiveRange}}/></label>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Aiming : </span>
<select class="status-small-label color-class-common" type="text" id="weapon-aiming" value="{{weaponAiming}}" data-dtype="String" >
{{#select weaponAiming}}
<option value="none">None</option>
<option value="arm">Arm (-50)</option>
<option value="head">Head (-50)</option>
<option value="torso">Torso(-30)</option>
<option value="leg">Leg (-30)</option>
<option value="hand">Hand/Weapon (-70)</option>
{{/select}}
</select>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus : </span>
<select class="status-small-label color-class-common" type="text" id="bonusMalus" value="{{bonusMalus}}" data-dtype="Number" >
{{#select bonusMalus}}
<option value="-80">-80%</option>
<option value="-70">-70%</option>
<option value="-60">-60%</option>
<option value="-50">-50%</option>
<option value="-40">-40%</option>
<option value="-30">-30%</option>
<option value="-20">-20%</option>
<option value="-10">-10%</option>
<option value="0">0%</option>
<option value="+10">+10%</option>
<option value="+20">+20%</option>
<option value="+30">+30%</option>
<option value="+40">+40%</option>
{{/select}}
</select>
</div>
</div>
</form>