mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Removed action fields on Adversary/Environment in favor of using Feature Items
This commit is contained in:
parent
9d76405221
commit
c3b8def6b1
23 changed files with 274 additions and 433 deletions
|
|
@ -213,6 +213,7 @@
|
||||||
"Features": "Features",
|
"Features": "Features",
|
||||||
"proficiency": "Proficiency",
|
"proficiency": "Proficiency",
|
||||||
"unarmored": "Unarmored",
|
"unarmored": "Unarmored",
|
||||||
|
"newFeature": "New Feature",
|
||||||
"Experience": {
|
"Experience": {
|
||||||
"Single": "Experience",
|
"Single": "Experience",
|
||||||
"plural": "Experiences"
|
"plural": "Experiences"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
import DHActionConfig from './action-config.mjs';
|
|
||||||
import DHBaseItemSheet from '../sheets/api/base-item.mjs';
|
|
||||||
import { actionsTypes } from '../../data/action/_module.mjs';
|
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||||
|
|
||||||
export default class DHAdversarySettings extends HandlebarsApplicationMixin(ApplicationV2) {
|
export default class DHAdversarySettings extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
|
|
@ -26,9 +22,9 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
|
||||||
actions: {
|
actions: {
|
||||||
addExperience: this.#addExperience,
|
addExperience: this.#addExperience,
|
||||||
removeExperience: this.#removeExperience,
|
removeExperience: this.#removeExperience,
|
||||||
addAction: this.#addAction,
|
addFeature: this.#addFeature,
|
||||||
editAction: this.#editAction,
|
editFeature: this.#editFeature,
|
||||||
removeAction: this.#removeAction
|
removeFeature: this.#removeFeature
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
handler: this.updateForm,
|
handler: this.updateForm,
|
||||||
|
|
@ -55,9 +51,9 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
|
||||||
id: 'experiences',
|
id: 'experiences',
|
||||||
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/experiences.hbs'
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/experiences.hbs'
|
||||||
},
|
},
|
||||||
actions: {
|
features: {
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/actions.hbs'
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/features.hbs'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -86,13 +82,13 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.experiences'
|
label: 'DAGGERHEART.General.tabs.experiences'
|
||||||
},
|
},
|
||||||
actions: {
|
features: {
|
||||||
active: false,
|
active: false,
|
||||||
cssClass: '',
|
cssClass: '',
|
||||||
group: 'primary',
|
group: 'primary',
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.actions'
|
label: 'DAGGERHEART.General.tabs.features'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -130,46 +126,25 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
static async #addAction(_event, _button) {
|
static async #addFeature(_, _button) {
|
||||||
const actionType = await DHBaseItemSheet.selectActionType();
|
await this.actor.createEmbeddedDocuments('Item', [
|
||||||
if (!actionType) return;
|
{
|
||||||
try {
|
type: 'feature',
|
||||||
const cls = actionsTypes[actionType] ?? actionsTypes.attack,
|
name: game.i18n.localize('DAGGERHEART.General.newFeature'),
|
||||||
action = new cls(
|
img: 'icons/skills/melee/weapons-crossed-swords-black.webp'
|
||||||
{
|
}
|
||||||
_id: foundry.utils.randomID(),
|
]);
|
||||||
type: actionType,
|
this.render();
|
||||||
name: game.i18n.localize(CONFIG.DH.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) {
|
static async #editFeature(event, target) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const actionIndex = target.dataset.index;
|
this.actor.items.get(target.id).sheet.render(true);
|
||||||
await new DHActionConfig(this.actor.system.actions[actionIndex]).render({
|
|
||||||
force: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async #removeAction(event, target) {
|
static async #removeFeature(event, target) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const actionIndex = target.dataset.index;
|
await this.actor.deleteEmbeddedDocuments('Item', [target.id]);
|
||||||
await this.actor.update({
|
|
||||||
'system.actions': this.actor.system.actions.filter((_, index) => index !== Number.parseInt(actionIndex))
|
|
||||||
});
|
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
import DHActionConfig from './action-config.mjs';
|
|
||||||
import DHBaseItemSheet from '../sheets/api/base-item.mjs';
|
|
||||||
import { actionsTypes } from '../../data/action/_module.mjs';
|
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||||
|
|
||||||
export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(ApplicationV2) {
|
export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
|
|
@ -25,9 +21,9 @@ export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(Ap
|
||||||
},
|
},
|
||||||
position: { width: 455, height: 'auto' },
|
position: { width: 455, height: 'auto' },
|
||||||
actions: {
|
actions: {
|
||||||
addAction: this.#addAction,
|
addFeature: this.#addFeature,
|
||||||
editAction: this.#editAction,
|
editFeature: this.#editFeature,
|
||||||
removeAction: this.#removeAction,
|
removeFeature: this.#removeFeature,
|
||||||
addCategory: this.#addCategory,
|
addCategory: this.#addCategory,
|
||||||
deleteProperty: this.#deleteProperty,
|
deleteProperty: this.#deleteProperty,
|
||||||
viewAdversary: this.#viewAdversary,
|
viewAdversary: this.#viewAdversary,
|
||||||
|
|
@ -51,9 +47,9 @@ export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(Ap
|
||||||
id: 'details',
|
id: 'details',
|
||||||
template: 'systems/daggerheart/templates/sheets-settings/environment-settings/details.hbs'
|
template: 'systems/daggerheart/templates/sheets-settings/environment-settings/details.hbs'
|
||||||
},
|
},
|
||||||
actions: {
|
features: {
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
template: 'systems/daggerheart/templates/sheets-settings/environment-settings/actions.hbs'
|
template: 'systems/daggerheart/templates/sheets-settings/environment-settings/features.hbs'
|
||||||
},
|
},
|
||||||
adversaries: {
|
adversaries: {
|
||||||
id: 'adversaries',
|
id: 'adversaries',
|
||||||
|
|
@ -70,13 +66,13 @@ export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(Ap
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.details'
|
label: 'DAGGERHEART.General.tabs.details'
|
||||||
},
|
},
|
||||||
actions: {
|
features: {
|
||||||
active: false,
|
active: false,
|
||||||
cssClass: '',
|
cssClass: '',
|
||||||
group: 'primary',
|
group: 'primary',
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.actions'
|
label: 'DAGGERHEART.General.tabs.features'
|
||||||
},
|
},
|
||||||
adversaries: {
|
adversaries: {
|
||||||
active: false,
|
active: false,
|
||||||
|
|
@ -122,46 +118,23 @@ export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(Ap
|
||||||
return tabs;
|
return tabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
static async #addAction(_event, _button) {
|
static async #addFeature(_, _button) {
|
||||||
const actionType = await DHBaseItemSheet.selectActionType();
|
await this.actor.createEmbeddedDocuments('Item', [
|
||||||
if (!actionType) return;
|
{
|
||||||
try {
|
type: 'feature',
|
||||||
const cls = actionsTypes[actionType] ?? actionsTypes.attack,
|
name: game.i18n.localize('DAGGERHEART.General.newFeature'),
|
||||||
action = new cls(
|
img: 'icons/magic/perception/orb-crystal-ball-scrying-blue.webp'
|
||||||
{
|
}
|
||||||
_id: foundry.utils.randomID(),
|
]);
|
||||||
type: actionType,
|
this.render();
|
||||||
name: game.i18n.localize(CONFIG.DH.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) {
|
static async #editFeature(_, target) {
|
||||||
event.stopPropagation();
|
this.actor.items.get(target.id).sheet.render(true);
|
||||||
const actionIndex = target.dataset.index;
|
|
||||||
await new DHActionConfig(this.actor.system.actions[actionIndex]).render({
|
|
||||||
force: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static async #removeAction(event, target) {
|
static async #removeFeature(_, target) {
|
||||||
event.stopPropagation();
|
await this.actor.deleteEmbeddedDocuments('Item', [target.id]);
|
||||||
const actionIndex = target.dataset.index;
|
|
||||||
await this.actor.update({
|
|
||||||
'system.actions': this.actor.system.actions.filter((_, index) => index !== Number.parseInt(actionIndex))
|
|
||||||
});
|
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,19 +29,19 @@ export default class AdversarySheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
static PARTS = {
|
static PARTS = {
|
||||||
sidebar: { template: 'systems/daggerheart/templates/sheets/actors/adversary/sidebar.hbs' },
|
sidebar: { template: 'systems/daggerheart/templates/sheets/actors/adversary/sidebar.hbs' },
|
||||||
header: { template: 'systems/daggerheart/templates/sheets/actors/adversary/header.hbs' },
|
header: { template: 'systems/daggerheart/templates/sheets/actors/adversary/header.hbs' },
|
||||||
actions: { template: 'systems/daggerheart/templates/sheets/actors/adversary/actions.hbs' },
|
features: { template: 'systems/daggerheart/templates/sheets/actors/adversary/features.hbs' },
|
||||||
notes: { template: 'systems/daggerheart/templates/sheets/actors/adversary/notes.hbs' },
|
notes: { template: 'systems/daggerheart/templates/sheets/actors/adversary/notes.hbs' },
|
||||||
effects: { template: 'systems/daggerheart/templates/sheets/actors/adversary/effects.hbs' }
|
effects: { template: 'systems/daggerheart/templates/sheets/actors/adversary/effects.hbs' }
|
||||||
};
|
};
|
||||||
|
|
||||||
static TABS = {
|
static TABS = {
|
||||||
actions: {
|
features: {
|
||||||
active: true,
|
active: true,
|
||||||
cssClass: '',
|
cssClass: '',
|
||||||
group: 'primary',
|
group: 'primary',
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.actions'
|
label: 'DAGGERHEART.General.tabs.features'
|
||||||
},
|
},
|
||||||
notes: {
|
notes: {
|
||||||
active: false,
|
active: false,
|
||||||
|
|
@ -71,9 +71,9 @@ export default class AdversarySheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
getAction(element) {
|
getItem(element) {
|
||||||
const itemId = (element.target ?? element).closest('[data-item-id]').dataset.itemId,
|
const itemId = (element.target ?? element).closest('[data-item-id]').dataset.itemId,
|
||||||
item = this.document.system.actions.find(x => x.id === itemId);
|
item = this.document.items.get(itemId);
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ export default class AdversarySheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async useItem(event) {
|
static async useItem(event) {
|
||||||
const action = this.getAction(event) ?? this.actor.system.attack;
|
const action = this.getItem(event) ?? this.actor.system.attack;
|
||||||
action.use(event);
|
action.use(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -134,7 +134,7 @@ export default class AdversarySheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
|
|
||||||
cls.create(msg.toObject());
|
cls.create(msg.toObject());
|
||||||
} else {
|
} else {
|
||||||
const item = this.getAction(event) ?? this.document.system.attack;
|
const item = this.getItem(event) ?? this.document.system.attack;
|
||||||
item.toChat(this.document.id);
|
item.toChat(this.document.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
|
||||||
|
|
||||||
static PARTS = {
|
static PARTS = {
|
||||||
header: { template: 'systems/daggerheart/templates/sheets/actors/environment/header.hbs' },
|
header: { template: 'systems/daggerheart/templates/sheets/actors/environment/header.hbs' },
|
||||||
actions: { template: 'systems/daggerheart/templates/sheets/actors/environment/actions.hbs' },
|
features: { template: 'systems/daggerheart/templates/sheets/actors/environment/features.hbs' },
|
||||||
potentialAdversaries: {
|
potentialAdversaries: {
|
||||||
template: 'systems/daggerheart/templates/sheets/actors/environment/potentialAdversaries.hbs'
|
template: 'systems/daggerheart/templates/sheets/actors/environment/potentialAdversaries.hbs'
|
||||||
},
|
},
|
||||||
|
|
@ -34,13 +34,13 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
|
||||||
};
|
};
|
||||||
|
|
||||||
static TABS = {
|
static TABS = {
|
||||||
actions: {
|
features: {
|
||||||
active: true,
|
active: true,
|
||||||
cssClass: '',
|
cssClass: '',
|
||||||
group: 'primary',
|
group: 'primary',
|
||||||
id: 'actions',
|
id: 'features',
|
||||||
icon: null,
|
icon: null,
|
||||||
label: 'DAGGERHEART.General.tabs.actions'
|
label: 'DAGGERHEART.General.tabs.features'
|
||||||
},
|
},
|
||||||
potentialAdversaries: {
|
potentialAdversaries: {
|
||||||
active: false,
|
active: false,
|
||||||
|
|
@ -69,9 +69,9 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
getAction(element) {
|
getItem(element) {
|
||||||
const itemId = (element.target ?? element).closest('[data-item-id]').dataset.itemId,
|
const itemId = (element.target ?? element).closest('[data-item-id]').dataset.itemId,
|
||||||
item = this.document.system.actions.find(x => x.id === itemId);
|
item = this.document.items.get(itemId);
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,7 +114,7 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async useItem(event, button) {
|
static async useItem(event, button) {
|
||||||
const action = this.getAction(event);
|
const action = this.getItem(event);
|
||||||
if (!action) {
|
if (!action) {
|
||||||
await this.viewAdversary(event, button);
|
await this.viewAdversary(event, button);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -123,7 +123,7 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static async toChat(event) {
|
static async toChat(event) {
|
||||||
const item = this.getAction(event);
|
const item = this.getItem(event);
|
||||||
item.toChat(this.document.id);
|
item.toChat(this.document.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ export default class DhpAdversary extends BaseDataActor {
|
||||||
hitPoints: resourceField(),
|
hitPoints: resourceField(),
|
||||||
stress: resourceField()
|
stress: resourceField()
|
||||||
}),
|
}),
|
||||||
actions: new fields.ArrayField(new ActionField()),
|
|
||||||
attack: new ActionField({
|
attack: new ActionField({
|
||||||
initial: {
|
initial: {
|
||||||
name: 'Attack',
|
name: 'Attack',
|
||||||
|
|
@ -86,4 +85,8 @@ export default class DhpAdversary extends BaseDataActor {
|
||||||
get attackBonus() {
|
get attackBonus() {
|
||||||
return this.attack.roll.bonus;
|
return this.attack.roll.bonus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get features() {
|
||||||
|
return this.parent.items.filter(x => x.type === 'feature');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@ export default class DhCharacter extends BaseDataActor {
|
||||||
value: new ForeignDocumentUUIDField({ type: 'Item', nullable: true }),
|
value: new ForeignDocumentUUIDField({ type: 'Item', nullable: true }),
|
||||||
subclass: new ForeignDocumentUUIDField({ type: 'Item', nullable: true })
|
subclass: new ForeignDocumentUUIDField({ type: 'Item', nullable: true })
|
||||||
}),
|
}),
|
||||||
actions: new fields.ArrayField(new ActionField()),
|
|
||||||
levelData: new fields.EmbeddedDataField(DhLevelData),
|
levelData: new fields.EmbeddedDataField(DhLevelData),
|
||||||
bonuses: new fields.SchemaField({
|
bonuses: new fields.SchemaField({
|
||||||
armorScore: new fields.NumberField({ integer: true, initial: 0 }),
|
armorScore: new fields.NumberField({ integer: true, initial: 0 }),
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,11 @@ export default class DhEnvironment extends BaseDataActor {
|
||||||
adversaries: new ForeignDocumentUUIDArrayField({ type: 'Actor' })
|
adversaries: new ForeignDocumentUUIDArrayField({ type: 'Actor' })
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
actions: new fields.ArrayField(new ActionField()),
|
|
||||||
notes: new fields.HTMLField()
|
notes: new fields.HTMLField()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get features() {
|
||||||
|
return this.parent.items.filter(x => x.type === 'feature');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,6 @@ export default class D20Roll extends DHRoll {
|
||||||
: config.roll.advantage == this.ADV_MODE.DISADVANTAGE
|
: config.roll.advantage == this.ADV_MODE.DISADVANTAGE
|
||||||
? false
|
? false
|
||||||
: null;
|
: null;
|
||||||
setDiceSoNiceForDualityRoll(roll, advantageState);
|
|
||||||
this.postEvaluate(roll, config);
|
this.postEvaluate(roll, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4884,122 +4884,78 @@ body.theme-light.application.environment {
|
||||||
.application.daggerheart.dh-style.dialog .tab.experiences .experience-list .experience-item a {
|
.application.daggerheart.dh-style.dialog .tab.experiences .experience-list .experience-item a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions {
|
.application.daggerheart.dh-style.dialog .tab.features {
|
||||||
max-height: 450px;
|
max-height: 450px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
|
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .add-action-btn {
|
.application.daggerheart.dh-style.dialog .tab.features .add-feature-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list .feature-item {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 40px 1fr auto;
|
grid-template-columns: 40px 1fr auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item img {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list .feature-item img {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item .label {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list .feature-item .label {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item .label .tags {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list .feature-item .controls {
|
||||||
display: flex;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
.application.daggerheart.dh-style.dialog .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 .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 .tab.actions .action-list .action-item .controls {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.actions .action-list .action-item .controls a {
|
.application.daggerheart.dh-style.dialog .tab.features .feature-list .feature-item .controls a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features {
|
||||||
max-height: 450px;
|
max-height: 450px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
|
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .add-action-btn {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .add-feature-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list .feature-item {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 40px 1fr auto;
|
grid-template-columns: 40px 1fr auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item img {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list .feature-item img {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list .feature-item .label {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .label .tags {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list .feature-item .controls {
|
||||||
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;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog.environment-settings .tab.actions .action-list .action-item .controls a {
|
.application.daggerheart.dh-style.dialog.environment-settings .tab.features .feature-list .feature-item .controls a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.application.daggerheart.dh-style.dialog .tab.adversaries {
|
.application.daggerheart.dh-style.dialog .tab.adversaries {
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,9 @@
|
||||||
@import './less/applications/header.less';
|
@import './less/applications/header.less';
|
||||||
@import './less/applications/adversary-settings/sheet.less';
|
@import './less/applications/adversary-settings/sheet.less';
|
||||||
@import './less/applications/adversary-settings/experiences.less';
|
@import './less/applications/adversary-settings/experiences.less';
|
||||||
@import './less/applications/adversary-settings/actions.less';
|
@import './less/applications/adversary-settings/features.less';
|
||||||
|
|
||||||
@import './less/applications/environment-settings/actions.less';
|
@import './less/applications/environment-settings/features.less';
|
||||||
@import './less/applications/environment-settings/adversaries.less';
|
@import './less/applications/environment-settings/adversaries.less';
|
||||||
|
|
||||||
@import './less/applications//beastform.less';
|
@import './less/applications//beastform.less';
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
@import '../../utils/colors.less';
|
@import '../../utils/colors.less';
|
||||||
@import '../../utils/fonts.less';
|
@import '../../utils/fonts.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||||
.tab.actions {
|
.tab.features {
|
||||||
.action-section {
|
.feature-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
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;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
height: 95%;
|
height: 95%;
|
||||||
|
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
@import '../../utils/colors.less';
|
|
||||||
@import '../../utils/fonts.less';
|
|
||||||
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
|
|
||||||
.action-item {
|
|
||||||
display: grid;
|
|
||||||
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;
|
|
||||||
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
48
styles/less/applications/adversary-settings/features.less
Normal file
48
styles/less/applications/adversary-settings/features.less
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
@import '../../utils/colors.less';
|
||||||
|
@import '../../utils/fonts.less';
|
||||||
|
|
||||||
|
.application.daggerheart.dh-style.dialog {
|
||||||
|
.tab.features {
|
||||||
|
max-height: 450px;
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||||
|
|
||||||
|
.add-feature-btn {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
|
.feature-item {
|
||||||
|
display: grid;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 5px;
|
||||||
|
a {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
@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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
48
styles/less/applications/environment-settings/features.less
Normal file
48
styles/less/applications/environment-settings/features.less
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
@import '../../utils/colors.less';
|
||||||
|
@import '../../utils/fonts.less';
|
||||||
|
|
||||||
|
.application.daggerheart.dh-style.dialog.environment-settings {
|
||||||
|
.tab.features {
|
||||||
|
max-height: 450px;
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||||
|
|
||||||
|
.add-feature-btn {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
|
.feature-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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 5px;
|
||||||
|
a {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
<section
|
|
||||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
|
||||||
data-tab='{{tabs.actions.id}}'
|
|
||||||
data-group='{{tabs.actions.group}}'
|
|
||||||
>
|
|
||||||
<button class="add-action-btn" data-action="addAction">
|
|
||||||
New Action
|
|
||||||
</button>
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize tabs.actions.label}}</legend>
|
|
||||||
<ul class="action-list">
|
|
||||||
{{#each document.system.actions as |action index|}}
|
|
||||||
<li class="action-item">
|
|
||||||
<img src="{{action.img}}" alt="">
|
|
||||||
<div class="label">
|
|
||||||
<span>{{action.name}}</span>
|
|
||||||
<div class="tags">
|
|
||||||
<div class="tag">
|
|
||||||
{{localize (concat 'DAGGERHEART.Actions.Types.' action.type '.name')}}
|
|
||||||
</div>
|
|
||||||
<div class="tag">
|
|
||||||
{{localize (concat 'DAGGERHEART.ActionType.' action.actionType)}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="controls">
|
|
||||||
<a data-action="editAction" data-index="{{index}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.edit'}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
|
||||||
<a data-action="removeAction" data-index="{{index}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.delete'}}"><i class="fa-solid fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</fieldset>
|
|
||||||
</section>
|
|
||||||
26
templates/sheets-settings/adversary-settings/features.hbs
Normal file
26
templates/sheets-settings/adversary-settings/features.hbs
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
<section
|
||||||
|
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||||
|
data-tab='{{tabs.features.id}}'
|
||||||
|
data-group='{{tabs.features.group}}'
|
||||||
|
>
|
||||||
|
<button class="add-feature-btn" data-action="addFeature">
|
||||||
|
{{localize "DAGGERHEART.General.newFeature"}}
|
||||||
|
</button>
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize tabs.features.label}}</legend>
|
||||||
|
<ul class="feature-list">
|
||||||
|
{{#each document.system.features as |feature|}}
|
||||||
|
<li class="feature-item">
|
||||||
|
<img src="{{feature.img}}" alt="">
|
||||||
|
<div class="label">
|
||||||
|
<span>{{feature.name}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="controls">
|
||||||
|
<a data-action="editFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.edit'}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
||||||
|
<a data-action="removeFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.delete'}}"><i class="fa-solid fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
|
</section>
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
<section
|
|
||||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
|
||||||
data-tab='{{tabs.actions.id}}'
|
|
||||||
data-group='{{tabs.actions.group}}'
|
|
||||||
>
|
|
||||||
<button class="add-action-btn" data-action="addAction">
|
|
||||||
New Action
|
|
||||||
</button>
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize tabs.actions.label}}</legend>
|
|
||||||
<ul class="action-list">
|
|
||||||
{{#each document.system.actions as |action index|}}
|
|
||||||
<li class="action-item">
|
|
||||||
<img src="{{action.img}}" alt="">
|
|
||||||
<div class="label">
|
|
||||||
<span>{{action.name}}</span>
|
|
||||||
<div class="tags">
|
|
||||||
<div class="tag">
|
|
||||||
{{localize (concat 'DAGGERHEART.Actions.Types.' action.type '.name')}}
|
|
||||||
</div>
|
|
||||||
<div class="tag">
|
|
||||||
{{localize (concat 'DAGGERHEART.ActionType.' action.actionType)}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="controls">
|
|
||||||
<a data-action="editAction" data-index="{{index}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.edit'}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
|
||||||
<a data-action="removeAction" data-index="{{index}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.delete'}}"><i class="fa-solid fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</fieldset>
|
|
||||||
</section>
|
|
||||||
26
templates/sheets-settings/environment-settings/features.hbs
Normal file
26
templates/sheets-settings/environment-settings/features.hbs
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
<section
|
||||||
|
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||||
|
data-tab='{{tabs.features.id}}'
|
||||||
|
data-group='{{tabs.features.group}}'
|
||||||
|
>
|
||||||
|
<button class="add-feature-btn" data-action="addFeature">
|
||||||
|
{{localize "DAGGERHEART.General.newFeature"}}
|
||||||
|
</button>
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize tabs.features.label}}</legend>
|
||||||
|
<ul class="feature-list">
|
||||||
|
{{#each document.system.features as |feature|}}
|
||||||
|
<li class="feature-item">
|
||||||
|
<img src="{{feature.img}}" alt="">
|
||||||
|
<div class="label">
|
||||||
|
<span>{{feature.name}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="controls">
|
||||||
|
<a data-action="editFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.edit'}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
||||||
|
<a data-action="removeFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.delete'}}"><i class="fa-solid fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
|
</section>
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
<section
|
|
||||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
|
||||||
data-tab='{{tabs.actions.id}}'
|
|
||||||
data-group='{{tabs.actions.group}}'
|
|
||||||
>
|
|
||||||
<div class="action-section">
|
|
||||||
{{#if document.system.actions}}
|
|
||||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=(localize tabs.actions.label) type='action'}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
11
templates/sheets/actors/adversary/features.hbs
Normal file
11
templates/sheets/actors/adversary/features.hbs
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<section
|
||||||
|
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||||
|
data-tab='{{tabs.features.id}}'
|
||||||
|
data-group='{{tabs.features.group}}'
|
||||||
|
>
|
||||||
|
<div class="feature-section">
|
||||||
|
{{#if document.system.features}}
|
||||||
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=(localize tabs.features.label) type='feature'}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||||
data-tab='{{tabs.actions.id}}'
|
data-tab='{{tabs.features.id}}'
|
||||||
data-group='{{tabs.actions.group}}'
|
data-group='{{tabs.features.group}}'
|
||||||
>
|
>
|
||||||
<div class="action-section">
|
<div class="feature-section">
|
||||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=(localize tabs.actions.label) type='action'}}
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-fieldset-items.hbs' title=(localize tabs.actions.label) type='action'}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue