Initial version

This commit is contained in:
WBHarry 2026-02-07 18:00:03 +01:00
parent c1f7866594
commit b053af21c6
13 changed files with 325 additions and 5 deletions

View file

@ -0,0 +1,35 @@
<div>
<label class="compendium-settings-label">{{localize "Enable Compendiums"}}</label>
<div class="pack-options-container">
{{#each packOptions as |option sourceKey|}}
<div class="pack-option-container">
<label>{{option.label}}</label>
<div class="sources-container">
{{#each option.types as |type typeKey|}}
<div class="source-container">
<div class="source-inner-container">
<div class="source-inner-label-container">
<input type="checkbox" class="source-input" data-source="{{@../key}}" data-type="{{typeKey}}" {{checked type.checked}} />
<label>{{type.label}}</label>
</div>
<a><i class="fa-solid fa-angle-down"></i></a>
</div>
<div class="packs-container">
{{#each type.packs as |pack key|}}
<div class="pack-container {{#unless pack.included}}excluded{{/unless}}">
<input type="checkbox" name="{{concat "excludedCompendiumPacks." @../../key "." key}}" {{checked pack.checked}} />
<label>{{pack.label}}</label>
</div>
{{/each}}
</div>
</div>
{{/each}}
</div>
</div>
{{/each}}
</div>
<footer>
<button data-action="finish">{{localize "Save Settings"}}</button>
</footer>
</div>

View file

@ -1,7 +1,8 @@
<div class="compendium-sidebar">
<button data-action="openSettings"><i class="fa-solid fa-gear"></i> {{localize "DAGGERHEART.UI.ItemBrowser.browserSettings"}}</button>
<div class="folder-list">
{{#each compendiums}}
<div class="{{#if selected}} is-selected{{/if}}" data-action="selectFolder" data-folder-id="{{id}}" {{#if folders.length}}data-tooltip="DAGGERHEART.UI.Tooltip.rightClickExtand" data-tooltip-direction="RIGHT"{{/if}}>{{label}}</div>
<div class="{{#if selected}} is-selected{{/if}}" data-action="selectFolder" data-folder-id="{{id}}" {{#if folders.length}}data-tooltip="DAGGERHEART.UI.Tooltip.rightClickExtend" data-tooltip-direction="RIGHT"{{/if}}>{{label}}</div>
{{#if folders.length}}
<div class="subfolder-list">
<div class="wrapper">