enhance armor and weapon sheet

This commit is contained in:
moliloo 2025-05-27 21:49:28 -03:00
parent c4a03b2d54
commit ef4652ab1a
20 changed files with 367 additions and 378 deletions

View file

@ -1,42 +0,0 @@
<div>
<header class="flexcol">
<div class="title-container">
<img class="flex0" src="{{document.img}}" data-edit="img" data-action="onEditImage" title="{{document.name}}" height="64" width="64"/>
<div class="title-name">
{{formInput fields.name value=source.name rootId=partId}}
</div>
</div>
</header>
<section class="sheet-body">
{{formField systemFields.baseScore value=source.system.baseScore label=(localize "DAGGERHEART.Sheets.Armor.BaseScore") }}
{{formField systemFields.feature value=source.system.feature label=(localize "DAGGERHEART.Sheets.Armor.Feature") localize=true blank=""}}
<div class="armor-thresholds">
<h2>{{localize "DAGGERHEART.Sheets.Armor.BaseThresholds.Base"}}</h2>
{{ formField systemFields.baseThresholds.fields.major value=source.system.baseThresholds.major label=(localize "DAGGERHEART.Sheets.Armor.BaseThresholds.Major") }}/
{{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.Sheets.Armor.BaseThresholds.Severe") }}
</div>
<div class="feature-description">
<h2>{{localize "DAGGERHEART.Sheets.Armor.Description"}}</h2>
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
</div>
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Armor.BaseScore"}}</label>
<div class="form-fields">
<input type="text" name="system.baseScore" value={{item.system.baseScore}} data-dtype="Number" />
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Armor.Feature"}}</label>
<div class="form-fields">
<select name="system.feature">
{{selectOptions config.ITEM.armorFeatures selected=item.system.feature labelAttr="name" localize=true blank="" }}
</select>
</div>
</div>
<div class="feature-description">
<h2>{{localize "DAGGERHEART.Sheets.Armor.Description"}}</h2>
{{editor item.system.description target="system.description" button=true}}
</div> --}}
</section>
</div>

View file

@ -80,13 +80,13 @@
</legend>
<div class="form-group flexrow">
<label>{{localize "DAGGERHEART.Abilities.Agility.Name"}}</label>
<label>{{localize "DAGGERHEART.Abilities.agility.name"}}</label>
<div class="form-fields flex0 trait-input">
<input type="text" name="system.characterGuide.suggestedTraits.agility" value="{{source.system.characterGuide.suggestedTraits.agility}}" />
</div>
</div>
<div class="form-group flexrow">
<label>{{localize "DAGGERHEART.Abilities.Strength.Name"}}</label>
<label>{{localize "DAGGERHEART.Abilities.strength.Name"}}</label>
<div class="form-fields flex0 trait-input">
<input type="text" name="system.characterGuide.suggestedTraits.strength" value="{{source.system.characterGuide.suggestedTraits.strength}}" />
</div>

View file

@ -0,0 +1,21 @@
<header class='item-sheet-header'>
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class='item-info'>
<line-div></line-div>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
<h3>
{{localize 'TYPES.Item.armor'}}
</h3>
<h3>
{{localize "DAGGERHEART.Sheets.Armor.baseScore"}}:
{{source.system.baseScore}}
<span>-</span>
{{localize "DAGGERHEART.Sheets.Armor.baseThresholds.base"}}:
{{source.system.baseThresholds.major}}
<span>/</span>
{{source.system.baseThresholds.severe}}
</h3>
</div>
</div>
</header>

View file

@ -0,0 +1,21 @@
<section
class='tab {{tabs.settings.cssClass}} {{tabs.settings.id}}'
data-tab='{{tabs.settings.id}}'
data-group='{{tabs.settings.group}}'
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Armor.baseScore"}}</span>
{{formField systemFields.baseScore value=source.system.baseScore}}
<span>{{localize "DAGGERHEART.Sheets.Armor.feature"}}</span>
{{formField systemFields.feature value=source.system.feature localize=true blank=""}}
<span>{{localize "DAGGERHEART.Sheets.Armor.baseThresholds.base"}}</span>
<div class="nest-inputs">
{{ formField systemFields.baseThresholds.fields.major value=source.system.baseThresholds.major label=(localize "DAGGERHEART.Sheets.Armor.baseThresholds.major") }}
{{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.Sheets.Armor.baseThresholds.severe") }}
</div>
</fieldset>
</section>

View file

@ -0,0 +1,24 @@
<header class='item-sheet-header'>
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class='item-info'>
<line-div></line-div>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
{{#if source.system.secondary}}
<h3>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</h3>
{{else}}
<h3>{{localize "DAGGERHEART.Sheets.Weapon.PrimaryWeapon"}}</h3>
{{/if}}
<h3>
{{localize (concat 'DAGGERHEART.Abilities.' source.system.trait '.short')}}
<span>-</span>
{{localize (concat 'DAGGERHEART.Range.' source.system.range '.name')}}
<span>-</span>
{{source.system.damage.value}}
({{localize (concat 'DAGGERHEART.DamageType.' source.system.damage.type '.abbreviation')}})
<span>-</span>
{{localize (concat 'DAGGERHEART.Burden.' source.system.burden)}}
</h3>
</div>
</div>
</header>

View file

@ -0,0 +1,30 @@
<section
class='tab {{tabs.settings.cssClass}} {{tabs.settings.id}}'
data-tab='{{tabs.settings.id}}'
data-group='{{tabs.settings.group}}'
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</span>
{{formField systemFields.secondary value=source.system.secondary}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Trait"}}</span>
{{formField systemFields.trait value=source.system.trait localize=true}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Range"}}</span>
{{formField systemFields.range value=source.system.range localize=true}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Burden"}}</span>
{{formField systemFields.burden value=source.system.burden localize=true}}
</fieldset>
<fieldset class="two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Value"}}</span>
{{formGroup systemFields.damage.fields.value value=source.system.damage.value}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Type"}}</span>
{{formGroup systemFields.damage.fields.type value=source.system.damage.type localize=true}}
</fieldset>
<fieldset class="two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</span>
{{formField systemFields.feature value=source.system.feature localize=true}}
</fieldset>
</section>

View file

@ -1,86 +0,0 @@
<div>
<header class="flexcol">
{{!-- <div class="flexrow">
<img class="flex0" src="{{item.img}}" data-edit="img" title="{{item.name}}" height="64" width="64"/>
<div class="title-name">
<h2><input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'Name' }}"/></h2>
</div>
</div> --}}
<div class="title-container">
<img class="flex0" src="{{document.img}}" data-edit="img" data-action="onEditImage" title="{{document.name}}" height="64" width="64"/>
<div class="title-name">
{{formInput fields.name value=source.name rootId=partId}}
</div>
</div>
</header>
<section class="sheet-body">
{{formField systemFields.secondary value=source.system.secondary label=(localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon") }}
{{formField systemFields.trait value=source.system.trait label=(localize "DAGGERHEART.Sheets.Weapon.Trait") localize=true }}
{{formField systemFields.range value=source.system.range label=(localize "DAGGERHEART.Sheets.Weapon.Range") localize=true }}
<div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</label>
<div class="form-fields">
{{formGroup systemFields.damage.fields.value value=source.system.damage.value label=(localize "DAGGERHEART.Sheets.Weapon.Damage.Value") }}
{{formGroup systemFields.damage.fields.type value=source.system.damage.type label=(localize "DAGGERHEART.Sheets.Weapon.Damage.Type") localize=true }}
</div>
</div>
{{formField systemFields.burden value=source.system.burden label=(localize "DAGGERHEART.Sheets.Weapon.Burden") localize=true }}
{{formField systemFields.feature value=source.system.feature label=(localize "DAGGERHEART.Sheets.Weapon.Feature") localize=true }}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</label>
<div class="form-fields">
<input type="checkbox" name="system.secondary" {{checked item.system.secondary}} />
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Trait"}}</label>
<div class="form-fields">
<select name="system.trait">
{{selectOptions config.ACTOR.abilities selected=item.system.trait labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Range"}}</label>
<div class="form-fields">
<select name="system.range">
{{selectOptions config.GENERAL.range selected=item.system.range labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</label>
<div class="form-fields">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Value"}}</label>
<input type="text" name="system.damage.value" value="{{item.system.damage.value}}" />
<label>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Type"}}</label>
<select name="system.damage.type">
{{selectOptions config.GENERAL.damageTypes selected=item.system.damage.type labelAttr="name" localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Burden"}}</label>
<div class="form-fields">
<select name="system.burden">
{{selectOptions config.GENERAL.burden selected=item.system.burden localize=true }}
</select>
</div>
</div> --}}
{{!-- <div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</label>
<div class="form-fields">
<select name="system.feature">
{{selectOptions config.ITEM.weaponFeatures selected=item.system.feature labelAttr="name" localize=true blank="" }}
</select>
</div>
</div> --}}
<div class="feature-description">
<h2>{{localize "DAGGERHEART.Sheets.Weapon.Description"}}</h2>
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
</div>
</section>
</div>