Label change

This commit is contained in:
WBHarry 2025-12-20 19:34:28 +01:00
parent 5b8e13421d
commit b491b7c82c
4 changed files with 14 additions and 12 deletions

View file

@ -1028,11 +1028,11 @@
"description": "" "description": ""
} }
}, },
"FeatureForm":{ "FeatureForm": {
"label": "Feature Form", "label": "Feature Form",
"passive": "Passive", "passive": "Passive",
"action":"Action", "action": "Action",
"reaction":"Reaction" "reaction": "Reaction"
}, },
"Gold": { "Gold": {
"title": "Gold", "title": "Gold",
@ -2095,6 +2095,7 @@
"fear": "Fear", "fear": "Fear",
"features": "Features", "features": "Features",
"formula": "Formula", "formula": "Formula",
"general": "General",
"gm": "GM", "gm": "GM",
"healing": "Healing", "healing": "Healing",
"healingRoll": "Healing Roll", "healingRoll": "Healing Roll",
@ -2528,8 +2529,8 @@
"enabled": { "label": "Enabled" }, "enabled": { "label": "Enabled" },
"tokens": { "label": "Tokens" } "tokens": { "label": "Tokens" }
}, },
"massiveDamage":{ "massiveDamage": {
"title":"Massive Damage", "title": "Massive Damage",
"enabled": { "label": "Enabled" } "enabled": { "label": "Enabled" }
} }
} }

View file

@ -33,9 +33,9 @@ export default class DHFeature extends BaseDataItem {
identifier: new fields.StringField(), identifier: new fields.StringField(),
featureForm: new fields.StringField({ featureForm: new fields.StringField({
required: true, required: true,
initial: "passive", initial: 'passive',
choices: CONFIG.DH.ITEM.featureForm, choices: CONFIG.DH.ITEM.featureForm,
label: "DAGGERHEART.CONFIG.featureForm.label", label: 'DAGGERHEART.CONFIG.FeatureForm.label'
}) })
}; };
} }

View file

@ -4,7 +4,7 @@
<line-div></line-div> <line-div></line-div>
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1> <h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'> <div class='item-description'>
<h3>{{localize 'TYPES.Item.feature'}}</h3> <h3>{{localize (concat 'DAGGERHEART.CONFIG.FeatureForm.' source.system.featureForm)}} {{localize 'TYPES.Item.feature'}}</h3>
</div> </div>
</div> </div>
</header> </header>

View file

@ -4,10 +4,11 @@
data-group='{{tabs.settings.group}}' data-group='{{tabs.settings.group}}'
> >
{{#if (or (eq document.parent.type "adversary") (eq document.parent.type "environment"))}} {{#if (or (eq document.parent.type "adversary") (eq document.parent.type "environment"))}}
<fieldset class="two-columns"> <fieldset class="two-columns">
<span>{{localize "DAGGERHEART.CONFIG.FeatureForm.label"}}</span> <legend>{{localize "DAGGERHEART.GENERAL.general"}}</legend>
{{formInput document.system.schema.fields.featureForm value=document.system.featureForm choices=featureFormChoices localize=true}} <span>{{localize "DAGGERHEART.CONFIG.FeatureForm.label"}}</span>
</fieldset> {{formInput document.system.schema.fields.featureForm value=document.system.featureForm choices=featureFormChoices localize=true}}
</fieldset>
{{/if}} {{/if}}
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }} {{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }}
</section> </section>