mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +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",
|
||||
"label": "Label",
|
||||
"level": "Level",
|
||||
"levelShort": "Lv",
|
||||
"levelUp": "Level Up",
|
||||
"loadout": "Loadout",
|
||||
"max": "Max",
|
||||
|
|
@ -2081,7 +2082,9 @@
|
|||
"FIELDS": {
|
||||
"displayFear": { "label": "Fear Display" },
|
||||
"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": {
|
||||
"token": "Tokens",
|
||||
|
|
|
|||
|
|
@ -395,6 +395,9 @@ export default function DHApplicationMixin(Base) {
|
|||
context.source = this.document;
|
||||
context.fields = this.document.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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ export default class DHDomainCard extends BaseDataItem {
|
|||
const tags = [
|
||||
game.i18n.localize(`DAGGERHEART.CONFIG.DomainCardTypes.${this.type}`),
|
||||
this.domainLabel,
|
||||
`${game.i18n.localize('DAGGERHEART.GENERAL.levelShort')}: ${this.level}`,
|
||||
`${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({
|
||||
initial: true,
|
||||
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 {
|
||||
|
|
@ -42,6 +73,7 @@
|
|||
align-items: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
|
||||
.img-portait {
|
||||
flex: 0 0 40px;
|
||||
|
|
@ -75,6 +107,10 @@
|
|||
|
||||
.item-name {
|
||||
font-size: 14px;
|
||||
|
||||
.expanded-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.item-tags,
|
||||
|
|
@ -118,6 +154,11 @@
|
|||
justify-content: end;
|
||||
gap: 8px;
|
||||
|
||||
a {
|
||||
width: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.unequipped {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
</header>
|
||||
{{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.expandedCharacterDescriptions value=settingFields._source.expandedCharacterDescriptions localize=true}}
|
||||
{{formGroup settingFields.schema.fields.expandedAdversaryDescriptions value=settingFields._source.expandedAdversaryDescriptions localize=true}}
|
||||
|
||||
{{#if showDiceSoNice}}
|
||||
<fieldset>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Parameters:
|
|||
<div class="item-label">
|
||||
|
||||
{{!-- 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 --}}
|
||||
{{#with item}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue