From 3a6a973ea2ee7fc5ad02a6a687b98d7c16c12ff6 Mon Sep 17 00:00:00 2001 From: Murilo Brito <91566541+moliloo@users.noreply.github.com> Date: Wed, 2 Jul 2025 09:30:36 -0300 Subject: [PATCH] [Feature] New Environment Sheet (#243) * rework new environment template sheet, add environment-settings sheet, improve adversary-settings sheet and delete legacy actor sheet templates * Potential Adversaries can be dragged out of the sheet onto canvas * Added ToChat and UseItem --------- Co-authored-by: WBHarry --- lang/en.json | 19 +- module/applications/_module.mjs | 2 +- .../sheets/actors/environment.mjs | 131 +++++++ .../applications/adversary-settings.mjs | 1 - .../applications/environment-settings.mjs | 213 +++++++++++ .../applications/sheets/daggerheart-sheet.mjs | 3 +- module/applications/sheets/environment.mjs | 107 ------ module/config/actorConfig.mjs | 16 +- module/data/actor/environment.mjs | 12 +- styles/daggerheart.css | 350 ++++++++++++++---- styles/daggerheart.less | 7 + styles/less/actors/adversary/header.less | 72 ---- styles/less/actors/environment/header.less | 140 +++++++ styles/less/actors/environment/sheet.less | 18 + .../adversary-settings/actions.less | 12 + .../environment-settings/actions.less | 74 ++++ .../environment-settings/adversaries.less | 50 +++ styles/less/global/inventory-item.less | 6 +- styles/less/global/tab-actions.less | 7 + .../sheets/actors/adversary/information.hbs | 17 - templates/sheets/actors/adversary/main.hbs | 43 --- .../sheets/actors/environment/actions.hbs | 9 + .../sheets/actors/environment/header.hbs | 50 ++- .../sheets/actors/environment/information.hbs | 16 - templates/sheets/actors/environment/main.hbs | 37 -- templates/sheets/actors/environment/notes.hbs | 10 + .../environment/potentialAdversaries.hbs | 11 + templates/sheets/adversary.hbs | 238 ------------ .../environment-settings/actions.hbs | 34 ++ .../environment-settings/adversaries.hbs | 28 ++ .../environment-settings/details.hbs | 16 + .../environment-settings/header.hbs | 3 + templates/sheets/character/character.hbs | 151 -------- .../character/parts/advancementCard.hbs | 27 -- .../sheets/character/parts/heritageCard.hbs | 18 - .../sheets/character/sections/inventory.hbs | 35 -- .../sheets/character/sections/loadout.hbs | 137 ------- templates/sheets/environment.hbs | 111 ------ .../partials/inventory-fieldset-items.hbs | 3 + .../sheets/global/partials/inventory-item.hbs | 69 ++-- 40 files changed, 1160 insertions(+), 1143 deletions(-) create mode 100644 module/applications/sheets/actors/environment.mjs create mode 100644 module/applications/sheets/applications/environment-settings.mjs delete mode 100644 module/applications/sheets/environment.mjs create mode 100644 styles/less/actors/environment/header.less create mode 100644 styles/less/actors/environment/sheet.less create mode 100644 styles/less/applications/environment-settings/actions.less create mode 100644 styles/less/applications/environment-settings/adversaries.less delete mode 100644 templates/sheets/actors/adversary/information.hbs delete mode 100644 templates/sheets/actors/adversary/main.hbs create mode 100644 templates/sheets/actors/environment/actions.hbs delete mode 100644 templates/sheets/actors/environment/information.hbs delete mode 100644 templates/sheets/actors/environment/main.hbs create mode 100644 templates/sheets/actors/environment/notes.hbs create mode 100644 templates/sheets/actors/environment/potentialAdversaries.hbs delete mode 100644 templates/sheets/adversary.hbs create mode 100644 templates/sheets/applications/environment-settings/actions.hbs create mode 100644 templates/sheets/applications/environment-settings/adversaries.hbs create mode 100644 templates/sheets/applications/environment-settings/details.hbs create mode 100644 templates/sheets/applications/environment-settings/header.hbs delete mode 100644 templates/sheets/character/character.hbs delete mode 100644 templates/sheets/character/parts/advancementCard.hbs delete mode 100644 templates/sheets/character/parts/heritageCard.hbs delete mode 100644 templates/sheets/character/sections/inventory.hbs delete mode 100644 templates/sheets/character/sections/loadout.hbs delete mode 100644 templates/sheets/environment.hbs diff --git a/lang/en.json b/lang/en.json index 8c3897c5..4458d9ac 100755 --- a/lang/en.json +++ b/lang/en.json @@ -229,7 +229,9 @@ "attack": "Attack", "experiences": "Experiences", "features": "Features", - "actions": "Actions" + "actions": "Actions", + "potentialAdversaries": "Potential Adversaries", + "adversaries": "Adversaries" }, "basics": "Basics" }, @@ -381,19 +383,19 @@ }, "Environment": { "Type": { - "Exploration": { + "exploration": { "label": "Exploration", "description": "" }, - "Social": { + "social": { "label": "Social", "description": "" }, - "Traversal": { + "traversal": { "label": "Traversal", "description": "" }, - "Event": { + "event": { "label": "Event", "description": "" } @@ -1364,6 +1366,12 @@ }, "difficulty": { "label": "Difficulty" + }, + "impulses": { + "label": "Impulses" + }, + "description": { + "label": "Description" } }, "Tabs": { @@ -1577,6 +1585,7 @@ }, "Tooltip": { "openItemWorld": "Open Item World", + "openActorWorld": "Open Actor World", "sendToChat": "Send to Chat", "moreOptions": "More Options", "equip": "Equip", diff --git a/module/applications/_module.mjs b/module/applications/_module.mjs index df22d6b2..a74cb8cf 100644 --- a/module/applications/_module.mjs +++ b/module/applications/_module.mjs @@ -12,7 +12,7 @@ export { default as DhpConsumable } from './sheets/items/consumable.mjs'; export { default as DhpWeapon } from './sheets/items/weapon.mjs'; export { default as DhpArmor } from './sheets/items/armor.mjs'; export { default as DhpChatMessage } from './chatMessage.mjs'; -export { default as DhpEnvironment } from './sheets/environment.mjs'; +export { default as DhpEnvironment } from './sheets/actors/environment.mjs'; export { default as DhActiveEffectConfig } from './sheets/activeEffectConfig.mjs'; export { default as DhContextMenu } from './contextMenu.mjs'; diff --git a/module/applications/sheets/actors/environment.mjs b/module/applications/sheets/actors/environment.mjs new file mode 100644 index 00000000..1440bb4e --- /dev/null +++ b/module/applications/sheets/actors/environment.mjs @@ -0,0 +1,131 @@ +import DaggerheartSheet from '../daggerheart-sheet.mjs'; +import DHEnvironmentSettings from '../applications/environment-settings.mjs'; + +const { ActorSheetV2 } = foundry.applications.sheets; +export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) { + static DEFAULT_OPTIONS = { + tag: 'form', + classes: ['daggerheart', 'sheet', 'actor', 'dh-style', 'environment'], + position: { + width: 500 + }, + actions: { + addAdversary: this.addAdversary, + deleteProperty: this.deleteProperty, + viewAdversary: this.viewAdversary, + openSettings: this.openSettings, + useItem: this.useItem, + toChat: this.toChat + }, + form: { + handler: this._updateForm, + submitOnChange: true, + closeOnSubmit: false + }, + dragDrop: [{ dragSelector: '.action-section .inventory-item', dropSelector: null }] + }; + + static PARTS = { + header: { template: 'systems/daggerheart/templates/sheets/actors/environment/header.hbs' }, + actions: { template: 'systems/daggerheart/templates/sheets/actors/environment/actions.hbs' }, + potentialAdversaries: { + template: 'systems/daggerheart/templates/sheets/actors/environment/potentialAdversaries.hbs' + }, + notes: { template: 'systems/daggerheart/templates/sheets/actors/environment/notes.hbs' } + }; + + static TABS = { + actions: { + active: true, + cssClass: '', + group: 'primary', + id: 'actions', + icon: null, + label: 'DAGGERHEART.General.tabs.actions' + }, + potentialAdversaries: { + active: false, + cssClass: '', + group: 'primary', + id: 'potentialAdversaries', + icon: null, + label: 'DAGGERHEART.General.tabs.potentialAdversaries' + }, + notes: { + active: false, + cssClass: '', + group: 'primary', + id: 'notes', + icon: null, + label: 'DAGGERHEART.Sheets.Adversary.Tabs.notes' + } + }; + + async _prepareContext(_options) { + const context = await super._prepareContext(_options); + context.document = this.document; + context.tabs = super._getTabs(this.constructor.TABS); + context.getEffectDetails = this.getEffectDetails.bind(this); + + return context; + } + + getAction(element) { + const itemId = (element.target ?? element).closest('[data-item-id]').dataset.itemId, + item = this.document.system.actions.find(x => x.id === itemId); + return item; + } + + static async openSettings() { + await new DHEnvironmentSettings(this.document).render(true); + } + + static async _updateForm(event, _, formData) { + await this.document.update(formData.object); + this.render(); + } + + getEffectDetails(id) { + return {}; + } + + static async addAdversary() { + await this.document.update({ + [`system.potentialAdversaries.${foundry.utils.randomID()}.label`]: game.i18n.localize( + 'DAGGERHEART.Sheets.Environment.newAdversary' + ) + }); + this.render(); + } + + static async deleteProperty(_, target) { + await this.document.update({ [`${target.dataset.path}.-=${target.id}`]: null }); + this.render(); + } + + static async viewAdversary(_, button) { + const adversary = await foundry.utils.fromUuid(button.dataset.adversary); + adversary.sheet.render(true); + } + + static async useItem(event) { + const action = this.getAction(event); + action.use(event); + } + + static async toChat(event) { + const item = this.getAction(event); + item.toChat(this.document.id); + } + + async _onDragStart(event) { + const item = event.currentTarget.closest('.inventory-item'); + + if (item) { + const adversary = game.actors.find(x => x.type === 'adversary' && x.id === item.dataset.itemId); + const adversaryData = { type: 'Actor', uuid: adversary.uuid }; + event.dataTransfer.setData('text/plain', JSON.stringify(adversaryData)); + event.dataTransfer.setDragImage(item, 60, 0); + } + } +} diff --git a/module/applications/sheets/applications/adversary-settings.mjs b/module/applications/sheets/applications/adversary-settings.mjs index 4c7ae8ec..2ecdcb60 100644 --- a/module/applications/sheets/applications/adversary-settings.mjs +++ b/module/applications/sheets/applications/adversary-settings.mjs @@ -146,7 +146,6 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl parent: this.actor } ); - console.log(action); await this.actor.update({ 'system.actions': [...this.actor.system.actions, action] }); await new DHActionConfig(this.actor.system.actions[this.actor.system.actions.length - 1]).render({ force: true diff --git a/module/applications/sheets/applications/environment-settings.mjs b/module/applications/sheets/applications/environment-settings.mjs new file mode 100644 index 00000000..1f3c33c8 --- /dev/null +++ b/module/applications/sheets/applications/environment-settings.mjs @@ -0,0 +1,213 @@ +import DHActionConfig from '../../config/Action.mjs'; +import DHBaseItemSheet from '../api/base-item.mjs'; +import { actionsTypes } from '../../../data/_module.mjs'; + +const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api; + +export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(ApplicationV2) { + constructor(actor) { + super({}); + + this.actor = actor; + this._dragDrop = this._createDragDropHandlers(); + } + + get title() { + return `${game.i18n.localize('DAGGERHEART.Sheets.TABS.settings')}`; + } + + static DEFAULT_OPTIONS = { + tag: 'form', + classes: ['daggerheart', 'dh-style', 'dialog', 'environment-settings'], + window: { + icon: 'fa-solid fa-wrench', + resizable: false + }, + position: { width: 455, height: 'auto' }, + actions: { + addAction: this.#addAction, + editAction: this.#editAction, + removeAction: this.#removeAction, + addCategory: this.#addCategory, + deleteProperty: this.#deleteProperty, + viewAdversary: this.#viewAdversary, + deleteAdversary: this.#deleteAdversary + }, + form: { + handler: this.updateForm, + submitOnChange: true, + closeOnSubmit: false + }, + dragDrop: [{ dragSelector: null, dropSelector: '.category-container' }] + }; + + static PARTS = { + header: { + id: 'header', + template: 'systems/daggerheart/templates/sheets/applications/environment-settings/header.hbs' + }, + tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }, + details: { + id: 'details', + template: 'systems/daggerheart/templates/sheets/applications/environment-settings/details.hbs' + }, + actions: { + id: 'actions', + template: 'systems/daggerheart/templates/sheets/applications/environment-settings/actions.hbs' + }, + adversaries: { + id: 'adversaries', + template: 'systems/daggerheart/templates/sheets/applications/environment-settings/adversaries.hbs' + } + }; + + static TABS = { + details: { + active: true, + cssClass: '', + group: 'primary', + id: 'details', + icon: null, + label: 'DAGGERHEART.General.tabs.details' + }, + actions: { + active: false, + cssClass: '', + group: 'primary', + id: 'actions', + icon: null, + label: 'DAGGERHEART.General.tabs.actions' + }, + adversaries: { + active: false, + cssClass: '', + group: 'primary', + id: 'adversaries', + icon: null, + label: 'DAGGERHEART.General.tabs.adversaries' + } + }; + + async _prepareContext(_options) { + const context = await super._prepareContext(_options); + context.document = this.actor; + context.tabs = this._getTabs(this.constructor.TABS); + context.systemFields = this.actor.system.schema.fields; + context.isNPC = true; + + return context; + } + + _attachPartListeners(partId, htmlElement, options) { + super._attachPartListeners(partId, htmlElement, options); + + this._dragDrop.forEach(d => d.bind(htmlElement)); + } + + _createDragDropHandlers() { + return this.options.dragDrop.map(d => { + d.callbacks = { + drop: this._onDrop.bind(this) + }; + return new foundry.applications.ux.DragDrop.implementation(d); + }); + } + + _getTabs(tabs) { + for (const v of Object.values(tabs)) { + v.active = this.tabGroups[v.group] ? this.tabGroups[v.group] === v.id : v.active; + v.cssClass = v.active ? 'active' : ''; + } + + return tabs; + } + + static async #addAction(_event, _button) { + const actionType = await DHBaseItemSheet.selectActionType(); + if (!actionType) return; + try { + const cls = actionsTypes[actionType] ?? actionsTypes.attack, + action = new cls( + { + _id: foundry.utils.randomID(), + type: actionType, + name: game.i18n.localize(SYSTEM.ACTIONS.actionTypes[actionType].name), + ...cls.getSourceConfig(this.actor) + }, + { + parent: this.actor + } + ); + await this.actor.update({ 'system.actions': [...this.actor.system.actions, action] }); + await new DHActionConfig(this.actor.system.actions[this.actor.system.actions.length - 1]).render({ + force: true + }); + this.render(); + } catch (error) { + console.log(error); + } + } + + static async #editAction(event, target) { + event.stopPropagation(); + const actionIndex = target.dataset.index; + await new DHActionConfig(this.actor.system.actions[actionIndex]).render({ + force: true + }); + } + + static async #removeAction(event, target) { + event.stopPropagation(); + const actionIndex = target.dataset.index; + await this.actor.update({ + 'system.actions': this.actor.system.actions.filter((_, index) => index !== Number.parseInt(actionIndex)) + }); + this.render(); + } + + static async #addCategory() { + await this.actor.update({ + [`system.potentialAdversaries.${foundry.utils.randomID()}.label`]: game.i18n.localize( + 'DAGGERHEART.Sheets.Environment.newAdversary' + ) + }); + this.render(); + } + + static async #deleteProperty(_, target) { + await this.actor.update({ [`${target.dataset.path}.-=${target.id}`]: null }); + this.render(); + } + + static async #viewAdversary(_, button) { + const adversary = await foundry.utils.fromUuid(button.dataset.adversary); + adversary.sheet.render(true); + } + + static async #deleteAdversary(event, target) { + const adversaryKey = target.dataset.adversary; + const path = `system.potentialAdversaries.${target.dataset.potentialAdversary}.adversaries`; + const newAdversaries = foundry.utils.getProperty(this.actor, path).filter(x => x.uuid !== adversaryKey); + await this.actor.update({ [path]: newAdversaries }); + this.render(); + } + + async _onDrop(event) { + const data = TextEditor.getDragEventData(event); + const item = await fromUuid(data.uuid); + if (item.type === 'adversary') { + const target = event.target.closest('.category-container'); + const path = `system.potentialAdversaries.${target.dataset.potentialAdversary}.adversaries`; + const current = foundry.utils.getProperty(this.actor, path).map(x => x.uuid); + await this.actor.update({ + [path]: [...current, item.uuid] + }); + this.render(); + } + } + + static async updateForm(event, _, formData) { + await this.actor.update(formData.object); + this.render(); + } +} diff --git a/module/applications/sheets/daggerheart-sheet.mjs b/module/applications/sheets/daggerheart-sheet.mjs index 821972d9..aed1dccc 100644 --- a/module/applications/sheets/daggerheart-sheet.mjs +++ b/module/applications/sheets/daggerheart-sheet.mjs @@ -60,7 +60,7 @@ export default function DhpApplicationMixin(Base) { // drop: this._canDragDrop.bind(this) // }; d.callbacks = { - // dragstart: this._onDragStart.bind(this), + dragstart: this._onDragStart.bind(this), // dragover: this._onDragOver.bind(this), drop: this._onDrop.bind(this) }; @@ -68,6 +68,7 @@ export default function DhpApplicationMixin(Base) { }); } + async _onDragStart(event) {} _onDrop(event) {} _getTabs(tabs) { diff --git a/module/applications/sheets/environment.mjs b/module/applications/sheets/environment.mjs deleted file mode 100644 index fca33f4d..00000000 --- a/module/applications/sheets/environment.mjs +++ /dev/null @@ -1,107 +0,0 @@ -import DaggerheartSheet from './daggerheart-sheet.mjs'; - -const { ActorSheetV2 } = foundry.applications.sheets; -export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) { - static DEFAULT_OPTIONS = { - tag: 'form', - classes: ['daggerheart', 'sheet', 'actor', 'dh-style', 'environment'], - position: { - width: 450, - height: 1000 - }, - actions: { - addAdversary: this.addAdversary, - addFeature: this.addFeature, - deleteProperty: this.deleteProperty, - viewAdversary: this.viewAdversary - }, - form: { - handler: this._updateForm, - submitOnChange: true, - closeOnSubmit: false - }, - dragDrop: [{ dragSelector: null, dropSelector: '.adversary-container' }] - }; - - static PARTS = { - header: { template: 'systems/daggerheart/templates/sheets/actors/environment/header.hbs' }, - tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }, - main: { template: 'systems/daggerheart/templates/sheets/actors/environment/main.hbs' }, - information: { template: 'systems/daggerheart/templates/sheets/actors/environment/information.hbs' } - }; - - static TABS = { - main: { - active: true, - cssClass: '', - group: 'primary', - id: 'main', - icon: null, - label: 'DAGGERHEART.Sheets.Environment.Tabs.Main' - }, - information: { - active: false, - cssClass: '', - group: 'primary', - id: 'information', - icon: null, - label: 'DAGGERHEART.Sheets.Environment.Tabs.Information' - } - }; - - async _prepareContext(_options) { - const context = await super._prepareContext(_options); - context.document = this.document; - context.tabs = super._getTabs(this.constructor.TABS); - context.getEffectDetails = this.getEffectDetails.bind(this); - - return context; - } - - static async _updateForm(event, _, formData) { - await this.document.update(formData.object); - this.render(); - } - - getEffectDetails(id) { - return {}; - } - - static async addAdversary() { - await this.document.update({ - [`system.potentialAdversaries.${foundry.utils.randomID()}.label`]: game.i18n.localize( - 'DAGGERHEART.Sheets.Environment.newAdversary' - ) - }); - this.render(); - } - - static async addFeature() { - ui.notifications.error('Not Implemented yet. Awaiting datamodel rework'); - } - - static async deleteProperty(_, target) { - await this.document.update({ [`${target.dataset.path}.-=${target.id}`]: null }); - this.render(); - } - - static async viewAdversary(_, button) { - const adversary = foundry.utils.getProperty( - this.document.system.potentialAdversaries, - `${button.dataset.potentialAdversary}.adversaries.${button.dataset.adversary}` - ); - adversary.sheet.render(true); - } - - async _onDrop(event) { - const data = TextEditor.getDragEventData(event); - const item = await fromUuid(data.uuid); - if (item.type === 'adversary') { - const target = event.target.closest('.adversary-container'); - const path = `system.potentialAdversaries.${target.dataset.potentialAdversary}.adversaries.${item.id}`; - await this.document.update({ - [path]: item.uuid - }); - } - } -} diff --git a/module/config/actorConfig.mjs b/module/config/actorConfig.mjs index b3ebf9dc..5b5169ad 100644 --- a/module/config/actorConfig.mjs +++ b/module/config/actorConfig.mjs @@ -135,20 +135,20 @@ export const adversaryTypes = { export const environmentTypes = { exploration: { - label: 'DAGGERHEART.Environment.Type.Exploration.label', - description: 'DAGGERHEART.Environment.Type.Exploration.description' + label: 'DAGGERHEART.Environment.Type.exploration.label', + description: 'DAGGERHEART.Environment.Type.exploration.description' }, social: { - label: 'DAGGERHEART.Environment.Type.Social.label', - description: 'DAGGERHEART.Environment.Type.Social.description' + label: 'DAGGERHEART.Environment.Type.social.label', + description: 'DAGGERHEART.Environment.Type.social.description' }, traversal: { - label: 'DAGGERHEART.Environment.Type.Traversal.label', - description: 'DAGGERHEART.Environment.Type.Traversal.description' + label: 'DAGGERHEART.Environment.Type.traversal.label', + description: 'DAGGERHEART.Environment.Type.traversal.description' }, event: { - label: 'DAGGERHEART.Environment.Type.Event.label', - description: 'DAGGERHEART.Environment.Type.Event.description' + label: 'DAGGERHEART.Environment.Type.event.label', + description: 'DAGGERHEART.Environment.Type.event.description' } }; diff --git a/module/data/actor/environment.mjs b/module/data/actor/environment.mjs index 3209dfdc..4b7e0716 100644 --- a/module/data/actor/environment.mjs +++ b/module/data/actor/environment.mjs @@ -1,6 +1,8 @@ import { environmentTypes } from '../../config/actorConfig.mjs'; import BaseDataActor from './base.mjs'; import ForeignDocumentUUIDField from '../fields/foreignDocumentUUIDField.mjs'; +import ActionField from '../fields/actionField.mjs'; +import ForeignDocumentUUIDArrayField from '../fields/foreignDocumentUUIDArrayField.mjs'; export default class DhEnvironment extends BaseDataActor { static LOCALIZATION_PREFIXES = ['DAGGERHEART.Sheets.Environment']; @@ -21,15 +23,17 @@ export default class DhEnvironment extends BaseDataActor { initial: SYSTEM.GENERAL.tiers.tier1.id }), type: new fields.StringField({ choices: environmentTypes }), - impulses: new fields.HTMLField(), + description: new fields.StringField(), + impulses: new fields.StringField(), difficulty: new fields.NumberField({ required: true, initial: 11, integer: true }), potentialAdversaries: new fields.TypedObjectField( new fields.SchemaField({ label: new fields.StringField(), - adversaries: new fields.TypedObjectField(new ForeignDocumentUUIDField({ type: 'Actor' })) + adversaries: new ForeignDocumentUUIDArrayField({ type: 'Actor' }) }) - ) - /* Features pending datamodel rework */ + ), + actions: new fields.ArrayField(new ActionField()), + notes: new fields.HTMLField() }; } } diff --git a/styles/daggerheart.css b/styles/daggerheart.css index b649213a..062dd5a3 100755 --- a/styles/daggerheart.css +++ b/styles/daggerheart.css @@ -4318,39 +4318,6 @@ div.daggerheart.views.multiclass { .application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row input[type='text']:hover { outline: 2px solid light-dark(#222, #f3c267); } -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row .level-div { - white-space: nowrap; - display: flex; - justify-content: end; -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row .level-div .label { - display: flex; - align-items: center; - gap: 4px; -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row .level-div input { - width: 40px; - padding: 0; - text-align: center; -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row .level-div .level-button { - color: light-dark(#222, #efe6d8); - font-size: 18px; - line-height: 1; - min-height: unset; - height: min-content; - padding: 4px; - font-family: 'Cinzel', serif; - margin: 0; - font-weight: normal; - border-color: light-dark(#18162e, #f3c267); - background-color: light-dark(transparent, #0e0d15); -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .name-row .level-div .level-button:hover { - background-image: none; - background-color: var(--color-warm-2); - filter: drop-shadow(0 0 3px lightgray); -} .application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .tags { display: flex; gap: 10px; @@ -4390,35 +4357,6 @@ div.daggerheart.views.multiclass { gap: 8px; align-items: center; } -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .character-details { - display: flex; - justify-content: space-between; - padding: 5px 0; - margin-bottom: 10px; - font-size: 12px; - color: light-dark(#18162e, #f3c267); -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .character-details span { - padding: 3px; - border-radius: 3px; - transition: all 0.3s ease; - cursor: pointer; -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .character-details span:hover { - background: light-dark(#18162e40, #f3c26740); -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .character-details span.dot { - background: transparent; - cursor: default; -} -.application.sheet.daggerheart.actor.dh-style.adversary .adversary-header-sheet .character-row { - display: flex; - gap: 20px; - align-items: center; - justify-content: space-between; - padding: 0; - margin-bottom: 15px; -} .application.sheet.daggerheart.actor.dh-style.adversary .window-content { display: grid; grid-template-columns: 275px 1fr; @@ -4731,6 +4669,134 @@ div.daggerheart.views.multiclass { .application.sheet.daggerheart.actor.dh-style.adversary .adversary-sidebar-sheet .reaction-section button { width: 100%; } +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet { + display: flex; + flex-direction: column; + justify-content: start; + text-align: center; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .profile { + width: 100%; + height: 235px; + object-fit: cover; + mask-image: linear-gradient(0deg, transparent 0%, black 10%); + cursor: pointer; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container { + display: flex; + align-items: center; + position: relative; + top: -45px; + gap: 20px; + padding: 0 20px; + margin-bottom: -30px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-info { + display: flex; + flex-direction: column; + gap: 8px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-info .tags { + display: flex; + gap: 10px; + padding-bottom: 0; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-info .tags .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 3px 5px; + font-size: 12px; + font: 'Montserrat', sans-serif; + background: light-dark(#22222215, #efe6d815); + border: 1px solid light-dark(#222, #efe6d8); + border-radius: 3px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-info .tags .label { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: 12px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .status-number { + justify-items: center; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .status-number .status-value { + position: relative; + display: flex; + width: 50px; + height: 30px; + border: 1px solid light-dark(#18162e, #f3c267); + border-bottom: none; + border-radius: 6px 6px 0 0; + padding: 0 6px; + font-size: 1.2rem; + align-items: center; + justify-content: center; + background: light-dark(transparent, #18162e); + z-index: 2; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .status-number .status-value.armor-slots { + width: 80px; + height: 30px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .status-number .status-label { + padding: 2px 10px; + width: 100%; + border-radius: 3px; + background: light-dark(#18162e, #f3c267); +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .status-number .status-label h4 { + font-weight: bold; + text-align: center; + line-height: 18px; + font-size: 12px; + color: light-dark(#efe6d8, #18162e); +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-name input[type='text'] { + font-size: 32px; + height: 42px; + text-align: start; + transition: all 0.3s ease; + outline: 2px solid transparent; + border: 1px solid transparent; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-name input[type='text']:hover[type='text'], +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .item-container .item-name input[type='text']:focus[type='text'] { + box-shadow: none; + outline: 2px solid light-dark(#18162e, #f3c267); +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .environment-info { + display: flex; + flex-direction: column; + gap: 12px; + padding: 10px 20px; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .environment-info .description, +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .environment-info .impulses { + text-align: start; + font-family: 'Montserrat', sans-serif; +} +.application.sheet.daggerheart.actor.dh-style.environment .environment-header-sheet .environment-navigation { + display: flex; + gap: 20px; + align-items: center; + padding: 0 20px; +} +.theme-light .application.sheet.daggerheart.actor.dh-style.environment { + background: url('../assets/parchments/dh-parchment-light.png'); +} +.theme-dark .application.sheet.daggerheart.actor.dh-style.environment { + background-image: url('../assets/parchments/dh-parchment-dark.png'); +} +.application.sheet.daggerheart.actor.dh-style.environment .tab { + max-height: 300px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(#18162e, #f3c267) transparent; +} .application.daggerheart.dh-style.dialog .window-content .dialog-header { width: 100%; padding-bottom: 16px; @@ -4772,6 +4838,12 @@ div.daggerheart.views.multiclass { .application.daggerheart.dh-style.dialog .tab.experiences .experience-list .experience-item a { text-align: center; } +.application.daggerheart.dh-style.dialog .tab.actions { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(#18162e, #f3c267) transparent; +} .application.daggerheart.dh-style.dialog .tab.actions .add-action-btn { width: 100%; margin-bottom: 12px; @@ -4786,6 +4858,12 @@ div.daggerheart.views.multiclass { grid-template-columns: 40px 1fr auto; align-items: center; gap: 5px; + border-radius: 3px; +} +.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item img { + height: 40px; + width: 40px; + object-fit: cover; } .application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item .label { font-family: 'Montserrat', sans-serif; @@ -4819,6 +4897,105 @@ div.daggerheart.views.multiclass { .application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item .controls a { text-align: center; } +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(#18162e, #f3c267) transparent; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .add-action-btn { + width: 100%; + margin-bottom: 12px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list { + display: flex; + flex-direction: column; + gap: 10px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item { + display: grid; + grid-template-columns: 40px 1fr auto; + align-items: center; + gap: 5px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item img { + height: 40px; + width: 40px; + object-fit: cover; + border-radius: 3px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label { + font-family: 'Montserrat', sans-serif; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label .tags { + display: flex; + gap: 10px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label .tags .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 3px 5px; + font-size: 12px; + background: light-dark(#22222215, #efe6d815); + border: 1px solid light-dark(#222, #efe6d8); + border-radius: 3px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label .tags .label { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: 12px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .controls { + display: flex; + gap: 5px; +} +.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .controls a { + text-align: center; +} +.application.daggerheart.dh-style.dialog .tab.adversaries { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(#18162e, #f3c267) transparent; +} +.application.daggerheart.dh-style.dialog .tab.adversaries .add-action-btn { + width: 100%; + margin-bottom: 12px; +} +.application.daggerheart.dh-style.dialog .tab.adversaries .category-container { + display: flex; + flex-direction: column; + align-items: start; + gap: 8px; +} +.application.daggerheart.dh-style.dialog .tab.adversaries .category-container .category-name { + display: flex; + align-items: center; + gap: 10px; + width: 100%; +} +.application.daggerheart.dh-style.dialog .tab.adversaries .category-container .adversaries-container { + display: flex; + flex-direction: column; + gap: 6px; + width: 100%; +} +.application.daggerheart.dh-style.dialog .tab.adversaries .adversaries-dragger { + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + width: 100%; + height: 40px; + border: 1px dashed light-dark(#18162e50, #efe6d850); + border-radius: 3px; + color: light-dark(#18162e50, #efe6d850); + font-family: 'Montserrat', sans-serif; +} .application.sheet.daggerheart.actor.dh-style.companion .profile { height: 80px; width: 80px; @@ -5503,6 +5680,12 @@ div.daggerheart.views.multiclass { grid-template-columns: 1fr 4fr 1fr; cursor: pointer; } +.sheet.daggerheart.dh-style .tab.actions .actions-list .action-item img { + height: 40px; + width: 40px; + object-fit: cover; + border-radius: 3px; +} .sheet.daggerheart.dh-style .tab.actions .actions-list .action-item h4 { font-family: 'Montserrat', sans-serif; font-weight: lighter; @@ -5724,13 +5907,13 @@ div.daggerheart.views.multiclass { .sheet.daggerheart.dh-style.item .tab.features .feature-list .feature-item .feature-line .controls a { text-shadow: none; } -.application.sheet.daggerheart.actor.dh-style .inventory-item { +.application.daggerheart.dh-style .inventory-item { display: grid; grid-template-columns: 40px 1fr 60px; gap: 10px; width: 100%; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-img { +.application.daggerheart.dh-style .inventory-item .item-img { height: 40px; width: 40px; border-radius: 3px; @@ -5738,20 +5921,23 @@ div.daggerheart.views.multiclass { cursor: pointer; object-fit: cover; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label { +.application.daggerheart.dh-style .inventory-item .item-img.actor-img { + border-radius: 50%; +} +.application.daggerheart.dh-style .inventory-item .item-label { font-family: 'Montserrat', sans-serif; align-self: center; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-name { +.application.daggerheart.dh-style .inventory-item .item-label .item-name { font-size: 14px; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-tags, -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-labels { +.application.daggerheart.dh-style .inventory-item .item-label .item-tags, +.application.daggerheart.dh-style .inventory-item .item-label .item-labels { display: flex; gap: 10px; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-tags .tag, -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-labels .tag { +.application.daggerheart.dh-style .inventory-item .item-label .item-tags .tag, +.application.daggerheart.dh-style .inventory-item .item-label .item-labels .tag { display: flex; flex-direction: row; justify-content: center; @@ -5762,27 +5948,27 @@ div.daggerheart.views.multiclass { border: 1px solid light-dark(#222, #efe6d8); border-radius: 3px; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-tags .label, -.application.sheet.daggerheart.actor.dh-style .inventory-item .item-label .item-labels .label { +.application.daggerheart.dh-style .inventory-item .item-label .item-tags .label, +.application.daggerheart.dh-style .inventory-item .item-label .item-labels .label { display: flex; flex-direction: row; justify-content: center; align-items: center; font-size: 12px; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .controls { +.application.daggerheart.dh-style .inventory-item .controls { display: flex; align-items: center; justify-content: end; gap: 8px; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .controls a { +.application.daggerheart.dh-style .inventory-item .controls a { text-align: center; } -.application.sheet.daggerheart.actor.dh-style .inventory-item .controls a.unequipped { +.application.daggerheart.dh-style .inventory-item .controls a.unequipped { opacity: 0.4; } -.application.sheet.daggerheart.actor.dh-style .card-item { +.application.daggerheart.dh-style .card-item { position: relative; height: 120px; width: 100px; @@ -5790,21 +5976,21 @@ div.daggerheart.views.multiclass { border-radius: 6px; cursor: pointer; } -.application.sheet.daggerheart.actor.dh-style .card-item:hover .card-label { +.application.daggerheart.dh-style .card-item:hover .card-label { padding-top: 15px; } -.application.sheet.daggerheart.actor.dh-style .card-item:hover .card-label .controls { +.application.daggerheart.dh-style .card-item:hover .card-label .controls { opacity: 1; visibility: visible; transition: all 0.3s ease; max-height: 16px; } -.application.sheet.daggerheart.actor.dh-style .card-item .card-img { +.application.daggerheart.dh-style .card-item .card-img { height: 100%; width: 100%; object-fit: cover; } -.application.sheet.daggerheart.actor.dh-style .card-item .card-label { +.application.daggerheart.dh-style .card-item .card-label { display: flex; flex-direction: column; height: fit-content; @@ -5818,7 +6004,7 @@ div.daggerheart.views.multiclass { bottom: 0; mask-image: linear-gradient(180deg, transparent 0%, black 20%); } -.application.sheet.daggerheart.actor.dh-style .card-item .card-label .card-name { +.application.daggerheart.dh-style .card-item .card-label .card-name { font-family: 'Montserrat', sans-serif; font-style: normal; font-weight: 400; @@ -5826,7 +6012,7 @@ div.daggerheart.views.multiclass { line-height: 15px; color: #efe6d8; } -.application.sheet.daggerheart.actor.dh-style .card-item .card-label .controls { +.application.daggerheart.dh-style .card-item .card-label .controls { display: flex; gap: 15px; align-items: center; diff --git a/styles/daggerheart.less b/styles/daggerheart.less index 9c5ba914..362856ce 100755 --- a/styles/daggerheart.less +++ b/styles/daggerheart.less @@ -29,10 +29,17 @@ @import './less/actors/adversary/sheet.less'; @import './less/actors/adversary/sidebar.less'; +@import './less/actors/environment/header.less'; +@import './less/actors/environment/sheet.less'; + @import './less/applications/header.less'; @import './less/applications/adversary-settings/sheet.less'; @import './less/applications/adversary-settings/experiences.less'; @import './less/applications/adversary-settings/actions.less'; + +@import './less/applications/environment-settings/actions.less'; +@import './less/applications/environment-settings/adversaries.less'; + @import './less/actors/companion/sheet.less'; @import './less/actors/adversary.less'; diff --git a/styles/less/actors/adversary/header.less b/styles/less/actors/adversary/header.less index a7a55f35..4b962466 100644 --- a/styles/less/actors/adversary/header.less +++ b/styles/less/actors/adversary/header.less @@ -29,44 +29,6 @@ outline: 2px solid light-dark(@dark, @golden); } } - - .level-div { - white-space: nowrap; - display: flex; - justify-content: end; - - .label { - display: flex; - align-items: center; - gap: 4px; - } - - input { - width: 40px; - padding: 0; - text-align: center; - } - - .level-button { - color: light-dark(@dark, @beige); - font-size: 18px; - line-height: 1; - min-height: unset; - height: min-content; - padding: 4px; - font-family: 'Cinzel', serif; - margin: 0; - font-weight: normal; - border-color: light-dark(@dark-blue, @golden); - background-color: light-dark(transparent, @deep-black); - - &:hover { - background-image: none; - background-color: var(--color-warm-2); - filter: drop-shadow(0 0 3px lightgray); - } - } - } } .tags { @@ -114,39 +76,5 @@ gap: 8px; align-items: center; } - - .character-details { - display: flex; - justify-content: space-between; - padding: 5px 0; - margin-bottom: 10px; - font-size: 12px; - color: light-dark(@dark-blue, @golden); - - span { - padding: 3px; - border-radius: 3px; - transition: all 0.3s ease; - cursor: pointer; - - &:hover { - background: light-dark(@dark-blue-40, @golden-40); - } - - &.dot { - background: transparent; - cursor: default; - } - } - } - - .character-row { - display: flex; - gap: 20px; - align-items: center; - justify-content: space-between; - padding: 0; - margin-bottom: 15px; - } } } diff --git a/styles/less/actors/environment/header.less b/styles/less/actors/environment/header.less new file mode 100644 index 00000000..fce7943f --- /dev/null +++ b/styles/less/actors/environment/header.less @@ -0,0 +1,140 @@ +@import '../../utils/colors.less'; +@import '../../utils/fonts.less'; + +.application.sheet.daggerheart.actor.dh-style.environment { + .environment-header-sheet { + display: flex; + flex-direction: column; + justify-content: start; + text-align: center; + + .profile { + width: 100%; + height: 235px; + object-fit: cover; + mask-image: linear-gradient(0deg, transparent 0%, black 10%); + cursor: pointer; + } + + .item-container { + display: flex; + align-items: center; + position: relative; + top: -45px; + gap: 20px; + padding: 0 20px; + margin-bottom: -30px; + + .item-info { + display: flex; + flex-direction: column; + gap: 8px; + + .tags { + display: flex; + gap: 10px; + padding-bottom: 0; + + .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 3px 5px; + font-size: 12px; + font: @font-body; + + background: light-dark(@dark-15, @beige-15); + border: 1px solid light-dark(@dark, @beige); + border-radius: 3px; + } + + .label { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: 12px; + } + } + } + + .status-number { + justify-items: center; + + .status-value { + position: relative; + display: flex; + width: 50px; + height: 30px; + border: 1px solid light-dark(@dark-blue, @golden); + border-bottom: none; + border-radius: 6px 6px 0 0; + padding: 0 6px; + font-size: 1.2rem; + align-items: center; + justify-content: center; + background: light-dark(transparent, @dark-blue); + z-index: 2; + + &.armor-slots { + width: 80px; + height: 30px; + } + } + + .status-label { + padding: 2px 10px; + width: 100%; + border-radius: 3px; + background: light-dark(@dark-blue, @golden); + + h4 { + font-weight: bold; + text-align: center; + line-height: 18px; + font-size: 12px; + color: light-dark(@beige, @dark-blue); + } + } + } + + .item-name { + input[type='text'] { + font-size: 32px; + height: 42px; + text-align: start; + transition: all 0.3s ease; + outline: 2px solid transparent; + border: 1px solid transparent; + + &:hover[type='text'], + &:focus[type='text'] { + box-shadow: none; + outline: 2px solid light-dark(@dark-blue, @golden); + } + } + } + } + + .environment-info { + display: flex; + flex-direction: column; + gap: 12px; + padding: 10px 20px; + + .description, + .impulses { + text-align: start; + font-family: @font-body; + } + } + + .environment-navigation { + display: flex; + gap: 20px; + align-items: center; + padding: 0 20px; + } + } +} diff --git a/styles/less/actors/environment/sheet.less b/styles/less/actors/environment/sheet.less new file mode 100644 index 00000000..5e604188 --- /dev/null +++ b/styles/less/actors/environment/sheet.less @@ -0,0 +1,18 @@ +@import '../../utils/colors.less'; +@import '../../utils/fonts.less'; + +.application.sheet.daggerheart.actor.dh-style.environment { + .theme-light & { + background: url('../assets/parchments/dh-parchment-light.png'); + } + .theme-dark & { + background-image: url('../assets/parchments/dh-parchment-dark.png'); + } + + .tab { + max-height: 300px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(@dark-blue, @golden) transparent; + } +} diff --git a/styles/less/applications/adversary-settings/actions.less b/styles/less/applications/adversary-settings/actions.less index 8bce0ad7..55cf2828 100644 --- a/styles/less/applications/adversary-settings/actions.less +++ b/styles/less/applications/adversary-settings/actions.less @@ -3,6 +3,11 @@ .application.daggerheart.dh-style.dialog { .tab.actions { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(@dark-blue, @golden) transparent; + .add-action-btn { width: 100%; margin-bottom: 12px; @@ -18,6 +23,13 @@ grid-template-columns: 40px 1fr auto; align-items: center; gap: 5px; + border-radius: 3px; + + img { + height: 40px; + width: 40px; + object-fit: cover; + } .label { font-family: @font-body; diff --git a/styles/less/applications/environment-settings/actions.less b/styles/less/applications/environment-settings/actions.less new file mode 100644 index 00000000..e4886ea9 --- /dev/null +++ b/styles/less/applications/environment-settings/actions.less @@ -0,0 +1,74 @@ +@import '../../utils/colors.less'; +@import '../../utils/fonts.less'; + +.application.daggerheart.dh-style.dialog.environment-settings { + .tab.actions { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(@dark-blue, @golden) transparent; + + .add-action-btn { + width: 100%; + margin-bottom: 12px; + } + + .action-list { + display: flex; + flex-direction: column; + gap: 10px; + + .action-item { + display: grid; + grid-template-columns: 40px 1fr auto; + align-items: center; + gap: 5px; + + img { + height: 40px; + width: 40px; + object-fit: cover; + border-radius: 3px; + } + + .label { + font-family: @font-body; + + .tags { + display: flex; + gap: 10px; + + .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 3px 5px; + font-size: 12px; + + background: light-dark(@dark-15, @beige-15); + border: 1px solid light-dark(@dark, @beige); + border-radius: 3px; + } + + .label { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: 12px; + } + } + } + + .controls { + display: flex; + gap: 5px; + a { + text-align: center; + } + } + } + } + } +} diff --git a/styles/less/applications/environment-settings/adversaries.less b/styles/less/applications/environment-settings/adversaries.less new file mode 100644 index 00000000..a60314ff --- /dev/null +++ b/styles/less/applications/environment-settings/adversaries.less @@ -0,0 +1,50 @@ +@import '../../utils/colors.less'; +@import '../../utils/fonts.less'; + +.application.daggerheart.dh-style.dialog { + .tab.adversaries { + max-height: 450px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: light-dark(@dark-blue, @golden) transparent; + + .add-action-btn { + width: 100%; + margin-bottom: 12px; + } + + .category-container { + display: flex; + flex-direction: column; + align-items: start; + gap: 8px; + + .category-name { + display: flex; + align-items: center; + gap: 10px; + width: 100%; + } + + .adversaries-container { + display: flex; + flex-direction: column; + gap: 6px; + width: 100%; + } + } + + .adversaries-dragger { + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + width: 100%; + height: 40px; + border: 1px dashed light-dark(@dark-blue-50, @beige-50); + border-radius: 3px; + color: light-dark(@dark-blue-50, @beige-50); + font-family: @font-body; + } + } +} diff --git a/styles/less/global/inventory-item.less b/styles/less/global/inventory-item.less index d5b854b7..8d521c82 100644 --- a/styles/less/global/inventory-item.less +++ b/styles/less/global/inventory-item.less @@ -1,7 +1,7 @@ @import '../utils/colors.less'; @import '../utils/fonts.less'; -.application.sheet.daggerheart.actor.dh-style { +.application.daggerheart.dh-style { .inventory-item { display: grid; grid-template-columns: 40px 1fr 60px; @@ -15,6 +15,10 @@ border: none; cursor: pointer; object-fit: cover; + + &.actor-img { + border-radius: 50%; + } } .item-label { diff --git a/styles/less/global/tab-actions.less b/styles/less/global/tab-actions.less index 7b225d4a..0617016d 100644 --- a/styles/less/global/tab-actions.less +++ b/styles/less/global/tab-actions.less @@ -18,6 +18,13 @@ grid-template-columns: 1fr 4fr 1fr; cursor: pointer; + img { + height: 40px; + width: 40px; + object-fit: cover; + border-radius: 3px; + } + h4 { font-family: @font-body; font-weight: lighter; diff --git a/templates/sheets/actors/adversary/information.hbs b/templates/sheets/actors/adversary/information.hbs deleted file mode 100644 index 085f200c..00000000 --- a/templates/sheets/actors/adversary/information.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
- {{!--
- {{localize "DAGGERHEART.Sheets.Adversary.FIELDS.description.label" }} - - {{formInput systemFields.description value=source.system.description}} -
--}} - -
- {{localize "DAGGERHEART.Sheets.Adversary.FIELDS.motivesAndTactics.label" }} - - {{formInput systemFields.motivesAndTactics value=source.system.motivesAndTactics}} -
-
diff --git a/templates/sheets/actors/adversary/main.hbs b/templates/sheets/actors/adversary/main.hbs deleted file mode 100644 index 5f172fab..00000000 --- a/templates/sheets/actors/adversary/main.hbs +++ /dev/null @@ -1,43 +0,0 @@ -
-
-
- {{localize "DAGGERHEART.Sheets.Adversary.General"}} - - -
{{formGroup systemFields.difficulty value=source.system.difficulty}}
- -
- {{localize "DAGGERHEART.Sheets.Adversary.HitPoints"}} - -
- -
- {{localize "DAGGERHEART.Sheets.Adversary.Stress"}} - -
- -
- {{localize "DAGGERHEART.Sheets.Adversary.Experiences"}} - - {{#each source.system.experiences}} -
- {{this.name}} - - {{formGroup @root.systemFields.experiences.element.fields.name name=(concat "system.experiences." @key ".name") value=this.name }} - {{formGroup @root.systemFields.experiences.element.fields.value name=(concat "system.experiences." @key ".value") value=this.value }} -
- {{/each}} -
-
-
-
diff --git a/templates/sheets/actors/environment/actions.hbs b/templates/sheets/actors/environment/actions.hbs new file mode 100644 index 00000000..48ee18a7 --- /dev/null +++ b/templates/sheets/actors/environment/actions.hbs @@ -0,0 +1,9 @@ +
+
+ {{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=(localize tabs.actions.label) type='action'}} +
+
\ No newline at end of file diff --git a/templates/sheets/actors/environment/header.hbs b/templates/sheets/actors/environment/header.hbs index a21f5f64..d7fa9c3a 100644 --- a/templates/sheets/actors/environment/header.hbs +++ b/templates/sheets/actors/environment/header.hbs @@ -1,9 +1,49 @@ -
+
-
-

-
-

{{localize 'TYPES.Actor.environment'}}

+
+
+

+
+
+ + {{localize (concat 'DAGGERHEART.Tiers.' source.system.tier)}} + +
+ {{#if source.system.type}} +
+ + {{localize (concat 'DAGGERHEART.Environment.Type.' source.system.type '.label')}} + +
+ {{/if}} +
+
+
+
+ {{#if source.system.difficulty}} +

{{source.system.difficulty}}

+ {{else}} +

-

+ {{/if}} +
+
+

Difficulty

+
+ +
+
+ {{source.system.description}} +
+
+ {{localize 'DAGGERHEART.Sheets.Environment.FIELDS.impulses.label'}}: {{{source.system.impulses}}} +
+
+
+ {{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}} + +
\ No newline at end of file diff --git a/templates/sheets/actors/environment/information.hbs b/templates/sheets/actors/environment/information.hbs deleted file mode 100644 index 3b49a933..00000000 --- a/templates/sheets/actors/environment/information.hbs +++ /dev/null @@ -1,16 +0,0 @@ -
-
- {{localize "DAGGERHEART.Sheets.Environment.description"}} - - {{formInput systemFields.description value=source.system.description }} -
-
- {{localize "DAGGERHEART.Sheets.Environment.impulses"}} - - {{formInput systemFields.impulses value=source.system.impulses }} -
-
\ No newline at end of file diff --git a/templates/sheets/actors/environment/main.hbs b/templates/sheets/actors/environment/main.hbs deleted file mode 100644 index a973cdc9..00000000 --- a/templates/sheets/actors/environment/main.hbs +++ /dev/null @@ -1,37 +0,0 @@ -
-
- {{localize "DAGGERHEART.Sheets.Environment.general"}} - - {{formGroup systemFields.tier value=source.system.tier localize=true }} - {{formGroup systemFields.type value=source.system.type localize=true }} - {{formGroup systemFields.difficulty value=source.system.difficulty localize=true }} -
- -
- {{localize "DAGGERHEART.Sheets.Environment.potentialAdversaries.label"}} - - {{#each source.system.potentialAdversaries}} -
- - {{#if (eq (length this.adversaries) 0)}} -
{{localize "DAGGERHEART.Sheets.Environment.potentialAdversaries.placeholder"}}
- {{else}} -
- {{#each this.adversaries as |adversary id|}} -
{{adversary.name}}
- {{/each}} -
- {{/if}} -
- {{/each}} -
- -
- {{localize "DAGGERHEART.Sheets.Environment.features.label"}} - -
-
\ No newline at end of file diff --git a/templates/sheets/actors/environment/notes.hbs b/templates/sheets/actors/environment/notes.hbs new file mode 100644 index 00000000..effa7240 --- /dev/null +++ b/templates/sheets/actors/environment/notes.hbs @@ -0,0 +1,10 @@ +
+
+ {{localize tabs.notes.label}} + {{formInput systemFields.notes value=document.system.notes enriched=document.system.notes localize=true toggled=true}} +
+
\ No newline at end of file diff --git a/templates/sheets/actors/environment/potentialAdversaries.hbs b/templates/sheets/actors/environment/potentialAdversaries.hbs new file mode 100644 index 00000000..f39a1adf --- /dev/null +++ b/templates/sheets/actors/environment/potentialAdversaries.hbs @@ -0,0 +1,11 @@ +
+
+ {{#each document.system.potentialAdversaries}} + {{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=this.label type='adversary' isGlassy=true adversaries=this.adversaries}} + {{/each}} +
+
\ No newline at end of file diff --git a/templates/sheets/adversary.hbs b/templates/sheets/adversary.hbs deleted file mode 100644 index 67230fdf..00000000 --- a/templates/sheets/adversary.hbs +++ /dev/null @@ -1,238 +0,0 @@ -
-
-
- -
- {{#if this.editMode}} - {{formInput fields.name value=source.name rootId=partId placeholder="{{ localize 'Name' }}"}} - {{else}} -
{{this.title}}
- {{/if}} -
-
- -
- -
- {{#if this.editMode}} -
-

{{localize "DAGGERHEART.Sheets.Adversary.Description"}}

- -

-
-
{{localize "DAGGERHEART.Sheets.Adversary.MotivesAndTactics"}}
- -
-

-
- {{#each source.system.motivesAndTactics as |motive index|}} -
- - -
- {{/each}} -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-

{{localize "DAGGERHEART.Sheets.Adversary.Attack.Title"}}

-
- -
- -
-
-
- -
- -
-
-
- -
- - - - -
-
-
-
- -
- -
-
-
- -
- - - - -
-
-
- -
- -
-
-
- -
- -
-
-

-
-
{{localize "DAGGERHEART.Sheets.Adversary.Experiences"}}
- -
-

- {{#each source.system.experiences as |experience index|}} -
- - - -
- {{/each}} -
-
-

{{localize "DAGGERHEART.Sheets.Adversary.Features"}}

- {{#each this.data.features as |feature key|}} -
-
- -
{{feature.name}}
-
-
- - -
-
- {{/each}} -
-
- {{else}} -
-
- {{localize "DAGGERHEART.Sheets.Adversary.Description"}}: {{this.data.description}} -
-
- {{localize "DAGGERHEART.Sheets.Adversary.MotivesAndTactics"}}: {{this.data.motivesAndTactics}} -
-
-
-
-
-
- - {{this.data.tier}} -
-
- - {{this.data.type}} -
-
-
-
- - {{this.data.difficulty}} -
-
- - -
-
- - +{{this.data.attack.attackModifier}} - -
-
- - {{this.data.attack.range}} | {{this.data.attack.damage.value}} {{this.data.attack.damage.typeName}} -
-
-
-
- - {{this.data.damageThresholds.major}} -
- - {{this.data.damageThresholds.severe}} -
-
- -
- {{#times this.data.hp.max}} - - {{/times}} -
-
-
- -
- {{#times this.data.stress.max}} - - {{/times}} -
-
-
-
- - {{#each source.system.experiences as |experience index|}} -
- {{experience.name}} -   - {{#if (gte experience.value 0)}}+{{else}}-{{/if}}{{experience.value}} -
- {{/each}} -
- {{!--
- - {{this.data.hp.max}} -
--}} -
-
-
{{localize "DAGGERHEART.Sheets.Adversary.Features"}}
- {{#each this.data.features as |feature index|}} -
- -
{{{feature.system.description}}}
-
- {{/each}} -
-
- - {{/if}} -
-
\ No newline at end of file diff --git a/templates/sheets/applications/environment-settings/actions.hbs b/templates/sheets/applications/environment-settings/actions.hbs new file mode 100644 index 00000000..73594da2 --- /dev/null +++ b/templates/sheets/applications/environment-settings/actions.hbs @@ -0,0 +1,34 @@ +
+ +
+ {{localize tabs.actions.label}} +
    + {{#each document.system.actions as |action index|}} +
  • + +
    + {{action.name}} +
    +
    + {{localize (concat 'DAGGERHEART.Actions.Types.' action.type '.name')}} +
    +
    + {{localize (concat 'DAGGERHEART.ActionType.' action.actionType)}} +
    +
    +
    +
    + + +
    +
  • + {{/each}} +
+
+
\ No newline at end of file diff --git a/templates/sheets/applications/environment-settings/adversaries.hbs b/templates/sheets/applications/environment-settings/adversaries.hbs new file mode 100644 index 00000000..0abe45d1 --- /dev/null +++ b/templates/sheets/applications/environment-settings/adversaries.hbs @@ -0,0 +1,28 @@ +
+ + {{#each document.system.potentialAdversaries}} +
+ {{this.label}} +
+ + +
+
+ {{#each this.adversaries as |adversary|}} +
+ {{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=adversary type='adversary' isActor=true categoryAdversary=@../key}} +
+ {{/each}} +
+
+ Drop Actors here +
+
+ {{/each}} +
\ No newline at end of file diff --git a/templates/sheets/applications/environment-settings/details.hbs b/templates/sheets/applications/environment-settings/details.hbs new file mode 100644 index 00000000..f6a9518b --- /dev/null +++ b/templates/sheets/applications/environment-settings/details.hbs @@ -0,0 +1,16 @@ +
+
+ {{localize 'DAGGERHEART.General.basics'}} +
+ {{formGroup systemFields.tier value=document.system.tier localize=true}} + {{formGroup systemFields.type value=document.system.type localize=true}} + {{formGroup systemFields.difficulty value=document.system.difficulty localize=true}} +
+ {{formField systemFields.description value=document.system.description label=(localize "DAGGERHEART.Sheets.Environment.FIELDS.description.label")}} + {{formField systemFields.impulses value=document.system.impulses label=(localize "DAGGERHEART.Sheets.Environment.FIELDS.impulses.label")}} +
+
\ No newline at end of file diff --git a/templates/sheets/applications/environment-settings/header.hbs b/templates/sheets/applications/environment-settings/header.hbs new file mode 100644 index 00000000..0978f2c3 --- /dev/null +++ b/templates/sheets/applications/environment-settings/header.hbs @@ -0,0 +1,3 @@ +
+

{{document.name}}

+
\ No newline at end of file diff --git a/templates/sheets/character/character.hbs b/templates/sheets/character/character.hbs deleted file mode 100644 index 28b80cc7..00000000 --- a/templates/sheets/character/character.hbs +++ /dev/null @@ -1,151 +0,0 @@ -
-
-
-
-
- {{#if document.system.class.value}} -
-

- - {{document.system.class.value.name}} - -

- - {{document.system.class.value.system.domains.[0]}} - and - {{document.system.class.value.system.domains.[1]}} -
- {{else}} -
-

Class

-
- {{/if}} -
-
-
-
-
-
-
-
- {{localize "DAGGERHEART.Sheets.PC.Name"}} - -
-
- {{localize "DAGGERHEART.Sheets.PC.Pronouns"}} - -
-
- - -
-
-
-
- - {{#if document.system.levelData.canLevelUp}}
*
{{/if}} -
- -
{{localize "DAGGERHEART.Sheets.PC.Level"}}
-
-
-
- {{#objectSelector title="Heritage" ids=(join document.system.community.uuid document.system.ancestry.uuid) values=(join document.system.community.name document.system.ancestry.name) titleFontSize=14 style="min-width: 272px;"}} - - - {{/objectSelector}} - {{#objectSelector title="Subclass" ids=(join document.system.class.subclass.uuid) values=(join document.system.class.subclass.name) titleFontSize=14}} - - {{/objectSelector}} -
-
-
- -
-
-
-
-
-
-
-
-
- {{> "systems/daggerheart/templates/sheets/parts/defense.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/health.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/hope.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/gold.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/features.hbs" }} -
-
- {{> "systems/daggerheart/templates/sheets/parts/attributes.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/weapons.hbs" primaryWeapon=document.system.primaryWeapon secondaryWeapon=document.system.secondaryWeapon weaponBurden=document.system.getWeaponBurden proficiency=document.system.proficiency }} - {{> "systems/daggerheart/templates/sheets/parts/armor.hbs" armor=document.system.armor }} -
-
-
-
-
-
- {{> "systems/daggerheart/templates/sheets/character/sections/loadout.hbs" abilities=this.abilities actor=this.document config=this.config }} -
-
- {{> "systems/daggerheart/templates/sheets/character/sections/inventory.hbs" inventory=this.inventory }} -
-
-
-
-
- {{localize "DAGGERHEART.Sheets.PC.Story.BackgroundTitle"}} - - {{editor document.system.story.background target="system.story.background" button=true }} -
-
- {{localize "DAGGERHEART.Sheets.PC.Story.AppearanceTitle"}} - - {{editor document.system.story.appearance target="system.story.appearance" button=true }} -
-
-
-
- {{localize "DAGGERHEART.Sheets.PC.Story.ConnectionsTitle"}} - - {{editor document.system.story.connections target="system.story.connections" button=true }} -
-
- - {{localize "DAGGERHEART.Sheets.PC.Story.Scars.Title"}} - - - -
- {{#each document.system.story.scars as |scar index|}} -
- - -
- {{/each}} -
- {{#with (lookup document.system.story.scars this.selectedScar)}} - {{#if this}} -
- - {{editor this.description target=(concat "system.story.scars." ../selectedScar ".description") button=true}} -
- {{/if}} - {{/with}} -
-
-
-
-
-
- -
-
\ No newline at end of file diff --git a/templates/sheets/character/parts/advancementCard.hbs b/templates/sheets/character/parts/advancementCard.hbs deleted file mode 100644 index 89e7c145..00000000 --- a/templates/sheets/character/parts/advancementCard.hbs +++ /dev/null @@ -1,27 +0,0 @@ -
-
- -
- {{#each card.domains}} - - {{/each}} -
-
-
{{card.className}}
-
-
-
-
{{card.subclassName}}
-
{{card.subtitle}}
- {{#if card.spellcast}}
Spellcast:  {{localize card.spellcast}}
{{/if}} -
{{{card.description}}}
-
- {{#each card.abilities as |ability key|}} -
- {{ability.name}} - {{{ability.system.description}}} -
- {{/each}} -
-
-
\ No newline at end of file diff --git a/templates/sheets/character/parts/heritageCard.hbs b/templates/sheets/character/parts/heritageCard.hbs deleted file mode 100644 index 40401ac8..00000000 --- a/templates/sheets/character/parts/heritageCard.hbs +++ /dev/null @@ -1,18 +0,0 @@ -
-
- -
{{card.system.type}}
-
-
-
{{card.name}}
-
{{{card.system.description}}}
-
- {{#each card.system.abilities as |ability key|}} -
- {{ability.name}} - {{{ability.system.description}}} -
- {{/each}} -
-
-
\ No newline at end of file diff --git a/templates/sheets/character/sections/inventory.hbs b/templates/sheets/character/sections/inventory.hbs deleted file mode 100644 index f56138dc..00000000 --- a/templates/sheets/character/sections/inventory.hbs +++ /dev/null @@ -1,35 +0,0 @@ -
- {{#each this.inventory as |section key|}} -
    -
  1. -
    -
    {{section.titles.name}}
    -
    {{section.titles.quantity}}
    -
    -
  2. -
-
    - {{#each this.items as |item|}} -
  1. -
    -
    -
    - - {{item.name}} -
    -
    -
    - -
    -
    - - - -
    - -
    -
  2. - {{/each}} -
- {{/each}} -
\ No newline at end of file diff --git a/templates/sheets/character/sections/loadout.hbs b/templates/sheets/character/sections/loadout.hbs deleted file mode 100644 index 4feeebe8..00000000 --- a/templates/sheets/character/sections/loadout.hbs +++ /dev/null @@ -1,137 +0,0 @@ -
- -
-
-
-
-
- {{#if abilities.foundation.ancestry}} - {{> "systems/daggerheart/templates/sheets/character/parts/heritageCard.hbs" card=abilities.foundation.ancestry }} - {{else}} -
-
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyAncestry"}}
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyAncestryTip"}}
-
-
-
- {{/if}} -
-
- {{#if abilities.foundation.community}} - {{> "systems/daggerheart/templates/sheets/character/parts/heritageCard.hbs" card=abilities.foundation.community }} - {{else}} -
-
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyCommunity"}}
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyCommunityTip"}}
-
-
-
- {{/if}} -
-
-
-
- {{#if abilities.foundation.advancement.foundation}} - {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.foundation }} - {{else}} -
-
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.SubclassFoundation"}}
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.SubclassFoundationTip"}}
-
-
-
- {{/if}} -
-
- {{#if abilities.foundation.advancement.first}} - {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.first }} - {{else}} -
-
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.Subclass"}}
-
{{localize "DAGGERHEART.General.Or"}}
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.Multiclass"}}
-
-
-
- {{/if}} -
-
- {{#if abilities.foundation.advancement.second}} - {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.second}} - {{else}} -
-
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.Subclass"}}
-
{{localize "DAGGERHEART.General.Or"}}
-
{{localize "DAGGERHEART.Sheets.PC.Heritage.Multiclass"}}
-
-
-
- {{/if}} -
-
-
-
-
-
-
- {{#times 2}} -
- {{#with (lookup ../abilities.loadout.top this)}} - {{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=false }} - {{/with}} - {{#if (not (lookup ../abilities.loadout.top this))}} -
-
{{localize "DAGGERHEART.Sheets.PC.DomainCard.AvailableDomainSlot"}}
-
-
- {{/if}} -
- {{/times}} -
-
- {{#times 3}} -
- {{#with (lookup ../abilities.loadout.bottom this)}} - {{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=false }} - {{/with}} - {{#if (gt (add this 3) ../actor/system/domainData.maxLoadout)}} -
-
{{localize "DAGGERHEART.Sheets.PC.DomainCard.UnavailableDomainSlot" level=(add this 2)}}
-
-
- {{/if}} - - {{#if (and (lte (add this 3) ../actor/system/domainData.maxLoadout) (lt ../abilities.loadout.bottom.length (add this 1)))}} -
-
{{localize "DAGGERHEART.Sheets.PC.DomainCard.AvailableDomainSlot"}}
-
-
- {{/if}} -
- {{/times}} -
-
-
-
-
- {{#each abilities.vault}} -
- {{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=true }} -
- {{/each}} -
-
-
-
\ No newline at end of file diff --git a/templates/sheets/environment.hbs b/templates/sheets/environment.hbs deleted file mode 100644 index 5a0f3bbb..00000000 --- a/templates/sheets/environment.hbs +++ /dev/null @@ -1,111 +0,0 @@ -
-
-
- -
- {{#if this.editMode}} - - {{else}} -
{{source.name}}
- {{/if}} -
-
- -
-
- {{#if this.editMode}} -
-

{{localize "DAGGERHEART.Sheets.Adversary.Description"}}

- -

{{localize "DAGGERHEART.Sheets.Environment.ToneAndFeel"}}

- -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-

{{localize "DAGGERHEART.Sheets.Environment.PotentialAdversaries"}}

- -
-
-

{{localize "DAGGERHEART.Sheets.Adversary.Features"}}

- {{#each data.features as |feature key|}} -
-
- -
{{feature.name}}
-
-
- - -
-
- {{/each}} -
-
- {{else}} -
-
- {{localize "DAGGERHEART.Sheets.Adversary.Description"}}: {{source.system.description}} -
-
- {{localize "DAGGERHEART.Sheets.Environment.ToneAndFeel"}}: {{source.system.toneAndFeel}} -
-
-
-
-
-
- - {{source.system.tier}} -
-
- - {{this.data.type}} -
-
-
-
- - {{source.system.difficulty}} -
-
-
- - - {{source.system.potentialAdversaries}} -
-
-
-
{{localize "DAGGERHEART.Sheets.Adversary.Features"}}
- {{#each data.features as |feature index|}} -
- -
{{{feature.system.description}}}
-
- {{/each}} -
-
- {{/if}} -
-
diff --git a/templates/sheets/global/partials/inventory-fieldset-items.hbs b/templates/sheets/global/partials/inventory-fieldset-items.hbs index 81ff5094..0051d6df 100644 --- a/templates/sheets/global/partials/inventory-fieldset-items.hbs +++ b/templates/sheets/global/partials/inventory-fieldset-items.hbs @@ -49,6 +49,9 @@ {{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=feature companion=true}} {{/if}} {{/each}} + {{#each adversaries as |adversary|}} + {{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=adversary type='adversary' hideControls=true isActor=true categoryAdversary=@../key}} + {{/each}} {{/unless}} diff --git a/templates/sheets/global/partials/inventory-item.hbs b/templates/sheets/global/partials/inventory-item.hbs index a27bc3ce..491829d1 100644 --- a/templates/sheets/global/partials/inventory-item.hbs +++ b/templates/sheets/global/partials/inventory-item.hbs @@ -1,5 +1,5 @@
  • - +
    {{item.name}}
    {{#if (eq type 'weapon')}} @@ -111,31 +111,48 @@
    {{/if}} -
    - {{#if (eq type 'weapon')}} - - - + {{#unless hideControls}} + {{#if isActor}} +
    + {{#if (eq type 'adversary')}} + + + + + + + {{/if}} +
    + {{else}} +
    + {{#if (eq type 'weapon')}} + + + + {{/if}} + {{#if (eq type 'armor')}} + + + + {{/if}} + {{#if (eq type 'domainCard')}} + {{#unless item.system.inVault}} + + + + {{else}} + + + + {{/unless}} + + {{/if}} + + +
    {{/if}} - {{#if (eq type 'armor')}} - - - - {{/if}} - {{#if (eq type 'domainCard')}} - {{#unless item.system.inVault}} - - - - {{else}} - - - - {{/unless}} - - {{/if}} - - -
    + {{else}} + + {{/unless}}
    {{#unless isSidebar}}{{{item.system.description}}}{{/unless}}
  • \ No newline at end of file