Skip to content

Commit 682d93d

Browse files
committed
fix: tweak to npc note tab button
1 parent 193506a commit 682d93d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

module/helpers/text-editor-command-dropdown.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function promptResourceLossDialog(state, dispatch, view) {
7474

7575
async function promptIconSelectionDialog(state, dispatch, view) {
7676
const result = await Dialog.prompt({
77-
title: game.i18n.localize('FU.TextEditorDialogIconTitle'),
77+
title: game.i18n.localize('FU.TextEditorDialogSelectIconTitle'),
7878
content: await renderTemplate('systems/projectfu/templates/dialog/dialog-command-icon.hbs', { allIcon: FU.allIcon }),
7979
options: { classes: ['projectfu', 'unique-dialog', 'backgroundstyle'] },
8080
callback: (html) => {

templates/actor/actor-npc-sheet.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@
8585
</li>
8686
<section class="flex2 npc-desc">
8787
{{#if (eq (getGameSetting 'optionNPCNotesTab') true)}}
88-
{{editor enrichedHtml.description target="system.description" engine="prosemirror" rollData=rollData button=false owner=owner editable=false }}
88+
{{editor enrichedHtml.description target="system.description" engine="prosemirror"
89+
rollData=rollData button=false owner=owner editable=false }}
8990
{{else}}
90-
{{editor enrichedHtml.description target="system.description" engine="prosemirror" rollData=rollData button=true owner=owner editable=editable }}
91+
{{editor enrichedHtml.description target="system.description" engine="prosemirror"
92+
rollData=rollData button=true owner=owner editable=editable }}
9193
{{/if}}
9294
</section>
9395
</section>

templates/actor/sections/actor-section-notes.hbs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99
</legend>
1010

1111
<section>
12-
{{editor enrichedHtml.description target="system.description" engine="prosemirror"
13-
rollData=rollData button=true owner=owner editable=editable }}
12+
{{#if (or (eq (getGameSetting 'optionNPCNotesTab') true) (eq actor.type "character"))}}
13+
{{editor enrichedHtml.description target="system.description" engine="prosemirror" rollData=rollData
14+
button=true owner=owner editable=editable }}
15+
{{else}}
16+
{{editor enrichedHtml.description target="system.description" engine="prosemirror" rollData=rollData
17+
button=false owner=owner editable=false }}
18+
{{/if}}
1419
</section>
1520

1621
</fieldset>

0 commit comments

Comments
 (0)