mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Merged with main
This commit is contained in:
commit
a7eda31aec
7 changed files with 9 additions and 7 deletions
|
|
@ -253,8 +253,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
for (const item of this.items) {
|
||||
if (['weapon', 'armor'].includes(item.type)) {
|
||||
item.system.enrichedTags = await foundry.applications.handlebars.renderTemplate(
|
||||
'systems/daggerheart/templates/sheets/global/partials/item-tags.hbs',
|
||||
item.system
|
||||
'systems/daggerheart/templates/ui/itemBrowser/item-tags.hbs',
|
||||
{ item: item.system }
|
||||
);
|
||||
}
|
||||
item.system.enrichedDescription =
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
|
|||
if (locked || element.dataset.hasOwnProperty('locked')) this.lockTooltip();
|
||||
}
|
||||
|
||||
_setAnchor(direction, options) {
|
||||
_setAnchor(direction, options = {}) {
|
||||
const directions = this.constructor.TOOLTIP_DIRECTIONS;
|
||||
const pad = this.constructor.TOOLTIP_MARGIN_PX;
|
||||
const pos = this.element.getBoundingClientRect();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"type": "Item",
|
||||
"type": "Actor",
|
||||
"folder": null,
|
||||
"name": "Tier 1",
|
||||
"color": null,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"type": "Item",
|
||||
"type": "Actor",
|
||||
"folder": null,
|
||||
"name": "Tier 2",
|
||||
"color": null,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"type": "Item",
|
||||
"type": "Actor",
|
||||
"folder": null,
|
||||
"name": "Tier 3",
|
||||
"color": null,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"type": "Item",
|
||||
"type": "Actor",
|
||||
"folder": null,
|
||||
"name": "Tier 4",
|
||||
"color": null,
|
||||
|
|
|
|||
2
templates/ui/itemBrowser/item-tags.hbs
Normal file
2
templates/ui/itemBrowser/item-tags.hbs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{{#> "systems/daggerheart/templates/sheets/global/partials/item-tags.hbs" item }}
|
||||
{{/"systems/daggerheart/templates/sheets/global/partials/item-tags.hbs"}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue