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,43 @@
{{#> dotdungeon.panel class="profile" title="dotdungeon.actor.pc.panel.profile"}}
{{#if settings.showAvatarOnSheet}}
<img
class="avatar"
src="{{actor.img}}"
data-edit="img"
title="{{actor.name}}"
/>
{{else}}
<label>
{{localize "dotdungeon.actor.pc.profile.avatar.label"}}
{{filePicker type="avatar" target="img"}}
</label>
{{/if}}
{{#if settings.devMode}}
<div class="debug-data">
Image URL: {{actor.img}}
</div>
{{/if}}
<label>
{{localize "dotdungeon.actor.pc.profile.name.label"}}
<input
type="text"
name="name"
value="{{actor.name}}"
placeholder="{{localize "dotdungeon.actor.pc.profile.name.placeholder"}}"
>
</label>
{{#if computed.canChangeGroup}}
<label>
{{localize "dotdungeon.actor.pc.profile.group.label"}}
{{#unless settings.playersCanChangeGroup}}
<span>{{localize "dotdungeon.actor.pc.profile.group.gm-edit"}}</span>
{{/unless}}
<input
type="text"
name="system.group"
value="{{system.group}}"
placeholder="{{localize "dotdungeon.actor.pc.profile.group.placeholder"}}"
>
</label>
{{/if}}
{{/ dotdungeon.panel}}