Compare commits

..

No commits in common. "e6c27926d0aaa8ddfba7162089712b273c364f49" and "abd7824c967681f6752010c3c81f356cb7857a70" have entirely different histories.

57 changed files with 336 additions and 398 deletions

View file

@ -37,7 +37,6 @@ jobs:
url: https://github.com/${{github.repository}} url: https://github.com/${{github.repository}}
manifest: https://raw.githubusercontent.com/${{github.repository}}/v14/system.json manifest: https://raw.githubusercontent.com/${{github.repository}}/v14/system.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip
flags.hotReload: false
# Create a zip file with all files required by the module to add to the release # Create a zip file with all files required by the module to add to the release
- run: zip -r ./system.zip system.json README.md LICENSE build/daggerheart.js build/tagify.css styles/daggerheart.css assets/ templates/ packs/ lang/ - run: zip -r ./system.zip system.json README.md LICENSE build/daggerheart.js build/tagify.css styles/daggerheart.css assets/ templates/ packs/ lang/

View file

@ -406,11 +406,7 @@
"giveSpotlight": "Give The Spotlight", "giveSpotlight": "Give The Spotlight",
"requestingSpotlight": "Requesting The Spotlight", "requestingSpotlight": "Requesting The Spotlight",
"requestSpotlight": "Request The Spotlight", "requestSpotlight": "Request The Spotlight",
"openCountdowns": "Countdowns", "openCountdowns": "Countdowns"
"adversaryCategories": {
"friendly": "Friendly",
"adversaries": "Adversaries"
}
}, },
"CompendiumBrowserSettings": { "CompendiumBrowserSettings": {
"title": "Enable Compendiums", "title": "Enable Compendiums",

View file

@ -38,9 +38,6 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
tag: 'form', tag: 'form',
classes: ['daggerheart', 'views', 'dh-style', 'dialog', 'tag-team-dialog'], classes: ['daggerheart', 'views', 'dh-style', 'dialog', 'tag-team-dialog'],
position: { width: 550, height: 'auto' }, position: { width: 550, height: 'auto' },
window: {
icon: 'fa-solid fa-user-group'
},
actions: { actions: {
toggleSelectMember: TagTeamDialog.#toggleSelectMember, toggleSelectMember: TagTeamDialog.#toggleSelectMember,
startTagTeamRoll: TagTeamDialog.#startTagTeamRoll, startTagTeamRoll: TagTeamDialog.#startTagTeamRoll,

View file

@ -156,7 +156,6 @@ export default class DhCharacterLevelUp extends LevelUpBase {
if (multiclasses?.[0]) { if (multiclasses?.[0]) {
const data = multiclasses[0]; const data = multiclasses[0];
const multiclass = data.data.length > 0 ? await foundry.utils.fromUuid(data.data[0]) : {}; const multiclass = data.data.length > 0 ? await foundry.utils.fromUuid(data.data[0]) : {};
const subclasses = (await multiclass?.system?.fetchSubclasses()) ?? [];
context.multiclass = { context.multiclass = {
...data, ...data,
@ -176,12 +175,13 @@ export default class DhCharacterLevelUp extends LevelUpBase {
alreadySelected alreadySelected
}; };
}) ?? [], }) ?? [],
subclasses: subclasses.map(subclass => ({ subclasses:
...subclass, multiclass?.system?.subclasses.map(subclass => ({
uuid: subclass.uuid, ...subclass,
selected: data.secondaryData.subclass === subclass.uuid, uuid: subclass.uuid,
disabled: data.secondaryData.subclass && data.secondaryData.subclass !== subclass.uuid selected: data.secondaryData.subclass === subclass.uuid,
})), disabled: data.secondaryData.subclass && data.secondaryData.subclass !== subclass.uuid
})) ?? [],
compendium: 'classes', compendium: 'classes',
limit: 1 limit: 1
}; };

View file

@ -44,10 +44,7 @@ export default class Party extends DHBaseActorSheet {
static PARTS = { static PARTS = {
header: { template: 'systems/daggerheart/templates/sheets/actors/party/header.hbs' }, header: { template: 'systems/daggerheart/templates/sheets/actors/party/header.hbs' },
tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }, tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' },
partyMembers: { partyMembers: { template: 'systems/daggerheart/templates/sheets/actors/party/party-members.hbs' },
template: 'systems/daggerheart/templates/sheets/actors/party/party-members.hbs',
scrollable: ['']
},
/* NOT YET IMPLEMENTED */ /* NOT YET IMPLEMENTED */
// projects: { // projects: {
// template: 'systems/daggerheart/templates/sheets/actors/party/projects.hbs', // template: 'systems/daggerheart/templates/sheets/actors/party/projects.hbs',

View file

@ -56,9 +56,7 @@ export default class DhCombatTracker extends foundry.applications.sidebar.tabs.C
async _prepareTrackerContext(context, options) { async _prepareTrackerContext(context, options) {
await super._prepareTrackerContext(context, options); await super._prepareTrackerContext(context, options);
const npcs = context.turns?.filter(x => x.isNPC) ?? []; const adversaries = context.turns?.filter(x => x.isNPC) ?? [];
const adversaries = npcs.filter(x => x.disposition !== CONST.TOKEN_DISPOSITIONS.FRIENDLY);
const friendlies = npcs.filter(x => x.disposition === CONST.TOKEN_DISPOSITIONS.FRIENDLY);
const characters = context.turns?.filter(x => !x.isNPC) ?? []; const characters = context.turns?.filter(x => !x.isNPC) ?? [];
const spotlightQueueEnabled = game.settings.get( const spotlightQueueEnabled = game.settings.get(
CONFIG.DH.id, CONFIG.DH.id,
@ -77,7 +75,6 @@ export default class DhCombatTracker extends foundry.applications.sidebar.tabs.C
Object.assign(context, { Object.assign(context, {
actionTokens: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.variantRules).actionTokens, actionTokens: game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.variantRules).actionTokens,
adversaries, adversaries,
friendlies,
allCharacters: characters, allCharacters: characters,
characters: characters.filter(x => !spotlightQueueEnabled || x.system.spotlight.requestOrderIndex == 0), characters: characters.filter(x => !spotlightQueueEnabled || x.system.spotlight.requestOrderIndex == 0),
spotlightRequests spotlightRequests
@ -132,8 +129,7 @@ export default class DhCombatTracker extends foundry.applications.sidebar.tabs.C
active: index === combat.turn, active: index === combat.turn,
canPing: combatant.sceneId === canvas.scene?.id && game.user.hasPermission('PING_CANVAS'), canPing: combatant.sceneId === canvas.scene?.id && game.user.hasPermission('PING_CANVAS'),
type: combatant.actor?.system?.type, type: combatant.actor?.system?.type,
img: await this._getCombatantThumbnail(combatant), img: await this._getCombatantThumbnail(combatant)
disposition: combatant.token.disposition
}; };
turn.css = [turn.active ? 'active' : null, hidden ? 'hide' : null, isDefeated ? 'defeated' : null].filterJoin( turn.css = [turn.active ? 'active' : null, hidden ? 'hide' : null, isDefeated ? 'defeated' : null].filterJoin(

View file

@ -21,10 +21,10 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
id: 'countdowns', id: 'countdowns',
tag: 'div', tag: 'div',
classes: ['daggerheart', 'dh-style', 'countdowns'], classes: ['daggerheart', 'dh-style', 'countdowns', 'faded-ui'],
window: { window: {
icon: 'fa-solid fa-clock-rotate-left', icon: 'fa-solid fa-clock-rotate-left',
frame: false, frame: true,
title: 'DAGGERHEART.UI.Countdowns.title', title: 'DAGGERHEART.UI.Countdowns.title',
positioned: false, positioned: false,
resizable: false, resizable: false,
@ -62,6 +62,20 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
if (iconOnly) frame.classList.add('icon-only'); if (iconOnly) frame.classList.add('icon-only');
else frame.classList.remove('icon-only'); else frame.classList.remove('icon-only');
const header = frame.querySelector('.window-header');
header.querySelector('button[data-action="close"]').remove();
header.querySelector('button[data-action="toggleControls"]').remove();
if (game.user.isGM) {
const editTooltip = game.i18n.localize('DAGGERHEART.APPLICATIONS.CountdownEdit.editTitle');
const editButton = `<a style="margin-right: 8px;" class="header-control" data-tooltip="${editTooltip}" aria-label="${editTooltip}" data-action="editCountdowns"><i class="fa-solid fa-wrench"></i></a>`;
header.insertAdjacentHTML('beforeEnd', editButton);
}
const minimizeTooltip = game.i18n.localize('DAGGERHEART.UI.Countdowns.toggleIconMode');
const minimizeButton = `<a class="header-control" data-tooltip="${minimizeTooltip}" aria-label="${minimizeTooltip}" data-action="toggleViewMode"><i class="fa-solid fa-down-left-and-up-right-to-center"></i></a>`;
header.insertAdjacentHTML('beforeEnd', minimizeButton);
return frame; return frame;
} }

View file

@ -109,8 +109,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
CONFIG.DH.id, CONFIG.DH.id,
CONFIG.DH.FLAGS[`${this.compendiumBrowserTypeKey}`].position CONFIG.DH.FLAGS[`${this.compendiumBrowserTypeKey}`].position
); );
options.position = userPresetPosition ?? ItemBrowser.DEFAULT_OPTIONS.position; options.position = userPresetPosition ?? ItemBrowser.DEFAULT_OPTIONS.position;
delete options.position.zIndex;
if (!userPresetPosition) { if (!userPresetPosition) {
const width = noFolder === true || lite === true ? 600 : 850; const width = noFolder === true || lite === true ? 600 : 850;

View file

@ -249,6 +249,9 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
/** @inheritDoc */ /** @inheritDoc */
_drawBar(number, bar, data) { _drawBar(number, bar, data) {
const val = Number(data.value);
const pct = Math.clamp(val, 0, data.max) / data.max;
// Determine sizing // Determine sizing
const { width, height } = this.document.getSize(); const { width, height } = this.document.getSize();
const s = canvas.dimensions.uiScale; const s = canvas.dimensions.uiScale;
@ -256,19 +259,17 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
const bh = 8 * (this.document.height >= 2 ? 1.5 : 1) * s; const bh = 8 * (this.document.height >= 2 ? 1.5 : 1) * s;
// Determine the color to use // Determine the color to use
const Color = foundry.utils.Color; const fillColor =
const fillColor = number === 0 ? Color.fromRGB([1, 0, 0]) : Color.fromString('#0032b1'); number === 0 ? foundry.utils.Color.fromRGB([1, 0, 0]) : foundry.utils.Color.fromString('#0032b1');
const emptyColor = Color.fromRGB([0, 0, 0]);
// Draw the bar (accounting floating point numbers from bar animations) // Draw the bar
const widthUnit = bw / Math.ceil(data.max); const widthUnit = bw / data.max;
bar.clear().lineStyle(s, 0x000000, 1.0); bar.clear().lineStyle(s, 0x000000, 1.0);
const sections = [...Array(Math.ceil(data.max)).keys()]; const sections = [...Array(data.max).keys()];
for (const mark of sections) { for (let mark of sections) {
const x = mark * widthUnit; const x = mark * widthUnit;
const marked = mark < Math.ceil(data.value); const marked = mark + 1 <= data.value;
const remainder = mark === Math.ceil(data.value) - 1 ? data.value % 1 : 0; const color = marked ? fillColor : foundry.utils.Color.fromRGB([0, 0, 0]);
const color = !marked ? emptyColor : remainder ? emptyColor.mix(fillColor, remainder) : fillColor;
if (mark === 0 || mark === sections.length - 1) { if (mark === 0 || mark === sections.length - 1) {
bar.beginFill(color, marked ? 1.0 : 0.5).drawRect(x, 0, widthUnit, bh, 2 * s); // Would like drawRoundedRect, but it's very troublsome with the corners. Leaving for now. bar.beginFill(color, marked ? 1.0 : 0.5).drawRect(x, 0, widthUnit, bh, 2 * s); // Would like drawRoundedRect, but it's very troublsome with the corners. Leaving for now.
} else { } else {

View file

@ -350,9 +350,7 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
async getBattlepointHTML(combatId) { async getBattlepointHTML(combatId) {
const combat = game.combats.get(combatId); const combat = game.combats.get(combatId);
const adversaries = const adversaries =
combat.turns combat.turns?.filter(x => x.actor?.isNPC)?.map(x => ({ ...x.actor, type: x.actor.system.type })) ?? [];
?.filter(x => x.actor?.isNPC && x.token.disposition === CONST.TOKEN_DISPOSITIONS.HOSTILE)
?.map(x => ({ ...x.actor, type: x.actor.system.type })) ?? [];
const characters = combat.turns?.filter(x => !x.isNPC && x.actor) ?? []; const characters = combat.turns?.filter(x => !x.isNPC && x.actor) ?? [];
const nrCharacters = characters.length; const nrCharacters = characters.length;

View file

@ -114,6 +114,9 @@
.card-preview-container { .card-preview-container {
flex: 1; flex: 1;
}
.card-preview-container {
border-color: light-dark(@dark-blue, @golden); border-color: light-dark(@dark-blue, @golden);
} }

View file

@ -1,7 +1,9 @@
h1 { h1 {
color: light-dark(@dark-blue, @golden); color: light-dark(@dark-blue, @golden);
font: 700 var(--font-size-24) var(--dh-font-subtitle); font-family: var(--dh-font-subtitle);
font-size: var(--font-size-24);
text-align: center; text-align: center;
font-weight: 700;
} }
header { header {

View file

@ -1,5 +1,10 @@
@import './attribution/sheet.less'; @import './attribution/sheet.less';
@import './level-up/index.less'; @import './level-up/navigation-container.less';
@import './level-up/selections-container.less';
@import './level-up/sheet.less';
@import './level-up/summary-container.less';
@import './level-up/tiers-container.less';
@import './level-up/footer.less';
@import './resource-dice/sheet.less'; @import './resource-dice/sheet.less';

View file

@ -1,6 +0,0 @@
@import './navigation-container.less';
@import './selections-container.less';
@import './summary-container.less';
@import './tiers-container.less';
@import './footer.less';
@import './sheet.less';

View file

@ -3,7 +3,12 @@
.daggerheart.levelup { .daggerheart.levelup {
.levelup-selections-container { .levelup-selections-container {
overflow: auto;
padding: 10px 0; padding: 10px 0;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
max-height: 500px;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%);
.achievement-experience-cards { .achievement-experience-cards {
display: flex; display: flex;
@ -40,22 +45,20 @@
.levelup-card-selection { .levelup-card-selection {
display: flex; display: flex;
flex-wrap: wrap;
justify-content: center; justify-content: center;
gap: 40px; gap: 40px;
height: 190px; height: 190px;
align-items: stretch;
.card-preview-container { .card-preview-container {
height: 190px; height: 100%;
max-width: 200px; max-width: 200px;
} }
.levelup-domains-selection-container { .levelup-domains-selection-container {
display: grid; display: flex;
grid-auto-flow: column; flex-direction: column;
grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px;
height: 100%;
gap: 4px;
.levelup-domain-selection-container { .levelup-domain-selection-container {
display: flex; display: flex;
@ -63,8 +66,6 @@
align-items: center; align-items: center;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
overflow: hidden;
width: 93px;
&.disabled { &.disabled {
pointer-events: none; pointer-events: none;
@ -73,20 +74,16 @@
.levelup-domain-label { .levelup-domain-label {
position: absolute; position: absolute;
left: 0;
right: 0;
bottom: 0;
text-align: center; text-align: center;
top: 4px;
background: grey; background: grey;
padding: 2px 12px; padding: 0 12px;
border-radius: 6px;
z-index: 2; z-index: 2;
line-height: 1;
} }
img { img {
object-fit: cover; height: 124px;
width: auto;
height: auto;
&.svg { &.svg {
filter: @beige-filter; filter: @beige-filter;
@ -95,18 +92,17 @@
.levelup-domain-selected { .levelup-domain-selected {
position: absolute; position: absolute;
height: 40px; height: 54px;
width: 40px; width: 54px;
border-radius: 50%; border-radius: 50%;
border: 2px solid @golden; border: 2px solid;
font-size: var(--font-size-24); font-size: var(--font-size-48);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: @dark-golden; background-image: url(../assets/parchments/dh-parchment-light.png);
color: @golden; color: var(--color-dark-5);
top: 10px; top: calc(50% - 29px);
z-index: 2;
i { i {
position: relative; position: relative;

View file

@ -11,11 +11,9 @@
}); });
.daggerheart.levelup { .daggerheart.levelup {
.tab.active { .window-content {
flex: 1; max-height: 960px;
overflow: auto; overflow: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
div[data-application-part='form'] { div[data-application-part='form'] {
@ -24,13 +22,15 @@
gap: 8px; gap: 8px;
} }
.section-container { section {
display: flex; .section-container {
flex-direction: row; display: flex;
justify-content: center; flex-direction: row;
gap: 20px 8px; justify-content: center;
margin-top: 8px; gap: 20px 8px;
flex-wrap: wrap; margin-top: 8px;
flex-wrap: wrap;
}
} }
.levelup-footer { .levelup-footer {

View file

@ -17,6 +17,8 @@
.levelup-summary-container { .levelup-summary-container {
overflow: auto; overflow: auto;
padding: 10px 0; padding: 10px 0;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
max-height: 700px; max-height: 700px;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%);

View file

@ -7,85 +7,39 @@
} }
.daggerheart.dialog.dh-style.views.tag-team-dialog { .daggerheart.dialog.dh-style.views.tag-team-dialog {
.initialization-container.active { .initialization-container {
display: flex;
flex-direction: column;
gap: var(--spacer-4);
h2 { h2 {
text-align: center; text-align: center;
} }
.members-container { .members-container {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: 1fr 1fr 1fr 1fr;
justify-content: center;
gap: 8px; gap: 8px;
// Force 3 columns for 5 -> 6 players
&:has(> :nth-child(5)):not(:has(> :nth-child(7))) {
padding-left: 10%;
padding-right: 10%;
}
.member-container { .member-container {
position: relative; position: relative;
display: flex; display: flex;
align-items: stretch;
justify-content: center; justify-content: center;
border-radius: 6px;
border: 1px solid light-dark(@dark-blue, @golden);
overflow: hidden;
height: 11.5rem;
width: 122px;
&.inactive { &.inactive {
border-color: light-dark(@dark-blue-40, @golden-40); opacity: 0.4;
img {
opacity: 0.4;
}
} }
.member-name { .member-name {
--shadow-color: light-dark(white, black);
position: absolute; position: absolute;
bottom: 0; padding: 0 2px;
left: 0; border: 1px solid;
right: 0; border-radius: 6px;
margin-top: 4px;
display: flex; color: light-dark(@dark, @beige);
flex-direction: column; background-image: url('../assets/parchments/dh-parchment-dark.png');
justify-content: flex-end;
min-height: 4rem;
padding: 5rem 4px var(--spacer-8) 4px;
text-align: center; text-align: center;
color: var(--color-text-primary);
text-shadow: 1px 1px 2px var(--shadow-color), 0 0 10px var(--shadow-color);
// Basic "scrim" gradient
background-image: linear-gradient(
to top,
var(--shadow-color),
rgba(from var(--shadow-color) r g b / 0.834) 10.6%,
rgba(from var(--shadow-color) r g b / 0.541) 34%,
rgba(from var(--shadow-color) r g b / 0.382) 47%,
rgba(from var(--shadow-color) r g b / 0.194) 65%,
transparent 100%
);
} }
img { img {
object-fit: cover; border-radius: 6px;
object-position: top center; border: 1px solid light-dark(@dark-blue, @golden);
flex: 1;
}
.leader-mark {
position: absolute;
top: 4px;
right: 4px;
text-shadow: var(--shadow-text-stroke), 0 0 20px black;
} }
} }
} }

View file

@ -1,10 +1,4 @@
.daggerheart.dialog.dh-style.views.tag-team-dialog .window-content { .daggerheart.dialog.dh-style.views.tag-team-dialog {
h1 {
color: light-dark(@dark-blue, @golden);
font: 700 var(--font-size-24) var(--dh-font-subtitle);
text-align: center;
}
.team-container { .team-container {
display: flex; display: flex;
gap: 16px; gap: 16px;

View file

@ -96,6 +96,8 @@
textarea { textarea {
color: light-dark(@dark, @beige); color: light-dark(@dark, @beige);
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
button:where(:not(.plain)) { button:where(:not(.plain)) {
@ -267,7 +269,6 @@
border-radius: 3px; border-radius: 3px;
background-color: light-dark(@dark-blue, @golden); background-color: light-dark(@dark-blue, @golden);
color: light-dark(@beige, @dark-blue); color: light-dark(@beige, @dark-blue);
margin-bottom: var(--spacer-4);
} }
} }
@ -802,7 +803,6 @@
.preview-image-container { .preview-image-container {
width: 100%; width: 100%;
min-height: 0;
flex-grow: 1; flex-grow: 1;
object-fit: cover; object-fit: cover;
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;

View file

@ -5,6 +5,8 @@
.tab.features { .tab.features {
padding: 0 10px; padding: 0 10px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.feature-list { .feature-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -12,11 +12,6 @@
} }
.daggerheart.dh-style { .daggerheart.dh-style {
* {
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
}
.hint { .hint {
flex: 0 0 100%; flex: 0 0 100%;
margin: 0; margin: 0;

View file

@ -10,6 +10,8 @@
background-color: transparent; background-color: transparent;
} }
.editor-content { .editor-content {
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
h1 { h1 {
font-size: var(--font-size-32); font-size: var(--font-size-32);
} }

View file

@ -5,6 +5,8 @@
.tab.features { .tab.features {
max-height: 450px; max-height: 450px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.add-feature-btn { .add-feature-btn {
width: 100%; width: 100%;

View file

@ -5,6 +5,8 @@
.tab.adversaries { .tab.adversaries {
max-height: 450px; max-height: 450px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.add-action-btn { .add-action-btn {
width: 100%; width: 100%;

View file

@ -5,6 +5,8 @@
.tab.features { .tab.features {
max-height: 450px; max-height: 450px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.add-feature-btn { .add-feature-btn {
width: 100%; width: 100%;

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -9,6 +9,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -287,11 +287,12 @@
padding-top: 10px; padding-top: 10px;
padding-bottom: 20px; padding-bottom: 20px;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%);
scrollbar-width: thin;
scrollbar-gutter: stable; scrollbar-gutter: stable;
&:hover { &:hover {
overflow-y: auto; overflow-y: auto;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }

View file

@ -9,15 +9,12 @@
gap: 10px; gap: 10px;
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 98%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 10%, black 98%, transparent 100%);
padding-top: 8px; padding-bottom: 10px;
padding-bottom: 20px;
height: 100%; height: 100%;
}
.characteristics-section { scrollbar-width: thin;
gap: 20px; scrollbar-color: light-dark(@dark-blue, @golden) transparent;
padding: 0 10px;
} }
.biography-section { .biography-section {

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%);
padding: 20px 0; padding: 20px 0;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -92,6 +92,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 10%, black 98%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 10%, black 98%, transparent 100%);
padding: 20px 0; padding: 20px 0;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -551,9 +551,11 @@
padding-bottom: 20px; padding-bottom: 20px;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
scrollbar-gutter: stable; scrollbar-gutter: stable;
scrollbar-width: thin;
&:hover { &:hover {
overflow-y: auto; overflow-y: auto;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }

View file

@ -9,6 +9,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -9,6 +9,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%); mask-image: linear-gradient(0deg, transparent 0%, black 5%);
padding-bottom: 20px; padding-bottom: 20px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -20,6 +20,8 @@
.tab { .tab {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
&.active { &.active {
overflow: hidden; overflow: hidden;

View file

@ -10,6 +10,9 @@
overflow-y: auto; overflow-y: auto;
mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, black 5%, black 95%, transparent 100%);
padding: 20px 0; padding: 20px 0;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }
} }

View file

@ -20,6 +20,8 @@
.tab { .tab {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
scrollbar-gutter: stable; scrollbar-gutter: stable;
&.active { &.active {

View file

@ -5,5 +5,7 @@
section.tab { section.tab {
height: 400px; height: 400px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }

View file

@ -14,5 +14,7 @@
section.tab { section.tab {
height: 400px; height: 400px;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
} }

View file

@ -60,6 +60,8 @@
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
max-height: 500px; max-height: 500px;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.countdown-edit-outer-container { .countdown-edit-outer-container {
display: flex; display: flex;

View file

@ -1,47 +1,28 @@
@import '../../utils/colors.less'; @import '../../utils/colors.less';
@import '../../utils/fonts.less'; @import '../../utils/fonts.less';
#interface.theme-dark { .theme-dark {
.daggerheart.dh-style.countdowns { .daggerheart.dh-style.countdowns {
--background: url(../assets/parchments/dh-parchment-dark.png); background-image: url(../assets/parchments/dh-parchment-dark.png);
}
}
#interface.theme-light { .window-header {
.daggerheart.dh-style.countdowns { background-image: url(../assets/parchments/dh-parchment-dark.png);
--background: url('../assets/parchments/dh-parchment-light.png') no-repeat center; }
} }
} }
.daggerheart.dh-style.countdowns { .daggerheart.dh-style.countdowns {
position: relative; position: relative;
border: 0; border: 0;
border-radius: 4px;
box-shadow: none; box-shadow: none;
color: var(--color-text-primary);
width: 300px; width: 300px;
pointer-events: all; pointer-events: all;
align-self: flex-end; align-self: flex-end;
transition: 0.3s right ease-in-out; transition: 0.3s right ease-in-out;
display: flex; .window-title {
flex-direction: column; font-family: @font-body;
&::before {
content: ' ';
position: absolute;
inset: 0;
background: var(--background);
border-radius: 4px;
opacity: var(--ui-fade-opacity);
transition: opacity var(--ui-fade-duration);
}
:not(.performance-low, .noblur) {
backdrop-filter: blur(5px);
}
&:hover::before {
opacity: 1;
} }
#ui-right:has(#effects-display .effect-container) & { #ui-right:has(#effects-display .effect-container) & {
@ -53,136 +34,123 @@
min-width: 180px; min-width: 180px;
} }
.countdowns-header, .window-header {
.countdowns-container { cursor: default;
position: relative; // allow rendering over the background border-bottom: 0;
} }
.countdowns-header { .window-content {
display: flex; padding-top: 4px;
align-items: center; padding-bottom: 16px;
gap: 0.25rem;
flex: 0 0 36px;
padding: 0 0.5rem;
overflow: hidden;
font-size: var(--font-size-13);
.window-title {
font-family: @font-body;
flex: 1;
}
.header-control + .header-control {
margin-left: 8px;
}
}
.countdowns-container {
display: flex;
flex-direction: column;
gap: 8px;
padding: 4px var(--spacer-16) var(--spacer-16) var(--spacer-16);
overflow: auto; overflow: auto;
max-height: 312px; max-height: 312px;
.countdown-container { .countdowns-container {
display: flex; display: flex;
width: 100%; flex-direction: column;
gap: 8px;
&.icon-only { .countdown-container {
gap: 8px; display: flex;
width: 100%;
.countdown-main-container { &.icon-only {
.countdown-content { gap: 8px;
justify-content: center;
.countdown-tools { .countdown-main-container {
gap: 8px; .countdown-content {
justify-content: center;
.countdown-tools {
gap: 8px;
}
} }
} }
} }
}
.countdown-main-container { .countdown-main-container {
width: 100%; width: 100%;
display: flex;
align-items: center;
gap: 16px;
img {
width: 44px;
height: 44px;
border-radius: 6px;
}
.countdown-content {
flex: 1;
display: flex; display: flex;
flex-direction: column; align-items: center;
justify-content: space-between; gap: 16px;
.countdown-tools { img {
width: 44px;
height: 44px;
border-radius: 6px;
}
.countdown-content {
flex: 1;
display: flex; display: flex;
align-items: center; flex-direction: column;
justify-content: space-between; justify-content: space-between;
.countdown-tool-controls { .countdown-tools {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16px; justify-content: space-between;
}
.progress-tag { .countdown-tool-controls {
border: 1px solid; display: flex;
border-radius: 4px; align-items: center;
padding: 2px 4px; gap: 16px;
background-color: light-dark(@beige, @dark-blue); }
}
.countdown-tool-icons { .progress-tag {
display: flex; border: 1px solid;
align-items: center; border-radius: 4px;
gap: 8px;
.looping-container {
position: relative;
border: 1px solid light-dark(@dark-blue, white);
border-radius: 6px;
padding: 2px 4px; padding: 2px 4px;
background-color: light-dark(@beige, @dark-blue);
}
&.should-loop { .countdown-tool-icons {
background: light-dark(@golden, @golden); display: flex;
align-items: center;
gap: 8px;
.loop-marker { .looping-container {
color: light-dark(@dark-blue, @dark-blue); position: relative;
border: 1px solid light-dark(@dark-blue, white);
border-radius: 6px;
padding: 2px 4px;
&.should-loop {
background: light-dark(@golden, @golden);
.loop-marker {
color: light-dark(@dark-blue, @dark-blue);
}
} }
}
.direction-marker { .direction-marker {
position: absolute; position: absolute;
font-size: 10px; font-size: 10px;
filter: drop-shadow(0 0 3px black); filter: drop-shadow(0 0 3px black);
top: -3px; top: -3px;
}
} }
} }
} }
} }
} }
} /* Keep incase we want to reintroduce the player pips */
/* Keep incase we want to reintroduce the player pips */ // .countdown-access-container {
// .countdown-access-container { // display: grid;
// display: grid; // grid-template-columns: 1fr 1fr 1fr;
// grid-template-columns: 1fr 1fr 1fr; // grid-auto-rows: min-content;
// grid-auto-rows: min-content; // width: 38px;
// width: 38px; // gap: 4px;
// gap: 4px;
// .countdown-access { // .countdown-access {
// height: 10px; // height: 10px;
// width: 10px; // width: 10px;
// border-radius: 50%; // border-radius: 50%;
// border: 1px solid light-dark(@dark-blue, @beige-80); // border: 1px solid light-dark(@dark-blue, @beige-80);
// content: ''; // content: '';
// } // }
// } // }
}
} }
} }
} }

View file

@ -237,6 +237,8 @@
.compendium-sidebar > .folder-list { .compendium-sidebar > .folder-list {
overflow-y: auto; overflow-y: auto;
scrollbar-gutter: stable; scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
} }
.item-list-header, .item-list-header,

View file

@ -55,6 +55,8 @@
gap: 8px; gap: 8px;
max-height: 184px; max-height: 184px;
overflow: auto; overflow: auto;
scrollbar-width: thin;
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
.domain-container { .domain-container {
position: relative; position: relative;

View file

@ -21,6 +21,8 @@
flex-direction: column; flex-direction: column;
gap: 2px; gap: 2px;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.group { .group {
font-weight: bold; font-weight: bold;
font-size: var(--font-size-14); font-size: var(--font-size-14);

View file

@ -48,6 +48,9 @@ aside[role='tooltip']:has(div.daggerheart.dh-style.tooltip),
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
.tooltip-tag { .tooltip-tag {
display: flex; display: flex;
gap: 10px; gap: 10px;

View file

@ -2,7 +2,7 @@
"id": "daggerheart", "id": "daggerheart",
"title": "Daggerheart", "title": "Daggerheart",
"description": "An unofficial implementation of the Daggerheart system", "description": "An unofficial implementation of the Daggerheart system",
"version": "2.2.5", "version": "2.2.4",
"compatibility": { "compatibility": {
"minimum": "14.359", "minimum": "14.359",
"verified": "14.361", "verified": "14.361",
@ -10,16 +10,11 @@
}, },
"url": "https://github.com/Foundryborne/daggerheart", "url": "https://github.com/Foundryborne/daggerheart",
"manifest": "https://raw.githubusercontent.com/Foundryborne/daggerheart/v14/system.json", "manifest": "https://raw.githubusercontent.com/Foundryborne/daggerheart/v14/system.json",
"download": "https://github.com/Foundryborne/daggerheart/releases/download/2.2.5/system.zip", "download": "https://github.com/Foundryborne/daggerheart/releases/download/2.2.4/system.zip",
"authors": [ "authors": [
{ {
"name": "WBHarry" "name": "WBHarry"
}, },
{
"name": "Supe",
"url": "https://github.com/CarlosFdez",
"discord": "supe"
},
{ {
"name": "cptn-cosmo", "name": "cptn-cosmo",
"url": "https://github.com/cptn-cosmo", "url": "https://github.com/cptn-cosmo",
@ -303,11 +298,5 @@
}, },
"background": "systems/daggerheart/assets/logos/FoundrybornBackgroundLogo.png", "background": "systems/daggerheart/assets/logos/FoundrybornBackgroundLogo.png",
"primaryTokenAttribute": "resources.hitPoints", "primaryTokenAttribute": "resources.hitPoints",
"secondaryTokenAttribute": "resources.stress", "secondaryTokenAttribute": "resources.stress"
"flags": {
"hotReload": {
"extensions": ["css", "hbs", "json"],
"paths": ["styles/daggerheart.css", "templates", "lang"]
}
}
} }

View file

@ -1,18 +1,13 @@
<section class="initialization-container tab {{#if tabs.initialization.active}} active{{/if}}" data-group="{{tabs.initialization.group}}" data-tab="{{tabs.initialization.id}}"> <section class="initialization-container tab {{#if tabs.initialization.active}} active{{/if}}" data-group="{{tabs.initialization.group}}" data-tab="{{tabs.initialization.id}}">
<h1>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.selectParticipants"}}</h1> <h2>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.selectParticipants"}}</h2>
<div class="members-container"> <div class="members-container">
{{#each memberSelection as |member|}} {{#each memberSelection as |member|}}
<a <a
class="member-container {{#unless member.selected}}inactive {{#if ../allselected}}locked{{/if}}{{/unless}}" class="member-container {{#unless member.selected}}inactive {{#if ../allselected}}locked{{/if}}{{/unless}}"
data-action="toggleSelectMember" data-id="{{member.id}}" {{#if (and (not member.selected) ../allSelected)}}disabled{{/if}} data-action="toggleSelectMember" data-id="{{member.id}}" {{#if (and (not member.selected) ../allSelected)}}disabled{{/if}}
> >
<img src="{{member.img}}" />
<span class="member-name">{{member.name}}</span> <span class="member-name">{{member.name}}</span>
{{#if (eq @root.initiator.memberId member.id)}} <img src="{{member.img}}" />
<div class="leader-mark">
<i class="fa-solid fa-crown" inert></i>
</div>
{{/if}}
</a> </a>
{{/each}} {{/each}}
</div> </div>
@ -35,13 +30,10 @@
</div> </div>
<footer> <footer>
<button type="button" data-action="startTagTeamRoll" {{#unless canStartTagTeam}}disabled{{/unless}}>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.startTagTeamRoll"}} <i class="fa-solid fa-arrow-right-long"></i></button>
<div class="finish-tools {{#unless canStartTagTeam}}inactive{{/unless}}"> <div class="finish-tools {{#unless canStartTagTeam}}inactive{{/unless}}">
<span>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.openDialogForAll"}}</span> <span>{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.openDialogForAll"}}</span>
<input type="checkbox" class="openforall-field" {{#unless canStartTagTeam}}disabled{{/unless}} {{checked openForAllPlayers}} /> <input type="checkbox" class="openforall-field" {{#unless canStartTagTeam}}disabled{{/unless}} {{checked openForAllPlayers}} />
</div> </div>
<button type="button" data-action="startTagTeamRoll" {{#unless canStartTagTeam}}disabled{{/unless}}>
<i class="fa-solid fa-arrow-right-long" inert></i>
{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.startTagTeamRoll"}}
</button>
</footer> </footer>
</section> </section>

View file

@ -32,10 +32,7 @@
<div class="finish-container"> <div class="finish-container">
<button type="button" data-action="cancelRoll">{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.cancelTagTeamRoll"}}</button> <button type="button" data-action="cancelRoll">{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.cancelTagTeamRoll"}}</button>
<button type="button" data-action="finishRoll" {{#if hintText}}disabled{{/if}} class="finish-button"> <button type="button" data-action="finishRoll" {{#if hintText}}disabled{{/if}} class="finish-button">{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.finishTagTeamRoll"}}</button>
<i class="fa-solid fa-dice" inert></i>
{{localize "DAGGERHEART.APPLICATIONS.TagTeamSelect.finishTagTeamRoll"}}
</button>
</div> </div>
</div> </div>
</section> </section>

View file

@ -43,6 +43,45 @@
</fieldset> </fieldset>
{{/if}} {{/if}}
{{#if (gt this.domainCards.length 0)}}
<div class="card-section">
<div class="card-section-header">
<side-line-div class="invert"></side-line-div>
<h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.domainCards"}}</h3>
<side-line-div></side-line-div>
</div>
<div class="tip">
</div>
<div class="levelup-card-selection domain-cards">
{{#each this.domainCards}}
{{#> "systems/daggerheart/templates/components/card-preview.hbs" this }}
{{#each this.emptySubtexts}}
<div class="">{{this}}</div>
{{/each}}
{{/"systems/daggerheart/templates/components/card-preview.hbs"}}
{{/each}}
</div>
</div>
{{/if}}
{{#if (gt this.subclassCards.length 0)}}
<div class="card-section">
<div class="card-section-header">
<side-line-div class="invert"></side-line-div>
<h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.subclass"}}</h3>
<side-line-div></side-line-div>
</div>
<div class="levelup-card-selection subclass-cards">
{{#each this.subclassCards}}
{{> "systems/daggerheart/templates/levelup/parts/selectable-card-preview.hbs" img=this.img header=this.featureLabel name=this.name path=this.path selected=this.selected uuid=this.uuid isMulticlass=this.isMulticlass featureState=this.featureState disabled=this.disabled }}
{{/each}}
</div>
</div>
{{/if}}
{{#if this.multiclass}} {{#if this.multiclass}}
<div class="card-section"> <div class="card-section">
<div class="card-section-header"> <div class="card-section-header">
@ -89,45 +128,6 @@
</div> </div>
{{/if}} {{/if}}
{{#if (gt this.domainCards.length 0)}}
<div class="card-section">
<div class="card-section-header">
<side-line-div class="invert"></side-line-div>
<h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.domainCards"}}</h3>
<side-line-div></side-line-div>
</div>
<div class="tip">
</div>
<div class="levelup-card-selection domain-cards">
{{#each this.domainCards}}
{{#> "systems/daggerheart/templates/components/card-preview.hbs" this }}
{{#each this.emptySubtexts}}
<div class="">{{this}}</div>
{{/each}}
{{/"systems/daggerheart/templates/components/card-preview.hbs"}}
{{/each}}
</div>
</div>
{{/if}}
{{#if (gt this.subclassCards.length 0)}}
<div class="card-section">
<div class="card-section-header">
<side-line-div class="invert"></side-line-div>
<h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.subclass"}}</h3>
<side-line-div></side-line-div>
</div>
<div class="levelup-card-selection subclass-cards">
{{#each this.subclassCards}}
{{> "systems/daggerheart/templates/levelup/parts/selectable-card-preview.hbs" img=this.img header=this.featureLabel name=this.name path=this.path selected=this.selected uuid=this.uuid isMulticlass=this.isMulticlass featureState=this.featureState disabled=this.disabled }}
{{/each}}
</div>
</div>
{{/if}}
{{#if this.vicious}} {{#if this.vicious}}
<div> <div>
<h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.vicious"}}</h3> <h3>{{localize "DAGGERHEART.APPLICATIONS.Levelup.summary.vicious"}}</h3>

View file

@ -4,7 +4,9 @@
data-group='{{tabs.biography.group}}' data-group='{{tabs.biography.group}}'
> >
<div class="items-section"> <div class="items-section">
<div class="characteristics-section flexrow"> <fieldset class="flex">
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.characteristics'}}</legend>
<div class="input"> <div class="input">
<span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span> <span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span>
{{formInput systemFields.biography.fields.characteristics.fields.pronouns value=source.system.biography.characteristics.pronouns enriched=source.system.biography.characteristics.pronouns localize=true toggled=true}} {{formInput systemFields.biography.fields.characteristics.fields.pronouns value=source.system.biography.characteristics.pronouns enriched=source.system.biography.characteristics.pronouns localize=true toggled=true}}
@ -19,14 +21,14 @@
<span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span> <span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span>
{{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}} {{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}}
</div> </div>
</div> </fieldset>
<fieldset class="glassy biography-section"> <fieldset class="biography-section">
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend> <legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend>
{{formInput background.field value=background.value enriched=background.enriched toggled=true}} {{formInput background.field value=background.value enriched=background.enriched toggled=true}}
</fieldset> </fieldset>
<fieldset class="glassy biography-section"> <fieldset class="biography-section">
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend> <legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend>
{{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}} {{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}}
</fieldset> </fieldset>

View file

@ -2,25 +2,26 @@
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>

View file

@ -5,10 +5,7 @@
{{#if (gt this.characters.length 0)}} {{#if (gt this.characters.length 0)}}
{{> 'systems/daggerheart/templates/ui/combatTracker/combatTrackerSection.hbs' this title=(localize "DAGGERHEART.GENERAL.Character.plural") turns=this.characters}} {{> 'systems/daggerheart/templates/ui/combatTracker/combatTrackerSection.hbs' this title=(localize "DAGGERHEART.GENERAL.Character.plural") turns=this.characters}}
{{/if}} {{/if}}
{{#if (gt this.friendlies.length 0)}}
{{> 'systems/daggerheart/templates/ui/combatTracker/combatTrackerSection.hbs' this title=(localize "DAGGERHEART.APPLICATIONS.CombatTracker.adversaryCategories.friendly") turns=this.friendlies}}
{{/if}}
{{#if (gt this.adversaries.length 0)}} {{#if (gt this.adversaries.length 0)}}
{{> 'systems/daggerheart/templates/ui/combatTracker/combatTrackerSection.hbs' this title=(localize "DAGGERHEART.APPLICATIONS.CombatTracker.adversaryCategories.adversaries") turns=this.adversaries}} {{> 'systems/daggerheart/templates/ui/combatTracker/combatTrackerSection.hbs' this title=(localize "DAGGERHEART.GENERAL.Adversary.plural") turns=this.adversaries}}
{{/if}} {{/if}}
</div> </div>

View file

@ -1,14 +1,4 @@
<div> <div>
<header class="countdowns-header">
<i class="fa-solid fa-clock-rotate-left" inert></i>
<span class="window-title">{{localize "DAGGERHEART.UI.Countdowns.title"}}</span>
<a class="header-control" data-tooltip aria-label="DAGGERHEART.APPLICATIONS.CountdownEdit.editTitle" data-action="editCountdowns">
<i class="fa-solid fa-wrench" inert></i>
</a>
<a class="header-control" data-tooltip aria-label="DAGGERHEART.UI.Countdowns.toggleIconMode" data-action="toggleViewMode">
<i class="fa-solid fa-down-left-and-up-right-to-center" inert></i>
</a>
</header>
<div class="countdowns-container"> <div class="countdowns-container">
{{#each countdowns as | countdown id |}} {{#each countdowns as | countdown id |}}
<div class="countdown-container {{#if ../iconOnly}}icon-only{{/if}}"> <div class="countdown-container {{#if ../iconOnly}}icon-only{{/if}}">