.dungeon/templates/actors/char-sheet-mvp/sheet.hbs
2023-12-18 23:22:15 -07:00

161 lines
No EOL
4 KiB
Handlebars

<form autocomplete="off" class="actor--pc">
{{#> 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>
<label>
{{localize "dotdungeon.actor.pc.profile.group.label"}}
<input
type="text"
name="system.group"
value="{{system.group}}"
placeholder="{{localize "dotdungeon.actor.pc.profile.group.placeholder"}}"
>
</label>
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="stats" title="dotdungeon.actor.pc.panel.statistics"}}
{{#each system.stats }}
{{> dotdungeon.stat name=@key value=this}}
{{/each}}
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="skills" title="dotdungeon.actor.pc.panel.skills"}}
{{#each system.skills as |skills|}}
<div class="skill-group">
<h3 class="skill-group__label">{{localize (concat "dotdungeon.actor.pc.skills." @key)}}</h3>
{{#each skills as |skill|}}
{{> dotdungeon.skill system=../../system stat=@../key name=@key value=skill}}
{{/each}}
</div>
{{/each}}
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="backpack" title="dotdungeon.actor.pc.panel.backpack"}}
Backpacks
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="sync" title="dotdungeon.actor.pc.panel.sync"}}
<div class="sync">
<h3 class="sync__header">
Sync
{{#if settings.devMode}}
<span class="debug-data">
({{system.syncDelta}})
</span>
{{/if}}
</h3>
{{!-- <input
type="number"
class="sync__input"
value="{{computed.syncTotal}}"
> --}}
</div>
<div class="respawns">
<h3 class="respawns__header">{{localize "dotdungeon.actor.pc.respawns.header"}}</h3>
{{#each system.respawns}}
<input
type="checkbox"
class="respawns__input"
name="system.respawns.{{@key}}"
{{checked this}}
>
{{/each}}
</div>
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="aspect" title="dotdungeon.actor.pc.panel.aspect"}}
<input
type="text"
class="aspect__name--input"
name="system.aspect.name"
value="{{system.aspect.name}}"
>
<label class="aspect__used--label">
Used
<input
type="checkbox"
class="aspect__used--input"
name="system.aspect.used"
{{checked system.aspect.used}}
>
</label>
<label class="aspect__duration--label">
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"
>{{system.aspect.description}}</textarea>
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="weapons" title="dotdungeon.actor.pc.panel.weapons"}}
Weapons
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="spells" title="dotdungeon.actor.pc.panel.spells"}}
Spells
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="roles" title="dotdungeon.actor.pc.panel.roles"}}
Roles
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="mounts" title="dotdungeon.actor.pc.panel.mounts"}}
Mounts
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="summons" title="dotdungeon.actor.pc.panel.summons"}}
Summons
{{/ dotdungeon.panel}}
{{#> dotdungeon.panel class="storage" title="dotdungeon.actor.pc.panel.storage"}}
Storage
{{/ dotdungeon.panel}}
</form>