refactor: resturcture files so that lincensing info can be bundled properly
This commit is contained in:
parent
699ba74840
commit
1aa284311f
484 changed files with 119 additions and 179 deletions
22
templates/sheets/item/components/effect-list-entry.hbs
Normal file
22
templates/sheets/item/components/effect-list-entry.hbs
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
{{!--
|
||||
!-- Render an effect list entry row.
|
||||
!-- @param effectData: The data of the item.
|
||||
--}}
|
||||
<li class="ds4-embedded-document-list__row effect" data-effect-id="{{effectData._id}}">
|
||||
{{!-- icon --}}
|
||||
{{> systems/ds4/templates/sheets/shared/components/rollable-image.hbs rollable=false src=effectData.icon
|
||||
alt=(localize "DS4.DocumentImageAltText" name=effectData.label) title=effectData.label}}
|
||||
|
||||
{{!-- label --}}
|
||||
<div title="{{effectData.label}}">{{effectData.label}}</div>
|
||||
|
||||
{{!-- control button group --}}
|
||||
{{> systems/ds4/templates/sheets/shared/components/control-button-group.hbs documentType="effect"
|
||||
editTitle="DS4.UserInteractionEditEffectTitle" deleteTitle="DS4.UserInteractionDeleteEffectTitle"}}
|
||||
</li>
|
19
templates/sheets/item/components/effect-list-header.hbs
Normal file
19
templates/sheets/item/components/effect-list-header.hbs
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
{{!--
|
||||
!-- Render an effect list header row.
|
||||
--}}
|
||||
<li class="ds4-embedded-document-list__row ds4-embedded-document-list__row--header">
|
||||
{{!-- icon --}}
|
||||
<div></div>
|
||||
|
||||
{{!-- label --}}
|
||||
<div>{{localize 'DS4.EffectLabel'}}</div>
|
||||
|
||||
{{!-- control buttons placeholder --}}
|
||||
<div></div>
|
||||
</li>
|
18
templates/sheets/item/components/item-header.hbs
Normal file
18
templates/sheets/item/components/item-header.hbs
Normal file
|
@ -0,0 +1,18 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<header class="ds4-item-header">
|
||||
<img class="ds4-item-header__img" src="{{data.img}}" data-edit="img" alt="{{localize 'DS4.ItemImageAltText'}}"
|
||||
title="{{data.name}}" />
|
||||
<div class="ds4-item-header__data">
|
||||
<h2 class="ds4-item-header__type">{{lookup config.i18n.itemTypes item.type}}</h2>
|
||||
<h1 class="ds4-item-header__name">
|
||||
<label for="name-{{data._id}}" class="ds4-item-header__name-label">{{localize 'DS4.ItemName'}}</label>
|
||||
<input class="ds4-item-header__name-input" name="name" type="text" id="name-{{data._id}}"
|
||||
value="{{data.name}}" placeholder="{{localize 'DS4.ItemName'}}" />
|
||||
</h1>
|
||||
</div>
|
||||
</header>
|
33
templates/sheets/item/components/properties/armor.hbs
Normal file
33
templates/sheets/item/components/properties/armor.hbs
Normal file
|
@ -0,0 +1,33 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--armor">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesArmor'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.armorType-{{data._id}}">{{localize "DS4.ArmorType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.armorType-{{data._id}}" name="data.armorType" data-dtype="String">
|
||||
{{#select data.data.armorType}}
|
||||
{{#each config.i18n.armorTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.armorMaterialType-{{data._id}}">{{localize "DS4.ArmorMaterialType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.armorMaterialType-{{data._id}}" name="data.armorMaterialType" data-dtype="String">
|
||||
{{#select data.data.armorMaterialType}}
|
||||
{{#each config.i18n.armorMaterialTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
14
templates/sheets/item/components/properties/equipable.hbs
Normal file
14
templates/sheets/item/components/properties/equipable.hbs
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--equipable">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesEquipable'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.equipped-{{data._id}}">{{localize "DS4.ItemEquipped"}}</label>
|
||||
<input id="data.equipped-{{data._id}}" data-dtype="Boolean" type="checkbox" name="data.equipped" {{checked
|
||||
data.data.equipped}} />
|
||||
</div>
|
||||
</div>
|
38
templates/sheets/item/components/properties/physical.hbs
Normal file
38
templates/sheets/item/components/properties/physical.hbs
Normal file
|
@ -0,0 +1,38 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--physical">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesPhysical'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.price-{{data._id}}">{{localize "DS4.PriceGold"}}</label>
|
||||
<input id="data.price-{{data._id}}" data-dtype="Number" type="number" min="0" max="99999" step="0.01"
|
||||
placeholder="0" name="data.price" value="{{data.data.price}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.availability-{{data._id}}">{{localize "DS4.ItemAvailability"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.availability-{{data._id}}" name="data.availability" data-dtype="String">
|
||||
{{#select data.data.availability}}
|
||||
{{#each config.i18n.itemAvailabilities as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{#if isOwned}}
|
||||
<div class="form-group">
|
||||
<label for="data.quantity-{{data._id}}">{{localize "DS4.Quantity"}}</label>
|
||||
<input id="data.quantity-{{data._id}}" data-dtype="Number" type="number" name="data.quantity" placeholder="0"
|
||||
value="{{data.data.quantity}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.storageLocation-{{data._id}}">{{localize "DS4.StorageLocation"}}</label>
|
||||
<input id="data.storageLocation-{{data._id}}" data-dtype="String" type="text" name="data.storageLocation"
|
||||
value="{{data.data.storageLocation}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
14
templates/sheets/item/components/properties/protective.hbs
Normal file
14
templates/sheets/item/components/properties/protective.hbs
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--protective">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesProtective'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.armorValue-{{data._id}}">{{localize "DS4.ArmorValue"}}</label>
|
||||
<input id="data.armorValue-{{data._id}}" data-dtype="Number" type="number" min="0" step="1" placeholder="0"
|
||||
name="data.armorValue" value="{{data.data.armorValue}}" />
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,15 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--special-creature-ability">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesSpecialCreatureAbility'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.experiencePoints-{{data._id}}">{{localize
|
||||
"DS4.SpecialCreatureAbilityExperiencePoints"}}</label>
|
||||
<input id="data.experiencePoints-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
placeholder="0" name="data.experiencePoints" value="{{data.data.experiencePoints}}" />
|
||||
</div>
|
||||
</div>
|
112
templates/sheets/item/components/properties/spell.hbs
Normal file
112
templates/sheets/item/components/properties/spell.hbs
Normal file
|
@ -0,0 +1,112 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--spell">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesSpell'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.bonus-{{data._id}}">{{localize "DS4.SpellBonus"}}</label>
|
||||
<input id="data.bonus-{{data._id}}" data-dtype="String" type="text" name="data.bonus" placeholder="0"
|
||||
value="{{data.data.bonus}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.spellType-{{data._id}}">{{localize "DS4.SpellType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.spellType-{{data._id}}" name="data.spellType" data-dtype="String">
|
||||
{{#select data.data.spellType}}
|
||||
{{#each config.i18n.spellTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.spellCategory-{{data._id}}">{{localize "DS4.SpellCategory"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.spellCategory-{{data._id}}" name="data.spellCategory" data-dtype="String">
|
||||
{{#select data.data.spellCategory}}
|
||||
{{#each config.i18n.spellCategories as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.SpellMaxDistance"}}</label>
|
||||
<div class="form-fields">
|
||||
<input data-dtype="String" type="text" name="data.maxDistance.value"
|
||||
value="{{data.data.maxDistance.value}}" />
|
||||
<select name="data.maxDistance.unit" data-dtype="String">
|
||||
{{#select data.data.maxDistance.unit}}
|
||||
{{#each config.i18n.distanceUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.SpellEffectRadius"}}</label>
|
||||
<div class="form-fields">
|
||||
<input data-dtype="String" type="text" name="data.effectRadius.value"
|
||||
value="{{data.data.effectRadius.value}}" />
|
||||
<select name="data.effectRadius.unit" data-dtype="String">
|
||||
{{#select data.data.effectRadius.unit}}
|
||||
{{#each config.i18n.distanceUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.SpellDuration"}}</label>
|
||||
<div class="form-fields">
|
||||
<input data-dtype="String" type="text" name="data.duration.value" value="{{data.data.duration.value}}" />
|
||||
<select name="data.duration.unit" data-dtype="String">
|
||||
{{#select data.data.duration.unit}}
|
||||
{{#each config.i18n.customTemporalUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.SpellCooldownDuration"}}</label>
|
||||
<div class="form-fields">
|
||||
<input data-dtype="String" type="text" name="data.cooldownDuration.value"
|
||||
value="{{data.data.cooldownDuration.value}}" />
|
||||
<select name="data.cooldownDuration.unit" data-dtype="String">
|
||||
{{#select data.data.cooldownDuration.unit}}
|
||||
{{#each config.i18n.temporalUnits as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.SpellMinimumLevel"}}</label>
|
||||
<div class="form-fields">
|
||||
<label for="data.minimumLevels.healer-{{data._id}}">{{localize "DS4.SpellCasterClassHealer"}}</label>
|
||||
<input id="data.minimumLevels.healer-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
name="data.minimumLevels.healer" placeholder="–" value="{{data.data.minimumLevels.healer}}" />
|
||||
<label for="data.minimumLevels.sorcerer-{{data._id}}">{{localize "DS4.SpellCasterClassSorcerer"}}</label>
|
||||
<input id="data.minimumLevels.sorcerer-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
name="data.minimumLevels.sorcerer" placeholder="–" value="{{data.data.minimumLevels.sorcerer}}" />
|
||||
<label for="data.minimumLevels.wizard-{{data._id}}">{{localize "DS4.SpellCasterClassWizard"}}</label>
|
||||
<input id="data.minimumLevels.wizard-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
name="data.minimumLevels.wizard" placeholder="–" value="{{data.data.minimumLevels.wizard}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.price-{{data._id}}">{{localize "DS4.SpellPrice"}}</label>
|
||||
<input id="data.price-{{data._id}}" data-dtype="Number" type="number" min="0" step="0.01" name="data.price"
|
||||
placeholder="0" value="{{data.data.price}}" />
|
||||
</div>
|
||||
</div>
|
26
templates/sheets/item/components/properties/talent.hbs
Normal file
26
templates/sheets/item/components/properties/talent.hbs
Normal file
|
@ -0,0 +1,26 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--talent">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesTalent'}}</h4>
|
||||
<div class="form-group slim">
|
||||
<label>{{localize "DS4.TalentRank"}}</label>
|
||||
<div class="form-fields">
|
||||
<label for="data.rank.base-{{data._id}}">{{localize "DS4.TalentRankBase"}}</label>
|
||||
<input id="data.rank.base-{{data._id}}" data-dtype="Number" type="number" min="0"
|
||||
max="{{data.data.rank.max}}" step="1" name="data.rank.base" value="{{data.data.rank.base}}" />
|
||||
<label for="data.rank.max-{{data._id}}">{{localize "DS4.TalentRankMax"}}</label>
|
||||
<input id="data.rank.max-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
name="data.rank.max" value="{{data.data.rank.max}}" />
|
||||
<br />
|
||||
<label for="data.rank.mod-{{data._id}}">{{localize "DS4.TalentRankMod"}}</label>
|
||||
<input id="data.rank.mod-{{data._id}}" data-dtype="Number" type="number" min="0" step="1"
|
||||
name="data.rank.mod" value="{{data.data.rank.mod}}" />
|
||||
<label for="data.rank.total-{{data._id}}">{{localize "DS4.TalentRankTotal"}}</label>
|
||||
<span id="data.rank.total-{{data._id}}">{{data.data.rank.total}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
31
templates/sheets/item/components/properties/weapon.hbs
Normal file
31
templates/sheets/item/components/properties/weapon.hbs
Normal file
|
@ -0,0 +1,31 @@
|
|||
{{!--
|
||||
SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
--}}
|
||||
|
||||
<div class="ds4-item-properties ds4-item-properties--weapon">
|
||||
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesWeapon'}}</h4>
|
||||
<div class="form-group">
|
||||
<label for="data.attackType-{{data._id}}">{{localize "DS4.AttackType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select id="data.attackType-{{data._id}}" name="data.attackType" data-dtype="String">
|
||||
{{#select data.data.attackType}}
|
||||
{{#each config.i18n.attackTypes as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.weaponBonus-{{data._id}}">{{localize "DS4.WeaponBonus"}}</label>
|
||||
<input id="data.weaponBonus-{{data._id}}" data-dtype="Number" type="number" name="data.weaponBonus"
|
||||
placeholder="0" value="{{data.data.weaponBonus}}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="data.opponentDefense-{{data._id}}">{{localize "DS4.OpponentDefense"}}</label>
|
||||
<input id="data.opponentDefense-{{data._id}}" data-dtype="Number" type="number" name="data.opponentDefense"
|
||||
placeholder="0" value="{{data.data.opponentDefense}}" />
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue