mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
[Feature] Browser Compendium Handling (#1648)
* Initial version * . * Fixed so that CompendiumSetting saving refreshes the CompendiumBrowser for all users * . * Improved design * Fixed max height * Fixed local reload * Added GM restriction * Raised version * Fixed tooltip * Raised verison to 1.7.0
This commit is contained in:
parent
7c86417752
commit
b23b6c75fb
17 changed files with 392 additions and 9 deletions
|
|
@ -0,0 +1,3 @@
|
|||
<footer>
|
||||
<button data-action="finish">{{localize "Save Settings"}}</button>
|
||||
</footer>
|
||||
36
templates/dialogs/compendiumBrowserSettingsDialog/packs.hbs
Normal file
36
templates/dialogs/compendiumBrowserSettingsDialog/packs.hbs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<div>
|
||||
<div class="types-container">
|
||||
{{#each typePackCollections as |type|}}
|
||||
<div class="type-container">
|
||||
<label>{{type.label}}</label>
|
||||
|
||||
<div class="sources-container">
|
||||
{{#each type.sources as |source|}}
|
||||
<div class="source-container">
|
||||
<div class="source-inner-container">
|
||||
<div class="source-inner-label-container">
|
||||
<a
|
||||
data-action="toggleSource" data-source="{{@key}}" data-type="{{@../key}}"
|
||||
data-tooltip="{{#if source.checked}}{{localize "DAGGERHEART.APPLICATIONS.CompendiumBrowserSettings.disableSource"}}{{else}}{{localize "DAGGERHEART.APPLICATIONS.CompendiumBrowserSettings.enableSource"}}{{/if}}"
|
||||
>
|
||||
<i class="fa-solid {{#if source.checked}}fa-toggle-on{{else}}fa-toggle-off{{/if}}"></i>
|
||||
</a>
|
||||
<label>{{source.label}}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="checks-container {{#unless source.checked}}collapsed{{/unless}}">
|
||||
{{#each source.packs as |pack|}}
|
||||
<div class="check-container">
|
||||
<input type="checkbox" class="pack-checkbox" data-type="{{pack.type}}" data-pack="{{pack.pack}}" {{checked pack.checked}} />
|
||||
<label>{{pack.label}}</label>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<div class="compendium-sidebar">
|
||||
{{#if isGM}}<button data-action="openSettings"><i class="fa-solid fa-gear"></i> {{localize "DAGGERHEART.UI.ItemBrowser.browserSettings"}}</button>{{/if}}
|
||||
<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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue