mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
define tags for actions
This commit is contained in:
parent
e5c617d62e
commit
d355d1677d
2 changed files with 15 additions and 14 deletions
|
|
@ -351,4 +351,17 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates a list of localized tags for this action.
|
||||||
|
* @returns {string[]} An array of localized tag strings.
|
||||||
|
*/
|
||||||
|
_getTags() {
|
||||||
|
const tags = [
|
||||||
|
game.i18n.localize(`DAGGERHEART.ACTIONS.TYPES.${this.type}.name`),
|
||||||
|
game.i18n.localize(`DAGGERHEART.CONFIG.ActionType.${this.actionType}`)
|
||||||
|
];
|
||||||
|
|
||||||
|
return tags;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ Parameters:
|
||||||
</div>
|
</div>
|
||||||
{{!-- Attack Tags End --}}
|
{{!-- Attack Tags End --}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{!-- Other elements Tags Start --}}
|
||||||
{{#with item}}
|
{{#with item}}
|
||||||
{{#if (not ../hideTags)}}
|
{{#if (not ../hideTags)}}
|
||||||
<div class="item-tags">
|
<div class="item-tags">
|
||||||
|
|
@ -70,20 +71,7 @@ Parameters:
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/with}}
|
{{/with}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{!-- Other elements Tags End --}}
|
||||||
|
|
||||||
{{!-- Action Block Start --}}
|
|
||||||
{{#if (eq type 'action')}}
|
|
||||||
{{#if (not hideTags)}}
|
|
||||||
<div class="item-tags">
|
|
||||||
<div class="tag">{{localize (concat 'DAGGERHEART.ACTIONS.TYPES.' item.type '.name')}}</div>
|
|
||||||
<div class="tag">{{localize (concat 'DAGGERHEART.CONFIG.ActionType.' item.actionType)}}</div>
|
|
||||||
</div>
|
|
||||||
{{else if (not hideLabels)}}
|
|
||||||
{{!-- Empty --}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
{{!-- Action Block End --}}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Simple Resource --}}
|
{{!-- Simple Resource --}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue