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

@ -38,6 +38,8 @@
0.4.3b: Clear all filters to match displayed 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 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 = { const CMPBrowser = {
@ -473,7 +475,7 @@ class CompendiumBrowser extends Application {
let numItemsLoaded = 0; let numItemsLoaded = 0;
let compactItems = {}; 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) { for (let pack of game.packs) {
if (pack['metadata']['entity'] === "Item" && this.settings.loadedSpellCompendium[pack.collection].load) { 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? //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" /> <img class="" data-src="{{feat.img}}" title="{{feat.name}}" width="32" height="32" />
</div> </div>
<div class="item-name"> <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>
<div class="feat-tags"> <div class="feat-tags">
<span title="Class Requirement">{{feat.classRequirementString}}</span> <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" /> <img class="" data-src="{{item.img}}" title="{{item.name}}" width="32" height="32" />
</div> </div>
<div class="item-name"> <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>
<div class="item-tags"> <div class="item-tags">
<span title="Item Type">{{item.type}}</span> <span title="Item Type">{{item.type}}</span>

View File

@ -5,7 +5,7 @@
</div> </div>
<div class="npc-line"> <div class="npc-line">
<div class="npc-name"> <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>
<div class="npc-tags"> <div class="npc-tags">
<span class="cr" title="Challange Rating">CR {{npc.displayCR}}</span> <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"/> <img class="" data-src="{{spell.img}}" title="{{spell.name}}" width="32" height="32"/>
</div> </div>
<div class="item-name"> <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>
<div class="spell-tags"> <div class="spell-tags">
<span title="Spell level">{{#if spell.data.level}}{{spell.data.level}}{{else}}C{{/if}}</span> <span title="Spell level">{{#if spell.data.level}}{{spell.data.level}}{{else}}C{{/if}}</span>