mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Compare commits
4 commits
9393bab6cf
...
4cd6fe58da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cd6fe58da | ||
|
|
d94eb9dcbd | ||
|
|
8d9b954629 | ||
|
|
e590dde567 |
15 changed files with 39 additions and 19 deletions
|
|
@ -2085,6 +2085,7 @@
|
|||
"tier4": "tier 4",
|
||||
"domains": "Domains",
|
||||
"downtime": "Downtime",
|
||||
"itemFeatures": "Item Features",
|
||||
"roll": "Roll",
|
||||
"rules": "Rules",
|
||||
"partyMembers": "Party Members",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
|
|||
context.formula = this.roll.constructFormula(this.config);
|
||||
if (this.actor?.system?.traits) context.abilities = this.getTraitModifiers();
|
||||
|
||||
context.showReaction = !this.config.roll?.type && context.rollType === 'DualityRoll';
|
||||
context.showReaction = !this.config.roll?.type || context.rollType === 'DualityRoll';
|
||||
context.reactionOverride = this.reactionOverride;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export default class DaggerheartMenu extends HandlebarsApplicationMixin(Abstract
|
|||
|
||||
/** @override */
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ['dh-style'],
|
||||
classes: ['dh-style', 'directory'],
|
||||
window: {
|
||||
title: 'SIDEBAR.TabSettings'
|
||||
},
|
||||
|
|
|
|||
|
|
@ -92,6 +92,19 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
|||
super.close(options);
|
||||
}
|
||||
|
||||
/** Ensure the chat theme inherits the interface theme */
|
||||
_replaceHTML(result, content, options) {
|
||||
const themedElement = result.log?.querySelector(".chat-log");
|
||||
themedElement?.classList.remove("themed", "theme-light", "theme-dark");
|
||||
super._replaceHTML(result, content, options);
|
||||
}
|
||||
|
||||
/** Remove chat log theme from notifications area */
|
||||
async _onFirstRender(result, content) {
|
||||
await super._onFirstRender(result, content);
|
||||
document.querySelector("#chat-notifications .chat-log")?.classList.remove("themed", "theme-light", "theme-dark")
|
||||
}
|
||||
|
||||
async onRollSimple(event, message) {
|
||||
const buttonType = event.target.dataset.type ?? 'damage',
|
||||
total = message.rolls.reduce((a, c) => a + Roll.fromJSON(c).total, 0),
|
||||
|
|
|
|||
|
|
@ -2,20 +2,18 @@
|
|||
@import '../utils/fonts.less';
|
||||
@import '../utils/mixin.less';
|
||||
|
||||
.theme-light {
|
||||
.daggerheart.chat-sidebar .chat-log,
|
||||
#chat-notifications .chat-log {
|
||||
.chat-message {
|
||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.chat-log .chat-message {
|
||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||
|
||||
.message-header .message-header-metadata .message-metadata,
|
||||
.message-header .message-header-main .message-sub-header-container {
|
||||
color: @dark;
|
||||
}
|
||||
.message-header .message-header-metadata .message-metadata,
|
||||
.message-header .message-header-main .message-sub-header-container {
|
||||
color: @dark;
|
||||
}
|
||||
|
||||
.message-header .message-header-main .message-sub-header-container h4 {
|
||||
color: @dark-blue;
|
||||
}
|
||||
.message-header .message-header-main .message-sub-header-container h4 {
|
||||
color: @dark-blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
@import '../../utils/fonts.less';
|
||||
@import '../../utils/spacing.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat.domain-card {
|
||||
.domain-card-move .domain-card-header {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
@import '../../utils/fonts.less';
|
||||
@import '../../utils/spacing.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat.action {
|
||||
.action-move .action-section {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
@import '../../utils/fonts.less';
|
||||
@import '../../utils/spacing.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat-sidebar .chat-log,
|
||||
#chat-notifications .chat-log {
|
||||
.chat-log {
|
||||
--text-color: @dark-blue;
|
||||
--bg-color: @dark-blue-40;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
@import '../../utils/colors.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat.damage-summary .token-target-container {
|
||||
&:hover {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
@import '../../utils/fonts.less';
|
||||
@import '../../utils/spacing.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat.downtime {
|
||||
.downtime-moves-list .downtime-move {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
@import '../../utils/colors.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.daggerheart.chat.effect-summary {
|
||||
.effect-header,
|
||||
|
|
|
|||
|
|
@ -125,9 +125,9 @@
|
|||
|
||||
.group-roll-trait {
|
||||
padding: 2px 8px;
|
||||
border: 1px solid light-dark(white, white);
|
||||
border: 1px solid light-dark(@dark-blue, white);
|
||||
border-radius: 6px;
|
||||
color: light-dark(white, white);
|
||||
color: light-dark(@dark-blue, white);
|
||||
background: light-dark(@beige-80, @beige-80);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
@import '../../utils/colors.less';
|
||||
@import '../../utils/fonts.less';
|
||||
|
||||
.daggerheart.chat-sidebar.theme-light,
|
||||
#interface.theme-light {
|
||||
.chat-message:not(.duality) .message-content {
|
||||
color: @dark;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
overflow: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"id": "daggerheart",
|
||||
"title": "Daggerheart",
|
||||
"description": "An unofficial implementation of the Daggerheart system",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"compatibility": {
|
||||
"minimum": "13.346",
|
||||
"verified": "13.351",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue