From 63e4e7832e619ae7f0e7406cc83250c68d42c51f Mon Sep 17 00:00:00 2001 From: opus1217 Date: Mon, 15 Mar 2021 13:45:45 -0700 Subject: [PATCH] 0.4.5b 15-Mar-2021 - Display tooltip over item/npc name with source compendium *-browser-list.html - Add title tooltip to the item/npc names --- compendium-browser.js | 6 ++++-- template/feat-browser-list.html | 2 +- template/item-browser-list.html | 2 +- template/npc-browser-list.html | 2 +- template/spell-browser-list.html | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/compendium-browser.js b/compendium-browser.js index b9b1aa9..bcaed5c 100644 --- a/compendium-browser.js +++ b/compendium-browser.js @@ -37,7 +37,9 @@ Hack solution is to re-render whole dialog which unfortunately loses filter settings on other tabs as well 0.4.3b: Clear all filters to match displayed 15-Mar-2021 0.4.5: Fix: Spells from non-system compendium show up in items tab. Issue#10 - loadAndFilterItems(): Changed tests to switch + more explicit tests + loadAndFilterItems(): Changed tests to switch + more explicit tests + 0.4.5b Show compendium source in results issue#11 + Try showing compendium in the image mouseover */ const CMPBrowser = { @@ -473,7 +475,7 @@ class CompendiumBrowser extends Application { let numItemsLoaded = 0; let compactItems = {}; - //Filter the full list, but only save the core compendium information + level + //Filter the full list, but only save the core compendium information + displayed info for (let pack of game.packs) { if (pack['metadata']['entity'] === "Item" && this.settings.loadedSpellCompendium[pack.collection].load) { //FIXME: How much could we do with the loaded index rather than all content? diff --git a/template/feat-browser-list.html b/template/feat-browser-list.html index 0fb8d35..55be8f8 100644 --- a/template/feat-browser-list.html +++ b/template/feat-browser-list.html @@ -4,7 +4,7 @@
- {{feat.name}} + {{feat.name}}
{{feat.classRequirementString}} diff --git a/template/item-browser-list.html b/template/item-browser-list.html index 9beaf6b..baff6f1 100644 --- a/template/item-browser-list.html +++ b/template/item-browser-list.html @@ -4,7 +4,7 @@
- {{item.name}} + {{item.name}}
{{item.type}} diff --git a/template/npc-browser-list.html b/template/npc-browser-list.html index 818e462..e065292 100644 --- a/template/npc-browser-list.html +++ b/template/npc-browser-list.html @@ -5,7 +5,7 @@
CR {{npc.displayCR}} diff --git a/template/spell-browser-list.html b/template/spell-browser-list.html index 5eb0d56..d797f06 100644 --- a/template/spell-browser-list.html +++ b/template/spell-browser-list.html @@ -5,7 +5,7 @@
{{#if spell.data.level}}{{spell.data.level}}{{else}}C{{/if}}