mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
add style to hover items and add start setting to features be expanded by default
This commit is contained in:
parent
68c9cd52ea
commit
7318b7b6da
7 changed files with 60 additions and 2 deletions
|
|
@ -1934,6 +1934,7 @@
|
||||||
"itemResource": "Item Resource",
|
"itemResource": "Item Resource",
|
||||||
"label": "Label",
|
"label": "Label",
|
||||||
"level": "Level",
|
"level": "Level",
|
||||||
|
"levelShort": "Lv",
|
||||||
"levelUp": "Level Up",
|
"levelUp": "Level Up",
|
||||||
"loadout": "Loadout",
|
"loadout": "Loadout",
|
||||||
"max": "Max",
|
"max": "Max",
|
||||||
|
|
@ -2081,7 +2082,9 @@
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"displayFear": { "label": "Fear Display" },
|
"displayFear": { "label": "Fear Display" },
|
||||||
"dualityColorScheme": { "label": "Chat Style" },
|
"dualityColorScheme": { "label": "Chat Style" },
|
||||||
"showGenericStatusEffects": { "label": "Show Foundry Status Effects" }
|
"showGenericStatusEffects": { "label": "Show Foundry Status Effects" },
|
||||||
|
"expandedCharacterDescriptions": { "label": "Auto-expand Descriptions from Characters" },
|
||||||
|
"expandedAdversaryDescriptions": { "label": "Auto-expand Descriptions from Adversaries" }
|
||||||
},
|
},
|
||||||
"fearDisplay": {
|
"fearDisplay": {
|
||||||
"token": "Tokens",
|
"token": "Tokens",
|
||||||
|
|
|
||||||
|
|
@ -395,6 +395,9 @@ export default function DHApplicationMixin(Base) {
|
||||||
context.source = this.document;
|
context.source = this.document;
|
||||||
context.fields = this.document.schema.fields;
|
context.fields = this.document.schema.fields;
|
||||||
context.systemFields = this.document.system.schema.fields;
|
context.systemFields = this.document.system.schema.fields;
|
||||||
|
context.settings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance);
|
||||||
|
// settings.expandedCharacterDescriptions
|
||||||
|
// settings.expandedAdversaryDescriptions
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ export default class DHDomainCard extends BaseDataItem {
|
||||||
const tags = [
|
const tags = [
|
||||||
game.i18n.localize(`DAGGERHEART.CONFIG.DomainCardTypes.${this.type}`),
|
game.i18n.localize(`DAGGERHEART.CONFIG.DomainCardTypes.${this.type}`),
|
||||||
this.domainLabel,
|
this.domainLabel,
|
||||||
|
`${game.i18n.localize('DAGGERHEART.GENERAL.levelShort')}: ${this.level}`,
|
||||||
`${game.i18n.localize('DAGGERHEART.ITEMS.DomainCard.recallCost')}: ${this.recallCost}`
|
`${game.i18n.localize('DAGGERHEART.ITEMS.DomainCard.recallCost')}: ${this.recallCost}`
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,14 @@ export default class DhAppearance extends foundry.abstract.DataModel {
|
||||||
showGenericStatusEffects: new fields.BooleanField({
|
showGenericStatusEffects: new fields.BooleanField({
|
||||||
initial: true,
|
initial: true,
|
||||||
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.showGenericStatusEffects.label'
|
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.showGenericStatusEffects.label'
|
||||||
|
}),
|
||||||
|
expandedCharacterDescriptions: new fields.BooleanField({
|
||||||
|
initial: false,
|
||||||
|
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandedCharacterDescriptions.label'
|
||||||
|
}),
|
||||||
|
expandedAdversaryDescriptions: new fields.BooleanField({
|
||||||
|
initial: false,
|
||||||
|
label: 'DAGGERHEART.SETTINGS.Appearance.FIELDS.expandedAdversaryDescriptions.label'
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,37 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.inventory-item-header .item-label .item-name .expanded-icon {
|
||||||
|
margin-left: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
&:has(.inventory-item-content.extensible) {
|
||||||
|
.inventory-item-header,
|
||||||
|
.inventory-item-content {
|
||||||
|
background: light-dark(@dark-blue-40, @golden-40);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:has(.inventory-item-content.extended) {
|
||||||
|
.inventory-item-header .item-label .item-name .expanded-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:has(.inventory-item-content.extensible) {
|
||||||
|
.inventory-item-header {
|
||||||
|
border-radius: 5px 5px 0 0;
|
||||||
|
}
|
||||||
|
.inventory-item-content {
|
||||||
|
border-radius: 0 0 5px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:has(.inventory-item-content.extensible)) .inventory-item-header {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.inventory-item-header {
|
.inventory-item-header {
|
||||||
|
|
@ -42,6 +73,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
.img-portait {
|
.img-portait {
|
||||||
flex: 0 0 40px;
|
flex: 0 0 40px;
|
||||||
|
|
@ -75,6 +107,10 @@
|
||||||
|
|
||||||
.item-name {
|
.item-name {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
|
.expanded-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-tags,
|
.item-tags,
|
||||||
|
|
@ -118,6 +154,11 @@
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
width: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.unequipped {
|
.unequipped {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
</header>
|
</header>
|
||||||
{{formGroup settingFields.schema.fields.displayFear value=settingFields._source.displayFear localize=true}}
|
{{formGroup settingFields.schema.fields.displayFear value=settingFields._source.displayFear localize=true}}
|
||||||
{{formGroup settingFields.schema.fields.showGenericStatusEffects value=settingFields._source.showGenericStatusEffects localize=true}}
|
{{formGroup settingFields.schema.fields.showGenericStatusEffects value=settingFields._source.showGenericStatusEffects localize=true}}
|
||||||
|
{{formGroup settingFields.schema.fields.expandedCharacterDescriptions value=settingFields._source.expandedCharacterDescriptions localize=true}}
|
||||||
|
{{formGroup settingFields.schema.fields.expandedAdversaryDescriptions value=settingFields._source.expandedAdversaryDescriptions localize=true}}
|
||||||
|
|
||||||
{{#if showDiceSoNice}}
|
{{#if showDiceSoNice}}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Parameters:
|
||||||
<div class="item-label">
|
<div class="item-label">
|
||||||
|
|
||||||
{{!-- Item Name --}}
|
{{!-- Item Name --}}
|
||||||
<div class="item-name">{{localize item.name}}</div>
|
<div class="item-name">{{localize item.name}} {{#unless noExtensible}}<span class="expanded-icon"><i class="fa-solid fa-expand"></i></span>{{/unless}}</div>
|
||||||
|
|
||||||
{{!-- Tags Start --}}
|
{{!-- Tags Start --}}
|
||||||
{{#with item}}
|
{{#with item}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue