Refactor the sections of the PC sheet into their own partials for ease of reading, and localize the Aspect block labels

This commit is contained in:
Oliver-Akins 2023-12-28 22:55:49 -07:00
parent be197617cc
commit fae962dc7e
13 changed files with 350 additions and 318 deletions

View file

@ -0,0 +1,37 @@
{{#> dotdungeon.panel class="aspect" title="dotdungeon.actor.pc.panel.aspect"}}
<input
type="text"
class="aspect__name--input"
name="system.aspect.name"
placeholder="{{localize "dotdungeon.actor.pc.aspect.name.placeholder"}}"
value="{{system.aspect.name}}"
>
<label class="aspect__used--label">
{{localize "dotdungeon.actor.pc.aspect.used"}}
<input
type="checkbox"
class="aspect__used--input"
name="system.aspect.used"
{{checked system.aspect.used}}
>
</label>
<label class="aspect__duration--label">
{{localize "dotdungeon.actor.pc.aspect.duration"}}
{{#if system.aspect.deactivateAfter}}
<span class="friendly-duration aspect__duration--friendly">
({{dotdungeon-toFriendlyDuration system.aspect.deactivateAfter}})
</span>
{{/if}}
<input
type="number"
class="aspect__duration--input"
name="system.aspect.deactivateAfter"
value="{{system.aspect.deactivateAfter}}"
>
</label>
<textarea
class="aspect__description--input"
name="system.aspect.description"
placeholder="{{localize "dotdungeon.actor.pc.aspect.description.placeholder"}}"
>{{system.aspect.description}}</textarea>
{{/ dotdungeon.panel}}