Create PlayerSheet

This commit is contained in:
Oliver-Akins 2025-06-29 00:47:05 -06:00
parent e0578d425d
commit e224f819a3
11 changed files with 252 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{{#if hasAttributes}}
<div class="attributes">
{{#each attrs as | attr |}}
<fieldset>
<legend>
{{ attr.name }}
</legend>
<div class="attr-range">
<input
type="number"
class="attr-range__value"
name="{{attr.path}}.value"
value="{{attr.value}}"
aria-label="Current value"
>
{{#if attr.isRange}}
<span aria-hidden="true">/</span>
<input
type="number"
class="attr-range__max"
name="{{attr.path}}.max"
value="{{attr.max}}"
aria-label="Maximum value"
>
{{/if}}
</div>
</fieldset>
{{/each}}
</div>
{{else}}
<template />
{{/if}}

View file

@ -0,0 +1,16 @@
<div class="content">
{{log this}}
{{#if editable}}
<prose-mirror
class="actor-text"
name="system.content"
value="{{system.content}}"
collaborate="true"
data-document-uuid="{{actor.uuid}}"
>
{{{ enriched.system.content }}}
</prose-mirror>
{{else}}
{{{ enriched.system.content }}}
{{/if}}
</div>

View file

@ -0,0 +1,16 @@
<header class="sheet-header">
<img
src="{{actor.img}}"
data-action="editImage"
title="{{actor.name}}"
height="64"
width="64"
/>
<input
type="text"
name="name"
class="large"
value="{{actor.name}}"
placeholder="{{ localize 'Name' }}"
/>
</header>