add spell item dropin for spell based triggers and actions
This commit is contained in:
Executable → Regular
+31
-4
@@ -92,7 +92,19 @@
|
||||
<div>
|
||||
<strong>{{activeTrigger.label}}</strong>
|
||||
<code>{{selectedReaction.trigger.type}}</code>
|
||||
{{#if triggerSpellName}}
|
||||
<span class="cr-spell-chip"><i class="fa-solid fa-book-sparkles"></i> {{triggerSpellName}}</span>
|
||||
{{else}}
|
||||
{{#if activeTriggerAcceptsSpell}}
|
||||
<small class="cr-inline-drop">{{localize "CONFIGURABLE_REACTIONS.Builder.DropSpellOnTrigger"}}</small>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if triggerSpellName}}
|
||||
<button type="button" data-action="clearTriggerSpell" title="{{localize 'CONFIGURABLE_REACTIONS.Common.Remove'}}">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<p class="cr-empty-drop">{{localize "CONFIGURABLE_REACTIONS.Builder.DropTriggerHere"}}</p>
|
||||
@@ -101,19 +113,34 @@
|
||||
|
||||
<div class="cr-drop-card" data-cr-drop="actions">
|
||||
<h3><i class="fa-solid fa-list-check"></i> {{localize "CONFIGURABLE_REACTIONS.Builder.ActionArea"}}</h3>
|
||||
<p class="notes">{{localize "CONFIGURABLE_REACTIONS.Builder.DropSpellCreatesAction"}}</p>
|
||||
{{#if visualActions.length}}
|
||||
<ol class="cr-action-flow">
|
||||
{{#each visualActions}}
|
||||
<li class="cr-flow-node cr-action-node" data-cr-drag="existingAction" data-action-index="{{this.index}}">
|
||||
<li class="cr-flow-node cr-action-node" data-cr-drag="existingAction" data-action-index="{{this.index}}" {{#if this.isSpellAction}}data-cr-drop="action-spell"{{/if}}>
|
||||
<i class="{{this.icon}}"></i>
|
||||
<div>
|
||||
<strong>{{this.label}}</strong>
|
||||
<small>{{this.summary}}</small>
|
||||
<code>{{this.type}}</code>
|
||||
{{#if this.isSpellAction}}
|
||||
{{#if this.spellName}}
|
||||
<span class="cr-spell-chip"><i class="fa-solid fa-book-sparkles"></i> {{this.spellName}}</span>
|
||||
{{else}}
|
||||
<small class="cr-inline-drop">{{localize "CONFIGURABLE_REACTIONS.Builder.DropSpellOnAction"}}</small>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="cr-action-buttons">
|
||||
{{#if this.spellName}}
|
||||
<button type="button" data-action="clearActionSpell" data-action-index="{{this.index}}" title="{{localize 'CONFIGURABLE_REACTIONS.Common.Remove'}}">
|
||||
<i class="fa-solid fa-book-xmark"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="removeAction" data-action-index="{{this.index}}" title="{{localize 'CONFIGURABLE_REACTIONS.Common.Remove'}}">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
</div>
|
||||
<button type="button" data-action="removeAction" data-action-index="{{this.index}}" title="{{localize 'CONFIGURABLE_REACTIONS.Common.Remove'}}">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
Reference in New Issue
Block a user