Lien vers Items monde/compendium
This commit is contained in:
parent
7bec249e8d
commit
81e3ceb4dc
@ -87,6 +87,11 @@ export class SystemCompendiums extends FormApplication {
|
||||
return items;
|
||||
}
|
||||
|
||||
static async loadDocument(document) {
|
||||
const pack = game.packs.get(document.pack);
|
||||
return await pack.getDocument(document.id ?? document._id);
|
||||
}
|
||||
|
||||
static async getItems(compendium, itemType = undefined) {
|
||||
const items = await SystemCompendiums.getPackContent(compendium, 'Item');
|
||||
return (itemType ? items.filter(it => it.type == itemType) : items);
|
||||
|
@ -848,7 +848,21 @@ section.sheet-body:after {
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
a.rdd-world-content-link i {
|
||||
color: var(--color-text-dark-inactive);
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
a.rdd-world-content-link {
|
||||
background: hsla(280, 50%, 50%, 0.1);
|
||||
padding: 1px 4px;
|
||||
border: 1px solid var(--color-border-dark-tertiary);
|
||||
border-radius: 2px;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
a.content-link {
|
||||
background: hsla(45, 100%, 80%, 0.2);
|
||||
}
|
||||
|
||||
li label.compteur {
|
||||
display: inline-block;
|
||||
|
@ -1 +1,6 @@
|
||||
<a class="content-link" draggable="true" data-pack="{{pack}}" data-uuid="Compendium.{{pack}}.{{id}}" data-id="{{id}}"><i class="fas fa-suitcase"></i>{{name}}</a>
|
||||
{{#if pack}}
|
||||
{{!-- draggable="true" --}}
|
||||
<a class="content-link" data-pack="{{pack}}" data-uuid="Compendium.{{pack}}.{{id}}" data-id="{{id}}"><i class="fas fa-suitcase"></i>{{name}}</a>
|
||||
{{else}}
|
||||
<a class="rdd-world-content-link" data-id="{{id}}"><i class="fas fa-suitcase"></i>{{name}}</a>
|
||||
{{/if}}
|
||||
|
Loading…
Reference in New Issue
Block a user