mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
[Feature] Add support for GM Notes (#2082)
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
* Add support for GM Notes * Localize GM Notes header label * Fix active editor height and menu auto sizing * Add tooltip to add gm note button
This commit is contained in:
parent
0c2d257871
commit
79d6522614
17 changed files with 278 additions and 64 deletions
|
|
@ -1,11 +1,25 @@
|
|||
<section
|
||||
class='tab {{tabs.description.cssClass}} {{tabs.description.id}}'
|
||||
data-tab='{{tabs.description.id}}'
|
||||
data-group='{{tabs.description.group}}'
|
||||
>
|
||||
{{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}}
|
||||
|
||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||
{{/if}}
|
||||
<section
|
||||
class='tab {{tabs.description.cssClass}} {{tabs.description.id}}'
|
||||
data-tab='{{tabs.description.id}}'
|
||||
data-group='{{tabs.description.group}}'
|
||||
>
|
||||
<div class="description-section">
|
||||
{{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}}
|
||||
{{#if (and systemFields.gmNotes @root.user.isGM)}}
|
||||
<section class="gm-notes-section">
|
||||
{{#if enrichedGMNotes}}
|
||||
<header class="gm-notes">{{localize "DAGGERHEART.ITEMS.FIELDS.gmNotes.label"}}</header>
|
||||
{{/if}}
|
||||
<prose-mirror
|
||||
name="system.gmNotes"
|
||||
{{#unless enrichedGMNotes}}class="hide-if-inactive"{{/unless}}
|
||||
toggled="true"
|
||||
value="{{document.system.gmNotes}}"
|
||||
>{{{enrichedGMNotes}}}</prose-mirror>
|
||||
</section>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||
{{/if}}
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue