Attempt to add HUD core
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
</div>
|
||||
<div class="intro-right">
|
||||
<ul>
|
||||
<li><strong>{{actingCharName}}</strong></li>
|
||||
{{#if (eq rollType "char")}}
|
||||
<li><strong>{{localize "CTHULHUETERNAL.Label.charRoll"}}</strong></li>
|
||||
{{/if}}
|
||||
@@ -66,6 +67,7 @@
|
||||
<li>{{localize "CTHULHUETERNAL.Label.targetScore"}}
|
||||
:
|
||||
{{targetScore}}%</li>
|
||||
|
||||
{{#if isSuccess}}
|
||||
{{#if isCritical}}
|
||||
<li class="result-critical-success">{{localize
|
||||
@@ -75,70 +77,8 @@
|
||||
{{else}}
|
||||
<li class="result-success">
|
||||
{{localize "CTHULHUETERNAL.Label.success"}}
|
||||
{{#if isNudge}}
|
||||
<a
|
||||
class="nudge-roll"
|
||||
data-tooltip="{{localize ' CTHULHUETERNAL.Label.rollNudge'}}"
|
||||
><i class="fa-solid fa-circle-sort-down"></i></a>
|
||||
{{/if}}
|
||||
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if (eq rollType "weapon")}}
|
||||
<li>
|
||||
{{#if (eq weapon.system.weaponType "rangedfirearm")}}
|
||||
{{#if weapon.system.hasDamageDistance}}
|
||||
{{#each weapon.system.damageDistance as |damageDistance|}}
|
||||
{{#if (gt damageDistance.distance 0)}}
|
||||
<a
|
||||
class="damage-roll"
|
||||
data-item-id="{{weapon.id}}"
|
||||
data-action="roll"
|
||||
data-roll-type="damage"
|
||||
data-roll-value="{{damageDistance.damage}}"
|
||||
>
|
||||
<i class="fa-solid fa-gun"></i>
|
||||
<span
|
||||
class="damage-distance"
|
||||
>{{damageDistance.distance}}:{{damageDistance.damage}} </span>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<a
|
||||
class="damage-roll"
|
||||
data-roll-value="{{weapon.system.damage}}"
|
||||
data-tooltip="{{localize
|
||||
'
|
||||
CTHULHUETERNAL.Label.rollDamage'
|
||||
}}"
|
||||
><i class="fa-solid fa-gun"></i></a>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<a
|
||||
class="damage-roll"
|
||||
data-roll-value="{{weapon.system.damage}}"
|
||||
data-tooltip="{{localize
|
||||
'
|
||||
CTHULHUETERNAL.Label.rollDamage'
|
||||
}}"
|
||||
><i class="fa-solid fa-sword"></i></a>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if (eq rollType "skill")}}
|
||||
{{#if rollItem.system.isHealing}}
|
||||
<li>
|
||||
<a
|
||||
class="healing-roll"
|
||||
data-tooltip="{{localize
|
||||
' CTHULHUETERNAL.Label.rollHealing'
|
||||
}}"
|
||||
><i class="fa-solid fa-heart"></i></a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#if isFailure}}
|
||||
@@ -152,19 +92,9 @@
|
||||
{{localize "CTHULHUETERNAL.Label.failure"}}
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if isNudge}}
|
||||
<li>
|
||||
<a
|
||||
class="nudge-roll"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollNudge'}}"
|
||||
><i class="fa-solid fa-circle-sort-down"></i></a>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#if isAttackRoll}}
|
||||
<!-- {{#if isAttackRoll}}
|
||||
{{#if defenseRoll}}
|
||||
<li>{{localize "CTHULHUETERNAL.Label.defenseRoll"}}</li>
|
||||
{{#if attackSuccess}}
|
||||
@@ -181,27 +111,18 @@
|
||||
<li class="orange-warning">{{localize
|
||||
"CTHULHUETERNAL.Label.noDefenseRoll"
|
||||
}}</li>
|
||||
<a
|
||||
class="opposed-roll"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.opposedRoll'}}"
|
||||
>
|
||||
<i class="fa-duotone fa-light fa-arrows-to-line"></i></a>
|
||||
{{else}}
|
||||
<li class="orange-warning">{{localize
|
||||
"CTHULHUETERNAL.Label.noTarget"
|
||||
}}</li>
|
||||
<a
|
||||
class="opposed-roll"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.opposedRoll'}}"
|
||||
>
|
||||
<i class="fa-duotone fa-light fa-arrows-to-line"></i></a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}} -->
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if isDamage}}
|
||||
<div>
|
||||
{{#if (and isGM hasTarget)}}
|
||||
@@ -221,4 +142,86 @@
|
||||
{{{tooltip}}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{! Zone d'actions regroupées }}
|
||||
<div class="chat-actions">
|
||||
{{#if isSuccess}}
|
||||
{{#if isNudge}}
|
||||
<a
|
||||
class="nudge-roll chat-action-button"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollNudge'}}"
|
||||
>
|
||||
<i class="fa-solid fa-circle-sort-down"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq rollType "weapon")}}
|
||||
{{#if (eq weapon.system.weaponType "rangedfirearm")}}
|
||||
{{#if weapon.system.hasDamageDistance}}
|
||||
{{#each weapon.system.damageDistance as |damageDistance|}}
|
||||
{{#if (gt damageDistance.distance 0)}}
|
||||
<a
|
||||
class="damage-roll chat-action-button"
|
||||
data-item-id="{{weapon.id}}"
|
||||
data-action="roll"
|
||||
data-roll-type="damage"
|
||||
data-roll-value="{{damageDistance.damage}}"
|
||||
data-tooltip="{{localize
|
||||
'CTHULHUETERNAL.Label.rollDamage'
|
||||
}} ({{damageDistance.distance}}m : {{damageDistance.damage}})"
|
||||
>
|
||||
<i class="fa-solid fa-gun"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<a
|
||||
class="damage-roll chat-action-button"
|
||||
data-roll-value="{{weapon.system.damage}}"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollDamage'}}"
|
||||
>
|
||||
<i class="fa-solid fa-gun"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<a
|
||||
class="damage-roll chat-action-button"
|
||||
data-roll-value="{{weapon.system.damage}}"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollDamage'}}"
|
||||
>
|
||||
<i class="fa-solid fa-sword"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq rollType "skill")}}
|
||||
{{#if rollItem.system.isHealing}}
|
||||
<a
|
||||
class="healing-roll chat-action-button"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollHealing'}}"
|
||||
>
|
||||
<i class="fa-solid fa-heart"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if isFailure}}
|
||||
{{#if isNudge}}
|
||||
<a
|
||||
class="nudge-roll chat-action-button"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.rollNudge'}}"
|
||||
>
|
||||
<i class="fa-solid fa-circle-sort-down"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<a
|
||||
class="opposed-roll chat-action-button"
|
||||
data-tooltip="{{localize 'CTHULHUETERNAL.Label.opposedRoll'}}"
|
||||
>
|
||||
<i class="fa-duotone fa-light fa-arrows-to-line"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user