mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
* Schema definition for DHSummonAction * Will reimplement * HBS idea formed. Need to recheck drag drop implementation * Tried to refine drag drop * drag drop implemented (css tbd) * phase 1 complete * tbd work on summon action type * Improved Schema and now it works * . * Dialog created. Tokens not dragged(tbd). * Bare minimum implementation * Finalized functionality * Cleanup * . * Added optional summon render to chat message * Updated SRD * bugfix: fix title lines not rendering in chat messages * Added summon actions to the easily doable environments in the SRD * Update module/data/fields/action/summonField.mjs Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> --------- Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com> Co-authored-by: Murilo Brito <dev.murilobrito@gmail.com> Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
50 lines
No EOL
2.1 KiB
Handlebars
50 lines
No EOL
2.1 KiB
Handlebars
<fieldset class="one-column" id="summon-drop-zone" data-key="summon">
|
|
<legend>
|
|
{{localize "DAGGERHEART.ACTIONS.TYPES.summon.name"}}
|
|
</legend>
|
|
|
|
<ul class="actor-summon-items">
|
|
{{#each @root.summons as |summon index|}}
|
|
<li class="actor-summon-line">
|
|
<div class="actor-summon-name">
|
|
<img class="image" src="{{summon.actor.img}}" />
|
|
<h4 class="h4">
|
|
{{summon.actor.name}}
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="actor-summon-controls">
|
|
<div class="form-group summon-count-wrapper" data-index="{{index}}">
|
|
<div class="form-fields">
|
|
<input type="text" value="{{summon.count}}" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="controls">
|
|
<a
|
|
class='effect-control'
|
|
data-action='editDoc'
|
|
data-item-uuid="{{summon.actor.uuid}}"
|
|
data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openItemWorld"}}'
|
|
>
|
|
<i class="fa-solid fa-globe"></i>
|
|
</a>
|
|
<a
|
|
class='effect-control'
|
|
data-action='removeElement'
|
|
data-target="summon"
|
|
data-uuid="{{summon.actor.uuid}}"
|
|
data-index="{{index}}"
|
|
data-tooltip='{{localize "CONTROLS.CommonDelete"}}'
|
|
>
|
|
<i class='fas fa-trash'></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
<div class="summon-dragger">
|
|
<span>{{localize "DAGGERHEART.ACTIONS.Settings.summon.dropSummonsHere"}}</span>
|
|
</div>
|
|
</ul>
|
|
</fieldset> |