fvtt-pegasus-rpg/templates/roll-dialog-generic.html

108 lines
3.4 KiB
HTML
Raw Normal View History

2022-01-13 16:13:00 +01:00
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{/if}}
2022-07-10 10:22:04 +02:00
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
2022-01-13 16:13:00 +01:00
</header>
2022-01-28 10:05:54 +01:00
<div class="grid grid-2col">
2022-01-13 16:13:00 +01:00
2022-01-28 10:05:54 +01:00
<div class="flexcol">
2022-01-13 16:13:00 +01:00
2022-07-13 22:47:07 +02:00
{{#if isGeneric}}
{{else}}
2022-01-28 10:05:54 +01:00
<div class="flexrow">
2022-08-24 20:24:22 +02:00
<span class="roll-dialog-label">Stat Dice ({{stat.label}}) : </span>
2022-07-10 10:22:04 +02:00
<select class="roll-dialog-label" id="statDicesLevel" type="text" name="statDicesLevel"
value="{{statDicesLevel}}" data-dtype="Number" {{#if statKey}}disabled{{/if}}>
2022-01-28 10:05:54 +01:00
{{#select statDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
2022-07-10 10:22:04 +02:00
</select>
2022-01-28 10:05:54 +01:00
<span class="small-label">&nbsp;+&nbsp;{{statMod}}</span>
</div>
2022-07-10 10:22:04 +02:00
2022-07-13 22:47:07 +02:00
{{#if specList}}
<div class="flexrow">
<span class="roll-dialog-label">Spec : </span>
<select class="roll-dialog-label" id="specList" type="text" name="selectedSpec" value="{{selectedSpec}}"
data-dtype="String">
{{#select selectedSpec}}
<option value="0">None</option>
{{#each specList as |spec idx|}}
<option value="{{spec._id}}">{{spec.name}}</option>
{{/each}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
2022-07-21 22:52:17 +02:00
<div class="flexrow">
<span class="roll-dialog-label">Spec Dice : </span>
<select class="roll-dialog-label" id="specDicesLevel" type="text" name="specDicesLevel"
value="{{specDicesLevel}}" data-dtype="Number" {{#if specList}}disabled{{/if}}>
{{#select specDicesLevel}}
{{{optionsDiceList}}}
{{/select}}
</select>
<span class="small-label">&nbsp;</span>
</div>
2022-07-13 22:47:07 +02:00
{{/if}}
2022-03-06 20:07:41 +01:00
2022-07-13 22:47:07 +02:00
{{/if}}
2022-07-10 10:22:04 +02:00
2022-07-19 20:51:48 +02:00
<!--
2022-07-13 22:47:07 +02:00
{{#if isDamage}}
2022-01-28 10:05:54 +01:00
<div class="flexrow">
2022-07-10 10:22:04 +02:00
<span class="roll-dialog-label">Weapon Damage :</span>
2022-07-13 22:47:07 +02:00
<select class="roll-dialog-label" id="damageDiceLevel" type="text" name="damageDiceLevel"
value="{{damageDiceLevel}}" data-dtype="Number">
{{#select damageDiceLevel}}
2022-01-28 10:05:54 +01:00
{{{optionsDiceList}}}
{{/select}}
2022-07-10 10:22:04 +02:00
</select>
2022-01-28 10:05:54 +01:00
<span class="small-label">&nbsp;</span>
</div>
2022-07-13 22:47:07 +02:00
{{/if}}
2022-07-19 20:51:48 +02:00
-->
2022-07-10 10:22:04 +02:00
<div class="dice-pool-div">
<span>
<h3 class="dice-pool-label">Current pool</h3>
</span>
<div class="flexrow dice-pool-stack">
{{#each dicePool as |dice idx|}}
2022-07-19 00:18:46 +02:00
<span><a class="pool-remove-dice" data-dice-idx="{{idx}}" data-dice-level="{{dice.level}}" data-dice-key="{{dice.key}}"><img class="dice-pool-image"
2022-07-10 10:22:04 +02:00
src="{{dice.img}}"></a></span>
{{/each}}
2022-01-28 10:05:54 +01:00
</div>
2022-07-10 10:22:04 +02:00
</div>
2022-08-14 15:27:54 +02:00
{{#if noBonusDice}}
<div class="flexrow">
No bonus dice due to effect !
</div>
{{else}}
<div class="flexrow">
{{#each diceList as |dice idx|}}
<span><a class="pool-add-dice" data-dice-key="{{dice.key}}" data-dice-level="{{dice.level}}"><img class="dice-pool-image"
src="{{dice.img}}"></a></span>
{{/each}}
</div>
{{/if}}
2022-07-10 10:22:04 +02:00
2022-01-13 16:13:00 +01:00
</div>
2022-01-28 10:05:54 +01:00
<div>
2022-08-14 15:27:54 +02:00
{{#if isChatRoll}}
{{else}}
2022-01-28 10:05:54 +01:00
{{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}}
2022-08-14 15:27:54 +02:00
{{/if}}
2022-01-28 10:05:54 +01:00
</div>
2022-01-13 16:13:00 +01:00
</div>
2022-07-10 10:22:04 +02:00
</form>