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
features_update
opus1217 2021-03-15 13:45:45 -07:00
parent f724d8fb4e
commit 63e4e7832e
5 changed files with 8 additions and 6 deletions

View File

@ -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?

View File

@ -4,7 +4,7 @@
<img class="" data-src="{{feat.img}}" title="{{feat.name}}" width="32" height="32" />
</div>
<div class="item-name">
<span class="item-edit"><a>{{feat.name}}</a></span>
<span class="item-edit"><a title="({{feat.compendium}})">{{feat.name}}</a></span>
</div>
<div class="feat-tags">
<span title="Class Requirement">{{feat.classRequirementString}}</span>

View File

@ -4,7 +4,7 @@
<img class="" data-src="{{item.img}}" title="{{item.name}}" width="32" height="32" />
</div>
<div class="item-name">
<span class="item-edit"><a>{{item.name}}</a></span>
<span class="item-edit"><a title="({{item.compendium}})">{{item.name}}</a></span>
</div>
<div class="item-tags">
<span title="Item Type">{{item.type}}</span>

View File

@ -5,7 +5,7 @@
</div>
<div class="npc-line">
<div class="npc-name">
<span class="item-edit"><a>{{npc.name}}</a></span>
<span class="item-edit"><a title="({{npc.compendium}})">{{npc.name}}</a></span>
</div>
<div class="npc-tags">
<span class="cr" title="Challange Rating">CR {{npc.displayCR}}</span>

View File

@ -5,7 +5,7 @@
<img class="" data-src="{{spell.img}}" title="{{spell.name}}" width="32" height="32"/>
</div>
<div class="item-name">
<span class="item-edit" ><a>{{spell.name}}</a></span>
<span class="item-edit" ><a title="({{spell.compendium}})">{{spell.name}}</a></span>
</div>
<div class="spell-tags">
<span title="Spell level">{{#if spell.data.level}}{{spell.data.level}}{{else}}C{{/if}}</span>