Design/action settings dialog style (#274)

* Action Setting Dialog style

* fix small style details in action config application

* requested changes

---------

Co-authored-by: moliloo <dev.murilobrito@gmail.com>
This commit is contained in:
Dapoulp 2025-07-05 22:45:08 +02:00 committed by GitHub
parent e9ad9c539a
commit 608920c193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 308 additions and 225 deletions

View file

@ -0,0 +1,17 @@
<section
class="tab {{this.tabs.base.cssClass}}"
data-group="primary"
data-tab="base"
>
<fieldset class="one-column">
<legend>Identity</legend>
{{formField fields.name value=source.name label="Name" name="name"}}
{{formField fields.img value=source.img label="Icon" name="img"}}
{{formField fields.actionType value=source.actionType label="Type" name="actionType" localize=true}}
{{formField fields.chatDisplay value=source.chatDisplay name="chatDisplay" classes="checkbox"}}
</fieldset>
<fieldset class="action-category">
<legend>Description</legend>
{{formInput fields.description value=source.description name="description" }}
</fieldset>
</section>

View file

@ -0,0 +1,9 @@
<section
class="tab {{this.tabs.config.cssClass}}"
data-group="primary"
data-tab="config"
>
{{> 'systems/daggerheart/templates/actionTypes/uses.hbs' fields=fields.uses.fields source=source.uses}}
{{> 'systems/daggerheart/templates/actionTypes/cost.hbs' fields=fields.cost.element.fields source=source.cost}}
{{> 'systems/daggerheart/templates/actionTypes/range-target.hbs' fields=(object range=fields.range target=fields.target.fields) source=(object target=source.target range=source.range)}}
</section>

View file

@ -0,0 +1,14 @@
<section
class="tab {{this.tabs.effect.cssClass}}"
data-group="primary"
data-tab="effect"
>
{{#if fields.roll}}{{> 'systems/daggerheart/templates/actionTypes/roll.hbs' fields=fields.roll.fields source=source.roll}}{{/if}}
{{#if fields.save}}{{> 'systems/daggerheart/templates/actionTypes/save.hbs' fields=fields.save.fields source=source.save}}{{/if}}
{{#if fields.damage}}{{> 'systems/daggerheart/templates/actionTypes/damage.hbs' fields=fields.damage.fields.parts.element.fields source=source.damage}}{{/if}}
{{#if fields.healing}}{{> 'systems/daggerheart/templates/actionTypes/healing.hbs' fields=fields.healing.fields source=source.healing}}{{/if}}
{{#if fields.resource}}{{> 'systems/daggerheart/templates/actionTypes/resource.hbs' fields=fields.resource.fields source=source.resource}}{{/if}}
{{#if fields.documentUUID}}{{> 'systems/daggerheart/templates/actionTypes/uuid.hbs' fields=fields.documentUUID source=source.documentUUID}}{{/if}}
{{#if fields.effects}}{{> 'systems/daggerheart/templates/actionTypes/effect.hbs' fields=fields.effects.element.fields source=source.effects}}{{/if}}
{{#if fields.beastform}}{{> 'systems/daggerheart/templates/actionTypes/beastform.hbs' fields=fields.effects.element.fields source=source.beastform}}{{/if}}
</section>

View file

@ -0,0 +1,3 @@
<header class="dialog-header">
<h1>{{source.name}}</h1>
</header>