mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
enhance class and subclass sheets
This commit is contained in:
parent
4de3e94fd7
commit
128178847b
22 changed files with 1225 additions and 1180 deletions
|
|
@ -1,289 +0,0 @@
|
|||
<div>
|
||||
<header class="flexcol">
|
||||
<div class="flexrow">
|
||||
<img class="flex0" src="{{source.img}}" data-edit="img" data-action="onEditImage" title="{{source.name}}" height="64" width="64"/>
|
||||
<div class="flexcol">
|
||||
<h2 style="margin-bottom: 4px; margin-left: 8px;"><input name="name" type="text" value="{{source.name}}" placeholder="{{ localize 'Name' }}"/></h2>
|
||||
{{!-- <nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="features" data-action="tabSwitch">{{localize "DAGGERHEART.Sheets.Class.Tabs.Features"}}</a>
|
||||
<a class="item" data-tab="guide">{{localize "DAGGERHEART.Sheets.Class.Tabs.Guide"}}</a>
|
||||
</nav> --}}
|
||||
<nav class="sheet-tabs tabs">
|
||||
{{#each tabs as |tab|}}
|
||||
<a class="{{tab.cssClass}}" data-action="tab" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<i class="{{tab.icon}}"></i>
|
||||
<label>{{localize tab.label}}</label>
|
||||
</a>
|
||||
{{/each}}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="sheet-body flexcol">
|
||||
<div class="tab features {{this.tabs.features.cssClass}}" data-group="primary" data-tab="features">
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Domains"}}</label>
|
||||
<div class="form-fields">
|
||||
<input class="domain-input" value="{{domains}}" />
|
||||
</div>
|
||||
</div>
|
||||
{{formField systemFields.evasion value=source.system.evasion label=(localize "DAGGERHEART.Sheets.Class.Evasion")}}
|
||||
{{!-- <div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Evasion"}}</label>
|
||||
<div class="form-fields">
|
||||
<input name="system.evasion" value="{{source.system.evasion}}" placeholder="Minor" type="text" data-dtype="Number" />
|
||||
</div>
|
||||
</div> --}}
|
||||
<div>
|
||||
<h2>{{localize "DAGGERHEART.Sheets.Class.ClassFeatures"}}</h2>
|
||||
<div>
|
||||
{{#each source.system.features as |feature index|}}
|
||||
<div class="feature-container">
|
||||
<div class="feature-inner-container">
|
||||
<img src="{{feature.img}}" />
|
||||
<div class="feature-title">{{feature.name}}</div>
|
||||
</div>
|
||||
<div class="subclass-inner-container">
|
||||
<button data-action="viewFeature" data-feature={{feature.uuid}}><i class="fa-solid fa-fw fa-search"></i></button>
|
||||
<button data-action="removeFeature" data-feature={{feature.uuid}}><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h2>{{localize "DAGGERHEART.Sheets.Class.Subclasses"}}</h2>
|
||||
<div>
|
||||
{{#each source.system.subclasses as |subclass index|}}
|
||||
<div class="feature-container">
|
||||
<div class="feature-inner-container">
|
||||
<img src="{{subclass.img}}" />
|
||||
<div class="feature-title">{{subclass.name}}</div>
|
||||
</div>
|
||||
<div class="subclass-inner-container">
|
||||
<button data-action="viewSubclass" data-subclass={{subclass.uuid}}><i class="fa-solid fa-fw fa-search"></i></button>
|
||||
<button data-action="removeSubclass" data-subclass={{subclass.uuid}}><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab guide {{this.tabs.guide.cssClass}}" data-group="primary" data-tab="guide">
|
||||
<div class="flexcol">
|
||||
<div class="guide-section flexrow flex1">
|
||||
<div class="flex-col-centered">
|
||||
<div class="guide-section-title-centered">{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Title"}}</div>
|
||||
<fieldset class="drop-section">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Traits.Title"}}
|
||||
</legend>
|
||||
|
||||
<div class="form-group flexrow">
|
||||
<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>
|
||||
<div class="form-fields flex0 trait-input">
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.strength" value="{{source.system.characterGuide.suggestedTraits.strength}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group flexrow">
|
||||
<label>{{localize "DAGGERHEART.Abilities.Finesse.Name"}}</label>
|
||||
<div class="form-fields flex0 trait-input">
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.finesse" value="{{source.system.characterGuide.suggestedTraits.finesse}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group flexrow">
|
||||
<label>{{localize "DAGGERHEART.Abilities.Instinct.Name"}}</label>
|
||||
<div class="form-fields flex0 trait-input">
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.instinct" value="{{source.system.characterGuide.suggestedTraits.instinct}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group flexrow">
|
||||
<label>{{localize "DAGGERHEART.Abilities.Presence.Name"}}</label>
|
||||
<div class="form-fields flex0 trait-input">
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.presence" value="{{source.system.characterGuide.suggestedTraits.presence}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group flexrow">
|
||||
<label>{{localize "DAGGERHEART.Abilities.Knowledge.Name"}}</label>
|
||||
<div class="form-fields flex0 trait-input">
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.knowledge" value="{{source.system.characterGuide.suggestedTraits.knowledge}}" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="drop-section primary-weapon-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedPrimaryWeaponTitle"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#if source.system.characterGuide.suggestedPrimaryWeapon}}
|
||||
<div data-action="viewItem" data-item="{{source.system.characterGuide.suggestedPrimaryWeapon.uuid}}" class="suggested-item suggested-primary-weapon">
|
||||
<img src="{{source.system.characterGuide.suggestedPrimaryWeapon.img}}" />
|
||||
<div>{{source.system.characterGuide.suggestedPrimaryWeapon.name}}</div>
|
||||
<i data-action="removePrimaryWeapon" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="drop-section secondary-weapon-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedSecondaryWeaponTitle"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#if source.system.characterGuide.suggestedSecondaryWeapon}}
|
||||
<div data-action="viewItem" data-item="{{source.system.characterGuide.suggestedSecondaryWeapon.uuid}}" class="suggested-item">
|
||||
<img src="{{source.system.characterGuide.suggestedSecondaryWeapon.img}}" />
|
||||
<div>{{source.system.characterGuide.suggestedSecondaryWeapon.name}}</div>
|
||||
<i data-action="removeSecondaryWeapon" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="drop-section armor-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedArmorTitle"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#if source.system.characterGuide.suggestedArmor}}
|
||||
<div data-action="viewItem" data-item="{{source.system.characterGuide.suggestedArmor.uuid}}" class="suggested-item">
|
||||
<img src="{{source.system.characterGuide.suggestedArmor.img}}" />
|
||||
<div>{{source.system.characterGuide.suggestedArmor.name}}</div>
|
||||
<i data-action="removeArmor" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="flex-col-centered">
|
||||
<div class="guide-section-title-centered">{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Title"}}</div>
|
||||
<fieldset class="drop-section take-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Take"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#each source.system.inventory.take}}
|
||||
<div data-action="viewItem" data-item="{{this.uuid}}" class="suggested-item">
|
||||
<img src="{{this.img}}" />
|
||||
<div>{{this.name}}</div>
|
||||
<i data-action="removeItem" data-type="take" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="drop-section choice-a-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.ThenChoose"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#each source.system.inventory.choiceA}}
|
||||
<div data-action="viewItem" data-item="{{this.uuid}}" class="suggested-item">
|
||||
<img src="{{this.img}}" />
|
||||
<div>{{this.name}}</div>
|
||||
<i data-action="removeItem" data-type="choiceA" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="drop-section choice-b-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.AndEither"}}
|
||||
</legend>
|
||||
|
||||
<div class="drop-section-body">
|
||||
{{#each source.system.inventory.choiceB}}
|
||||
<div data-action="viewItem" data-item="{{this.uuid}}" class="suggested-item">
|
||||
<img src="{{this.img}}" />
|
||||
<div>{{this.name}}</div>
|
||||
<i data-action="removeItem" data-type="choiceB" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="flex-col-centered">
|
||||
<div class="guide-section-title-centered">{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Title"}}</div>
|
||||
<div class="choice-a-section">
|
||||
<div class="inventory-title">{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Explanation"}}</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Clothes"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.characterGuide.characterDescription.clothes" value="{{source.system.characterGuide.characterDescription.clothes}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Eyes"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.characterGuide.characterDescription.eyes" value="{{source.system.characterGuide.characterDescription.eyes}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Body"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.characterGuide.characterDescription.body" value="{{source.system.characterGuide.characterDescription.body}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Color"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.characterGuide.characterDescription.color" value="{{source.system.characterGuide.characterDescription.color}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Class.Guide.Description.Attitude"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.characterGuide.characterDescription.attitude" value="{{source.system.characterGuide.characterDescription.attitude}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset class="drop-section">
|
||||
<legend class="levelup-legend">
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Extra.Title"}}
|
||||
</legend>
|
||||
|
||||
<div class="extra-section">
|
||||
<div class="extra-title">{{localize "DAGGERHEART.Sheets.Class.Guide.Extra.Subtitle"}}</div>
|
||||
<input class="extra-input" type="text" name="system.inventory.extra.title" value="{{source.system.inventory.extra.title}}" />
|
||||
<textarea name="system.inventory.extra.description">{{source.system.inventory.extra.description}}</textarea>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div class="guide-section flexrow flex2">
|
||||
<fieldset class="drop-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.BackgroundQuestions.Title"}}</legend>
|
||||
|
||||
<div class="flex-col-centered">
|
||||
{{#times 3}}
|
||||
<div class="guide-section-title-centered">{{localize "DAGGERHEART.Sheets.Class.Guide.BackgroundQuestions.Question"}} {{add this 1}}</div>
|
||||
<input type="text" name="system.characterGuide.backgroundQuestions.{{this}}" value="{{lookup ../source.system.characterGuide.backgroundQuestions this}}" />
|
||||
{{/times}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="drop-section">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.Class.Guide.Connections.Title"}}
|
||||
</legend>
|
||||
|
||||
<div class="flex-col-centered">
|
||||
{{#times 3}}
|
||||
<div class="guide-section-title-centered">{{localize "DAGGERHEART.Sheets.Class.Guide.Connections.Question"}} {{add this 1}}</div>
|
||||
<input type="text" name="system.characterGuide.connections.{{this}}" value="{{lookup ../source.system.characterGuide.connections this}}" />
|
||||
{{/times}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
49
templates/sheets/items/class/features.hbs
Normal file
49
templates/sheets/items/class/features.hbs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<section
|
||||
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||
data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'
|
||||
>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Feature.Tabs.Features"}}</legend>
|
||||
<div class="feature-list">
|
||||
{{#each source.system.features as |feature index|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' feature=feature}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "TYPES.Item.subclass"}}</legend>
|
||||
<div class="feature-list">
|
||||
{{#each source.system.subclasses as |subclass index|}}
|
||||
<li class='feature-item'>
|
||||
<div class='feature-line'>
|
||||
<img class='image' src='{{subclass.img}}' />
|
||||
<h4>
|
||||
{{subclass.name}}
|
||||
</h4>
|
||||
<div class='controls'>
|
||||
<a
|
||||
class='effect-control'
|
||||
data-action='viewSubclass'
|
||||
data-subclass={{subclass.uuid}}
|
||||
data-tooltip='{{localize "DAGGERHEART.Tooltip.openItemWorld"}}'
|
||||
>
|
||||
<i class="fa-solid fa-globe"></i>
|
||||
</a>
|
||||
<a
|
||||
class='effect-control'
|
||||
data-action='removeSubclass'
|
||||
data-subclass={{subclass.uuid}}
|
||||
data-tooltip='{{localize "DAGGERHEART.Tooltip.delete"}}'
|
||||
>
|
||||
<i class='fas fa-trash'></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
13
templates/sheets/items/class/header.hbs
Normal file
13
templates/sheets/items/class/header.hbs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<header class='item-sheet-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Item.class'}}</h3>
|
||||
<h3 class="form-fields domain-section">
|
||||
<span>{{localize "DAGGERHEART.Sheets.Class.Domains"}}</span>
|
||||
<input class="domain-input" value="{{domains}}" />
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
132
templates/sheets/items/class/settings.hbs
Normal file
132
templates/sheets/items/class/settings.hbs
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
<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.Class.Evasion"}}</span>
|
||||
{{formField systemFields.evasion value=source.system.evasion}}
|
||||
</fieldset>
|
||||
|
||||
<div class="fieldsets-section">
|
||||
<fieldset class="drop-section two-columns">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Traits.Title"}}</legend>
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.agility.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.agility" value="{{source.system.characterGuide.suggestedTraits.agility}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.strength.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.strength" value="{{source.system.characterGuide.suggestedTraits.strength}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.finesse.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.finesse" value="{{source.system.characterGuide.suggestedTraits.finesse}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.instinct.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.instinct" value="{{source.system.characterGuide.suggestedTraits.instinct}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.presence.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.presence" value="{{source.system.characterGuide.suggestedTraits.presence}}" />
|
||||
|
||||
<span>{{localize "DAGGERHEART.Abilities.knowledge.name"}}</span>
|
||||
<input type="text" name="system.characterGuide.suggestedTraits.knowledge" value="{{source.system.characterGuide.suggestedTraits.knowledge}}" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Title"}}</legend>
|
||||
<fieldset class="one-column drop-section primary-weapon-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedPrimaryWeaponTitle"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#if source.system.characterGuide.suggestedPrimaryWeapon}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{source.system.characterGuide.suggestedPrimaryWeapon.uuid}}">
|
||||
<img class="image" src="{{source.system.characterGuide.suggestedPrimaryWeapon.img}}" />
|
||||
<span>{{source.system.characterGuide.suggestedPrimaryWeapon.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removePrimaryWeapon" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column drop-section secondary-weapon-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedSecondaryWeaponTitle"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#if source.system.characterGuide.suggestedSecondaryWeapon}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{source.system.characterGuide.suggestedSecondaryWeapon.uuid}}">
|
||||
<img class="image" src="{{source.system.characterGuide.suggestedSecondaryWeapon.img}}" />
|
||||
<span>{{source.system.characterGuide.suggestedSecondaryWeapon.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removeSecondaryWeapon" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column drop-section armor-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedArmorTitle"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#if source.system.characterGuide.suggestedArmor}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{source.system.characterGuide.suggestedArmor.uuid}}">
|
||||
<img class="image" src="{{source.system.characterGuide.suggestedArmor.img}}" />
|
||||
<span>{{source.system.characterGuide.suggestedArmor.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removeArmor" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Title"}}</legend>
|
||||
<fieldset class="one-column drop-section take-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Take"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#each source.system.inventory.take}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{this.uuid}}">
|
||||
<img class="image" src="{{this.img}}" />
|
||||
<span>{{this.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removeItem" data-type="take" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column drop-section choice-a-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.ThenChoose"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#each source.system.inventory.choiceA}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{this.uuid}}">
|
||||
<img class="image" src="{{this.img}}" />
|
||||
<span>{{this.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removeItem" data-type="choiceA" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column drop-section choice-b-section">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.AndEither"}}</legend>
|
||||
<div class="drop-section-body list-items">
|
||||
{{#each source.system.inventory.choiceB}}
|
||||
<div class="suggested-item item-line" data-action="viewItem" data-item="{{this.uuid}}">
|
||||
<img class="image" src="{{this.img}}" />
|
||||
<span>{{this.name}}</span>
|
||||
<div class="controls">
|
||||
<i data-action="removeItem" data-type="choiceB" data-item="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</div>
|
||||
</section>
|
||||
26
templates/sheets/items/subclass/features.hbs
Normal file
26
templates/sheets/items/subclass/features.hbs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<section
|
||||
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||
data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'
|
||||
>
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Foundation"}}</legend>
|
||||
{{#each source.system.foundationFeature.abilities as |feature key|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' feature=feature}}
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Specialization"}}</legend>
|
||||
{{#each source.system.specializationFeature.abilities as |feature key|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' feature=feature}}
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Mastery"}}</legend>
|
||||
{{#each source.system.masteryFeature.abilities as |feature key|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' feature=feature}}
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
</section>
|
||||
10
templates/sheets/items/subclass/header.hbs
Normal file
10
templates/sheets/items/subclass/header.hbs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<header class='item-sheet-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Item.subclass'}}</h3>
|
||||
<h3>{{localize (concat 'DAGGERHEART.Abilities.' source.system.spellcastingTrait '.name')}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
12
templates/sheets/items/subclass/settings.hbs
Normal file
12
templates/sheets/items/subclass/settings.hbs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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.Subclass.SpellcastingTrait"}}</span>
|
||||
{{formField systemFields.spellcastingTrait value=source.system.spellcastingTrait localize=true}}
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
<div>
|
||||
<header class="flexcol">
|
||||
<div class="title-container">
|
||||
<img class="flex0" src="{{source.img}}" data-edit="img" data-action="onEditImage" title="{{source.name}}" height="64" width="64"/>
|
||||
<div class="title-name">
|
||||
{{formInput fields.name value=source.name rootId=partId}}
|
||||
</div>
|
||||
</div>
|
||||
<nav class="sheet-tabs tabs">
|
||||
{{#each tabs as |tab|}}
|
||||
<a class="{{tab.cssClass}}" data-action="tab" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<i class="{{tab.icon}}"></i>
|
||||
<label>{{localize tab.label}}</label>
|
||||
</a>
|
||||
{{/each}}
|
||||
</nav>
|
||||
</header>
|
||||
<div class="sheet-body">
|
||||
<div class="tab {{this.tabs.general.cssClass}}" data-group="primary" data-tab="general">
|
||||
{{formField systemFields.spellcastingTrait value=source.system.spellcastingTrait label=(localize "DAGGERHEART.Sheets.Subclass.SpellcastingTrait") localize=true}}
|
||||
{{!-- <div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Subclass.SpellcastingTrait"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="system.spellcastingTrait">
|
||||
{{selectOptions config.ACTOR.abilities selected=item.system.spellcastingTrait labelAttr="name" localize=true blank="" }}
|
||||
</select>
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="editor-form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Subclass.Description"}}</label>
|
||||
{{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>
|
||||
</div>
|
||||
<div class="tab foundation-tab {{this.tabs.foundation.cssClass}}" data-group="primary" data-tab="foundation">
|
||||
{{> "systems/daggerheart/templates/sheets/parts/subclassFeature.hbs" field=systemFields.foundationFeature.fields feature=source.system.foundationFeature featureType="foundation" }}
|
||||
</div>
|
||||
<div class="tab specialization-tab {{this.tabs.specialization.cssClass}}" data-group="primary" data-tab="specialization">
|
||||
{{> "systems/daggerheart/templates/sheets/parts/subclassFeature.hbs" field=systemFields.specializationFeature.fields feature=source.system.specializationFeature featureType="specialization" }}
|
||||
</div>
|
||||
<div class="tab mastery-tab {{this.tabs.mastery.cssClass}}" data-group="primary" data-tab="mastery">
|
||||
{{> "systems/daggerheart/templates/sheets/parts/subclassFeature.hbs" field=systemFields.masteryFeature.fields feature=source.system.masteryFeature featureType="mastery" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue