mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
[UI] Make sheet tab scrollsbars stable, remove fieldsets, and adjust padding (#1944)
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
* Remove certain fieldsets and adjust scrollsbars * Also remove fieldset for npc features and fix padding issue in full screen notes
This commit is contained in:
parent
1dcfc92a03
commit
eccab6ad64
30 changed files with 298 additions and 302 deletions
|
|
@ -7,7 +7,7 @@ export default class AdversarySheet extends DHBaseActorSheet {
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: ['adversary'],
|
classes: ['adversary'],
|
||||||
position: { width: 645, height: 760 },
|
position: { width: 645, height: 750 },
|
||||||
window: { resizable: true },
|
window: { resizable: true },
|
||||||
actions: {
|
actions: {
|
||||||
toggleHitPoints: AdversarySheet.#toggleHitPoints,
|
toggleHitPoints: AdversarySheet.#toggleHitPoints,
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 5px;
|
margin: 5px 0 0 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-color: @color-fieldset-border;
|
border-color: @color-fieldset-border;
|
||||||
padding-inline: 0.625rem;
|
padding-inline: 0.625rem;
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: -webkit-fill-available;
|
min-height: -webkit-fill-available;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 16px;
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,20 @@
|
||||||
|
|
||||||
.window-header > .attribution-header-label {
|
.window-header > .attribution-header-label {
|
||||||
margin-right: var(--spacer-4);
|
margin-right: var(--spacer-4);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-navigation {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
flex: 1;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
.search-section {
|
||||||
|
padding: 12px 14px var(--spacer-8) 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab.inventory {
|
.tab.inventory {
|
||||||
|
|
@ -46,7 +60,7 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
padding: 10px 10px 0;
|
padding: var(--spacer-8) 16px var(--spacer-8) 16px;
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
color: light-dark(@dark, @beige);
|
color: light-dark(@dark, @beige);
|
||||||
|
|
@ -57,7 +71,6 @@
|
||||||
.tab.notes.active {
|
.tab.notes.active {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: -10px; // will be removed once tab-navigation bottom margin is removed on all actor sheets
|
|
||||||
scrollbar-gutter: unset;
|
scrollbar-gutter: unset;
|
||||||
|
|
||||||
// Add padding around top level level prosemirrors used for note tabs
|
// Add padding around top level level prosemirrors used for note tabs
|
||||||
|
|
@ -66,6 +79,7 @@
|
||||||
.editor-content {
|
.editor-content {
|
||||||
scrollbar-gutter: stable;
|
scrollbar-gutter: stable;
|
||||||
padding-right: @right-padding;
|
padding-right: @right-padding;
|
||||||
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
&.inactive {
|
&.inactive {
|
||||||
button.toggle {
|
button.toggle {
|
||||||
|
|
@ -76,7 +90,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.active {
|
&.active {
|
||||||
padding: 8px 0 4px 16px;
|
padding: 8px 0 0 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-bottom: 20px;
|
.stable-scroll-container();
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,8 @@
|
||||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||||
.tab.features {
|
.tab.features {
|
||||||
.feature-section {
|
.feature-section {
|
||||||
display: flex;
|
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
|
||||||
flex-direction: column;
|
.stable-scroll-container();
|
||||||
gap: 10px;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,9 @@
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
&.active {
|
&.active {
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8,17 +8,14 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-top: 8px;
|
.stable-scroll-container();
|
||||||
padding-bottom: 20px;
|
|
||||||
height: 100%;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.characteristics-section {
|
.characteristics-section {
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
padding: 0 10px;
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.biography-section {
|
.biography-section {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-bottom: 20px;
|
.stable-scroll-container();
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-bottom: 20px;
|
.stable-scroll-container();
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,19 @@
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.character {
|
.application.sheet.daggerheart.actor.dh-style.character {
|
||||||
.character-header-sheet {
|
.character-header-sheet {
|
||||||
padding: 0 15px;
|
|
||||||
padding-top: var(--header-height);
|
padding-top: var(--header-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
> *:not(line-div, .tab-navigation) {
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.name-row {
|
.name-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0;
|
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
|
|
@ -100,8 +103,8 @@
|
||||||
.character-details {
|
.character-details {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 5px 0;
|
margin-top: 5px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
color: @color-text-emphatic;
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
|
|
@ -130,7 +133,6 @@
|
||||||
.character-row {
|
.character-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
|
||||||
.resource-section {
|
.resource-section {
|
||||||
|
|
@ -218,12 +220,11 @@
|
||||||
|
|
||||||
.character-traits {
|
.character-traits {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
max-width: 38.5rem;
|
max-width: 38.5rem;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
|
|
||||||
.trait {
|
.trait {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -325,5 +326,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-navigation button[data-action="openSettings"] {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
@import './sheet.less';
|
||||||
@import './biography.less';
|
@import './biography.less';
|
||||||
@import './effects.less';
|
@import './effects.less';
|
||||||
@import './features.less';
|
@import './features.less';
|
||||||
@import './header.less';
|
@import './header.less';
|
||||||
@import './inventory.less';
|
@import './inventory.less';
|
||||||
@import './loadout.less';
|
@import './loadout.less';
|
||||||
@import './sheet.less';
|
|
||||||
@import './sidebar.less';
|
@import './sidebar.less';
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,9 @@
|
||||||
.items-section {
|
.items-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
margin-top: 20px;
|
.stable-scroll-container();
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,11 +50,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 100%;
|
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
overflow-y: auto;
|
.stable-scroll-container();
|
||||||
margin-top: 20px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
&.active {
|
&.active {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
@import '../../../utils/colors.less';
|
@import '../../../utils/colors.less';
|
||||||
@import '../../../utils/fonts.less';
|
@import '../../../utils/fonts.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.companion {
|
.application.sheet.daggerheart.actor.dh-style.companion .tab.details.active {
|
||||||
|
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
|
.stable-scroll-container();
|
||||||
|
|
||||||
.partner-section,
|
.partner-section,
|
||||||
.attack-section,
|
.attack-section,
|
||||||
.experience-list {
|
.experience-list {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-bottom: 20px;
|
.stable-scroll-container();
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,8 @@
|
||||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||||
.tab.features {
|
.tab.features {
|
||||||
.feature-section {
|
.feature-section {
|
||||||
display: flex;
|
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
|
||||||
flex-direction: column;
|
.stable-scroll-container();
|
||||||
gap: 10px;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
|
@import './sheet.less';
|
||||||
@import './features.less';
|
@import './features.less';
|
||||||
@import './header.less';
|
@import './header.less';
|
||||||
@import './potentialAdversaries.less';
|
@import './potentialAdversaries.less';
|
||||||
@import './sheet.less';
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
padding-bottom: 4px;
|
.stable-scroll-container();
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,7 @@
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||||
.tab {
|
.tab {
|
||||||
flex: 1;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-section {
|
.feature-section {
|
||||||
display: flex;
|
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
|
||||||
flex-direction: column;
|
.stable-scroll-container();
|
||||||
gap: 10px;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
@import '../../../utils/mixin.less';
|
@import '../../../utils/mixin.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
|
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
|
||||||
overflow: auto;
|
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
|
||||||
|
.stable-scroll-container();
|
||||||
|
|
||||||
.actions-section {
|
.actions-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.party {
|
.application.sheet.daggerheart.actor.dh-style.party {
|
||||||
.tab {
|
.tab.active {
|
||||||
flex: 1;
|
display: flex;
|
||||||
overflow-y: auto;
|
flex-direction: column;
|
||||||
scrollbar-gutter: stable;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
overflow: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -174,10 +174,10 @@
|
||||||
--fade-start: 0;
|
--fade-start: 0;
|
||||||
}
|
}
|
||||||
10%, 100% {
|
10%, 100% {
|
||||||
--fade-start: 12px;
|
--fade-start: 14px;
|
||||||
}
|
}
|
||||||
0%, 90% {
|
0%, 90% {
|
||||||
--fade-end: 12px;
|
--fade-end: 14px;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
--fade-end: 0;
|
--fade-end: 0;
|
||||||
|
|
@ -198,3 +198,9 @@
|
||||||
transparent 100%
|
transparent 100%
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stable-scroll-container() {
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
.with-scroll-shadows();
|
||||||
|
}
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||||
data-group='{{tabs.features.group}}'>
|
data-group='{{tabs.features.group}}'>
|
||||||
<div class="feature-section">
|
<div class="feature-section items-list">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{#each @root.features as |item|}}
|
||||||
title=tabs.features.label
|
{{> "daggerheart.inventory-item"
|
||||||
type='feature'
|
item=item
|
||||||
collection=@root.features
|
type="feature"
|
||||||
hideContextMenu=true
|
actorType=@root.document.type
|
||||||
hideModifyControls=true
|
hideContextMenu=true
|
||||||
canCreate=@root.editable
|
hideModifyControls=true
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||||
data-group='{{tabs.features.group}}'>
|
data-group='{{tabs.features.group}}'>
|
||||||
<div class="features-sections">
|
<div class="features-sections">
|
||||||
{{#each document.system.sheetLists as |category|}}
|
{{#each document.system.sheetLists as |category|}}
|
||||||
{{#if (eq category.type 'feature' )}}
|
{{#if (eq category.type 'feature' )}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title=category.title
|
title=category.title
|
||||||
type='feature'
|
type='feature'
|
||||||
actorType='character'
|
actorType='character'
|
||||||
collection=category.values
|
collection=category.values
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
{{else if category.values}}
|
{{else if category.values}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title=category.title
|
title=category.title
|
||||||
type='feature'
|
type='feature'
|
||||||
actorType='character'
|
actorType='character'
|
||||||
collection=category.values
|
collection=category.values
|
||||||
canCreate=false
|
canCreate=false
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,165 +1,163 @@
|
||||||
<header class="character-header-sheet">
|
<header class="character-header-sheet">
|
||||||
<line-div></line-div>
|
<line-div></line-div>
|
||||||
<div class="name-row">
|
<div class="name-row">
|
||||||
<h1
|
<h1
|
||||||
class="actor-name input"
|
class="actor-name input"
|
||||||
contenteditable="plaintext-only"
|
contenteditable="plaintext-only"
|
||||||
data-property="name"
|
data-property="name"
|
||||||
placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}"
|
placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
>{{source.name}}</h1>
|
>{{source.name}}</h1>
|
||||||
<div class='level-div'>
|
<div class='level-div'>
|
||||||
<h3 class='label'>
|
<h3 class='label'>
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
{{#if document.system.needsCharacterSetup}}
|
{{#if document.system.needsCharacterSetup}}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="level-button glow"
|
class="level-button glow"
|
||||||
data-action="levelManagement"
|
data-action="levelManagement"
|
||||||
>
|
>
|
||||||
{{localize "DAGGERHEART.APPLICATIONS.CharacterCreation.buttonTitle"}}
|
{{localize "DAGGERHEART.APPLICATIONS.CharacterCreation.buttonTitle"}}
|
||||||
</button>
|
</button>
|
||||||
{{else if document.system.levelData.canLevelUp}}
|
{{else if document.system.levelData.canLevelUp}}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="level-button glow" data-tooltip="{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}"
|
class="level-button glow" data-tooltip="{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}"
|
||||||
data-action="levelManagement"
|
data-action="levelManagement"
|
||||||
>
|
>
|
||||||
<i class="fa-solid fa-angles-up"></i>
|
<i class="fa-solid fa-angles-up"></i>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#unless document.system.needsCharacterSetup}}
|
{{#unless document.system.needsCharacterSetup}}
|
||||||
{{localize 'DAGGERHEART.GENERAL.level'}}
|
{{localize 'DAGGERHEART.GENERAL.level'}}
|
||||||
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="character-details">
|
<div class="character-details">
|
||||||
<div>
|
<div>
|
||||||
{{#if document.system.class.value}}
|
{{#if document.system.class.value}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.class.value.uuid}}">{{document.system.class.value.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.value.uuid}}">{{document.system.class.value.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="classes">{{localize 'TYPES.Item.class'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="classes">{{localize 'TYPES.Item.class'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.class.subclass}}
|
{{#if document.system.class.subclass}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.class.subclass.uuid}}">{{document.system.class.subclass.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.subclass.uuid}}">{{document.system.class.subclass.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.community}}
|
{{#if document.system.community}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.community.uuid}}">{{document.system.community.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.community.uuid}}">{{document.system.community.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="communities">{{localize 'TYPES.Item.community'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="communities">{{localize 'TYPES.Item.community'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.ancestry}}
|
{{#if document.system.ancestry}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.ancestry.uuid}}">{{document.system.ancestry.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.ancestry.uuid}}">{{document.system.ancestry.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="ancestries">{{localize 'TYPES.Item.ancestry'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="ancestries">{{localize 'TYPES.Item.ancestry'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if (or document.system.multiclass.value document.system.multiclass.subclass)}}
|
{{#if (or document.system.multiclass.value document.system.multiclass.subclass)}}
|
||||||
<div class="multiclass">
|
<div class="multiclass">
|
||||||
{{#if document.system.multiclass.value}}
|
{{#if document.system.multiclass.value}}
|
||||||
<span data-action="editDoc"data-item-uuid="{{document.system.multiclass.value.uuid}}">{{document.system.multiclass.value.name}}</span>
|
<span data-action="editDoc"data-item-uuid="{{document.system.multiclass.value.uuid}}">{{document.system.multiclass.value.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span data-action="openPack" data-key="classes">{{localize 'DAGGERHEART.GENERAL.multiclass'}}</span>
|
<span data-action="openPack" data-key="classes">{{localize 'DAGGERHEART.GENERAL.multiclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.multiclass.subclass}}
|
{{#if document.system.multiclass.subclass}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.multiclass.subclass.uuid}}">{{document.system.multiclass.subclass.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.multiclass.subclass.uuid}}">{{document.system.multiclass.subclass.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
<div class="character-row">
|
||||||
|
<div class="resource-section">
|
||||||
<div class="character-row">
|
<div class="hope-section">
|
||||||
<div class="resource-section">
|
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
||||||
<div class="hope-section">
|
{{#times document.system.resources.hope.max}}
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
<span class='hope-value' data-action='toggleHope' data-value="{{add this 1}}">
|
||||||
{{#times document.system.resources.hope.max}}
|
{{#if (gte ../document.system.resources.hope.value (add this 1))}}
|
||||||
<span class='hope-value' data-action='toggleHope' data-value="{{add this 1}}">
|
<i class='fa-solid fa-diamond'></i>
|
||||||
{{#if (gte ../document.system.resources.hope.value (add this 1))}}
|
{{else}}
|
||||||
<i class='fa-solid fa-diamond'></i>
|
<i class='fa-regular fa-circle'></i>
|
||||||
{{else}}
|
{{/if}}
|
||||||
<i class='fa-regular fa-circle'></i>
|
</span>
|
||||||
{{/if}}
|
{{/times}}
|
||||||
</span>
|
{{#times document.system.scars}}
|
||||||
{{/times}}
|
<span class='hope-value scar'>
|
||||||
{{#times document.system.scars}}
|
<i class='fa-regular fa-ban'></i>
|
||||||
<span class='hope-value scar'>
|
</span>
|
||||||
<i class='fa-regular fa-ban'></i>
|
{{/times}}
|
||||||
</span>
|
{{#if hasExtraResources}}<a type="button" class="resource-manager" data-action="toggleResourceManagement"><i class="fa-solid fa-angle-down"></i></a>{{/if}}
|
||||||
{{/times}}
|
</div>
|
||||||
{{#if hasExtraResources}}<a type="button" class="resource-manager" data-action="toggleResourceManagement"><i class="fa-solid fa-angle-down"></i></a>{{/if}}
|
</div>
|
||||||
</div>
|
{{#if document.system.class.value}}
|
||||||
</div>
|
<div class="domains-section">
|
||||||
{{#if document.system.class.value}}
|
{{#each document.system.domainData as |data|}}
|
||||||
<div class="domains-section">
|
<div class="domain">
|
||||||
{{#each document.system.domainData as |data|}}
|
<img src="{{data.src}}" alt="" data-tooltip="{{data.label}}" />
|
||||||
<div class="domain">
|
</div>
|
||||||
<img src="{{data.src}}" alt="" data-tooltip="{{data.label}}" />
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/if}}
|
||||||
</div>
|
<div class="downtime-section">
|
||||||
{{/if}}
|
{{#if document.parties.size}}
|
||||||
<div class="downtime-section">
|
<button type="button" data-action="viewParty" data-tooltip="DAGGERHEART.ACTORS.Character.viewParty">
|
||||||
{{#if document.parties.size}}
|
<i class="fa-solid fa-fw fa-users"></i>
|
||||||
<button type="button" data-action="viewParty" data-tooltip="DAGGERHEART.ACTORS.Character.viewParty">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-users"></i>
|
{{/if}}
|
||||||
</button>
|
{{#if @root.editable}}
|
||||||
{{/if}}
|
<button type="button" data-action="useDowntime" data-type="shortRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.shortRest.title">
|
||||||
{{#if @root.editable}}
|
<i class="fa-solid fa-fw fa-utensils"></i>
|
||||||
<button type="button" data-action="useDowntime" data-type="shortRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.shortRest.title">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-utensils"></i>
|
<button type="button" data-action="useDowntime" data-type="longRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.longRest.title">
|
||||||
</button>
|
<i class="fa-solid fa-fw fa-bed"></i>
|
||||||
<button type="button" data-action="useDowntime" data-type="longRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.longRest.title">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-bed"></i>
|
{{/if}}
|
||||||
</button>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
<div class="character-traits">
|
||||||
|
{{#each this.attributes as |attribute key|}}
|
||||||
<div class="character-traits">
|
<div class="trait {{#if isSpellcasting}}with-spellcasting{{/if}}" data-tooltip="<b>{{attribute.label}}:</b><br>{{#each attribute.verbs}}{{this}}<br>{{/each}}" data-action="rollAttribute" data-attribute="{{key}}" data-value="{{attribute.value}}">
|
||||||
{{#each this.attributes as |attribute key|}}
|
<div class="trait-name">
|
||||||
<div class="trait {{#if isSpellcasting}}with-spellcasting{{/if}}" data-tooltip="<b>{{attribute.label}}:</b><br>{{#each attribute.verbs}}{{this}}<br>{{/each}}" data-action="rollAttribute" data-attribute="{{key}}" data-value="{{attribute.value}}">
|
<div class="tier-mark {{#if attribute.tierMarked}}marked{{/if}}"></div>
|
||||||
<div class="trait-name">
|
<span>{{attribute.label}}</span>
|
||||||
<div class="tier-mark {{#if attribute.tierMarked}}marked{{/if}}"></div>
|
</div>
|
||||||
<span>{{attribute.label}}</span>
|
<div class="trait-value-area">
|
||||||
</div>
|
<svg width="52" height="46" viewBox="0 0 52 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<div class="trait-value-area">
|
<path d="M 0,0 H 52 L 51.0714,18.254 48.781,24.0952 47.5745,39.9596 26,46 4.42553,39.9596 3.219,24.0952 0.928571,18.254 Z" fill="var(--color-border)"/>
|
||||||
<svg width="52" height="46" viewBox="0 0 52 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<path d="M 3.312,5.357 8.58596,0 H 43.414 l 5.274,5.357 -1.8797,28.846 c -0.2431,2.605 -2.1461,4.7522 -4.7031,5.3064 l -14.8343,3.2151 c -0.8375,0.1816 -1.7043,0.1816 -2.5418,0 L 9.89482,39.5094 C 7.33785,38.9552 5.43478,36.808 5.19169,34.203 Z" fill="var(--background)"/>
|
||||||
<path d="M 0,0 H 52 L 51.0714,18.254 48.781,24.0952 47.5745,39.9596 26,46 4.42553,39.9596 3.219,24.0952 0.928571,18.254 Z" fill="var(--color-border)"/>
|
</svg>
|
||||||
<path d="M 3.312,5.357 8.58596,0 H 43.414 l 5.274,5.357 -1.8797,28.846 c -0.2431,2.605 -2.1461,4.7522 -4.7031,5.3064 l -14.8343,3.2151 c -0.8375,0.1816 -1.7043,0.1816 -2.5418,0 L 9.89482,39.5094 C 7.33785,38.9552 5.43478,36.808 5.19169,34.203 Z" fill="var(--background)"/>
|
<div class="trait-value">
|
||||||
</svg>
|
{{#if (gt attribute.value 0)}}
|
||||||
<div class="trait-value">
|
<span>+{{attribute.value}}</span>
|
||||||
{{#if (gt attribute.value 0)}}
|
{{else}}
|
||||||
<span>+{{attribute.value}}</span>
|
<span>{{attribute.value}}</span>
|
||||||
{{else}}
|
{{/if}}
|
||||||
<span>{{attribute.value}}</span>
|
</div>
|
||||||
{{/if}}
|
{{#if isSpellcasting}}
|
||||||
</div>
|
<div class="spellcasting-mark" data-tooltip="DAGGERHEART.ITEMS.Subclass.spellcastingTrait">
|
||||||
{{#if isSpellcasting}}
|
<i class="fa-solid fa-wand-magic-sparkles" inert></i>
|
||||||
<div class="spellcasting-mark" data-tooltip="DAGGERHEART.ITEMS.Subclass.spellcastingTrait">
|
</div>
|
||||||
<i class="fa-solid fa-wand-magic-sparkles" inert></i>
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
|
||||||
</div>
|
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }}
|
||||||
|
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}"><i class="fa-solid fa-wrench"></i></button>
|
||||||
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }}
|
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
||||||
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}"><i class="fa-solid fa-wrench"></i></button>
|
|
||||||
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -3,15 +3,16 @@
|
||||||
data-tab='{{tabs.features.id}}'
|
data-tab='{{tabs.features.id}}'
|
||||||
data-group='{{tabs.features.group}}'
|
data-group='{{tabs.features.group}}'
|
||||||
>
|
>
|
||||||
<div class="feature-section">
|
<div class="feature-section items-list">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{#each @root.features as |item|}}
|
||||||
title=tabs.features.label
|
{{> "daggerheart.inventory-item"
|
||||||
type='feature'
|
item=item
|
||||||
collection=@root.features
|
type="feature"
|
||||||
hideContextMenu=true
|
actorType=@root.document.type
|
||||||
hideModifyControls=true
|
hideContextMenu=true
|
||||||
canCreate=@root.editable
|
hideModifyControls=true
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||||
data-group='{{tabs.features.group}}'>
|
data-group='{{tabs.features.group}}'>
|
||||||
<div class="feature-section">
|
<div class="feature-section items-list">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{#each @root.features as |item|}}
|
||||||
title=tabs.features.label
|
{{> "daggerheart.inventory-item"
|
||||||
type='feature'
|
item=item
|
||||||
collection=@root.features
|
type="feature"
|
||||||
hideContextMenu=true
|
actorType=@root.document.type
|
||||||
hideModifyControls=true
|
hideContextMenu=true
|
||||||
canCreate=@root.editable
|
hideModifyControls=true
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue