mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Merge branch 'main' into release
This commit is contained in:
commit
c5e21d9d92
8 changed files with 11 additions and 9 deletions
|
|
@ -251,10 +251,10 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
|
|
||||||
/* If any noticeable slowdown occurs, consider replacing with enriching description on clicking to expand descriptions */
|
/* If any noticeable slowdown occurs, consider replacing with enriching description on clicking to expand descriptions */
|
||||||
for (const item of this.items) {
|
for (const item of this.items) {
|
||||||
if (["weapon", "armor"].includes(item.type)) {
|
if (['weapon', 'armor'].includes(item.type)) {
|
||||||
item.system.enrichedTags = await foundry.applications.handlebars.renderTemplate(
|
item.system.enrichedTags = await foundry.applications.handlebars.renderTemplate(
|
||||||
'systems/daggerheart/templates/sheets/global/partials/item-tags.hbs',
|
'systems/daggerheart/templates/ui/itemBrowser/item-tags.hbs',
|
||||||
item.system,
|
{ item: item.system }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
item.system.enrichedDescription =
|
item.system.enrichedDescription =
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
|
||||||
if (locked || element.dataset.hasOwnProperty('locked')) this.lockTooltip();
|
if (locked || element.dataset.hasOwnProperty('locked')) this.lockTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
_setAnchor(direction, options) {
|
_setAnchor(direction, options = {}) {
|
||||||
const directions = this.constructor.TOOLTIP_DIRECTIONS;
|
const directions = this.constructor.TOOLTIP_DIRECTIONS;
|
||||||
const pad = this.constructor.TOOLTIP_MARGIN_PX;
|
const pad = this.constructor.TOOLTIP_MARGIN_PX;
|
||||||
const pos = this.element.getBoundingClientRect();
|
const pos = this.element.getBoundingClientRect();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"type": "Item",
|
"type": "Actor",
|
||||||
"folder": null,
|
"folder": null,
|
||||||
"name": "Tier 1",
|
"name": "Tier 1",
|
||||||
"color": null,
|
"color": null,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"type": "Item",
|
"type": "Actor",
|
||||||
"folder": null,
|
"folder": null,
|
||||||
"name": "Tier 2",
|
"name": "Tier 2",
|
||||||
"color": null,
|
"color": null,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"type": "Item",
|
"type": "Actor",
|
||||||
"folder": null,
|
"folder": null,
|
||||||
"name": "Tier 3",
|
"name": "Tier 3",
|
||||||
"color": null,
|
"color": null,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"type": "Item",
|
"type": "Actor",
|
||||||
"folder": null,
|
"folder": null,
|
||||||
"name": "Tier 4",
|
"name": "Tier 4",
|
||||||
"color": null,
|
"color": null,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "daggerheart",
|
"id": "daggerheart",
|
||||||
"title": "Daggerheart",
|
"title": "Daggerheart",
|
||||||
"description": "An unofficial implementation of the Daggerheart system",
|
"description": "An unofficial implementation of the Daggerheart system",
|
||||||
"version": "1.9.2",
|
"version": "1.9.3",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "13.346",
|
"minimum": "13.346",
|
||||||
"verified": "13.351",
|
"verified": "13.351",
|
||||||
|
|
|
||||||
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