mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
enhance death move chat message and fix border bottom from title actions
This commit is contained in:
parent
a9fca36ed5
commit
b9406bb9cb
5 changed files with 36 additions and 9 deletions
|
|
@ -51,11 +51,17 @@ export default class DhpDeathMove extends HandlebarsApplicationMixin(Application
|
||||||
'systems/daggerheart/templates/ui/chat/deathMove.hbs',
|
'systems/daggerheart/templates/ui/chat/deathMove.hbs',
|
||||||
{
|
{
|
||||||
player: this.actor.name,
|
player: this.actor.name,
|
||||||
|
actor: { name: this.actor.name, img: this.actor.img },
|
||||||
title: game.i18n.localize(this.selectedMove.name),
|
title: game.i18n.localize(this.selectedMove.name),
|
||||||
img: this.selectedMove.img,
|
img: this.selectedMove.img,
|
||||||
description: game.i18n.localize(this.selectedMove.description)
|
description: game.i18n.localize(this.selectedMove.description)
|
||||||
}
|
}
|
||||||
)
|
),
|
||||||
|
flags: {
|
||||||
|
daggerheart: {
|
||||||
|
cssClass: 'dh-chat-message dh-style'
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
cls.create(msg.toObject());
|
cls.create(msg.toObject());
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,9 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 8px;
|
margin: 8px 8px 0;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
width: -webkit-fill-available;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
border-bottom: 1px solid @golden;
|
border-bottom: 1px solid @golden;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 8px;
|
margin: 8px 8px 0;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
width: -webkit-fill-available;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
border-bottom: 1px solid @golden;
|
border-bottom: 1px solid @golden;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,8 @@
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
border-bottom: 1px solid @golden;
|
border-bottom: 1px solid @golden;
|
||||||
margin: 0 8px;
|
margin: 0 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
width: -webkit-fill-available;
|
||||||
|
|
||||||
.downtime-image {
|
.downtime-image {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,23 @@
|
||||||
<div class="daggerheart chat downtime">
|
<div class="daggerheart chat downtime">
|
||||||
<h2 class="downtime-title-container">
|
<div class="downtime-header">
|
||||||
<div>{{this.player}} {{localize "DAGGERHEART.UI.Chat.deathMove.title"}}</div>
|
<img class="profile" src="{{actor.img}}">
|
||||||
<div class="downtime-subtitle">{{this.title}}</div>
|
<div class="header-label">
|
||||||
</h2>
|
<h2 class="title">{{localize 'DAGGERHEART.UI.Chat.deathMove.title'}}</h2>
|
||||||
|
<span class="label">{{actor.name}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="downtime-moves-list">
|
||||||
|
<li class="downtime-move">
|
||||||
|
<div class="downtime-label">
|
||||||
<img class="downtime-image" src="{{this.img}}" />
|
<img class="downtime-image" src="{{this.img}}" />
|
||||||
<div>{{{this.description}}}</div>
|
<div class="header-label">
|
||||||
|
<h2 class="title">{{this.title}}</h2>
|
||||||
|
<span class="label">{{localize 'DAGGERHEART.UI.Chat.deathMove.title'}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="description">
|
||||||
|
{{{this.description}}}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue