Feature/89 gm fear display (#104)

* gm fear display

* clean up

* Make Fear Panel resizable

* Update for evil light mode

* Fix clients fear update

* minimizable false

* hover animation

* fix
This commit is contained in:
Dapoulp 2025-06-04 00:46:05 +02:00 committed by GitHub
parent 43b0c626c4
commit 32730b3aac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 7 deletions

View file

@ -20,14 +20,15 @@ export default class Resources extends HandlebarsApplicationMixin(ApplicationV2)
classes: [],
tag: "div",
window: {
frame: true,
title: "Fear",
positioned: true,
resizable: true
frame: true,
title: "Fear",
positioned: true,
resizable: true,
minimizable: false
},
actions: {
setFear: Resources.setFear,
increaseFear: Resources.increaseFear
setFear: Resources.setFear,
increaseFear: Resources.increaseFear
},
position: {
width: 222,

View file

@ -2,12 +2,17 @@
--primary-color-fear: rgba(9, 71, 179, .75);
--secondary-color-fear: rgba(9, 71, 179, .75);
--shadow-text-stroke: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
--fear-animation : background .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
}
#resources {
min-height: calc(var(--header-height) + 4rem);
min-width: 4rem;
color: #d3d3d3;
transition: var(--fear-animation);
header, .controls, .window-resize-handle {
transition: var(--fear-animation);
}
.window-content {
padding: .5rem;
#resource-fear {
@ -104,7 +109,7 @@
box-shadow: unset;
border-color: transparent;
header, .controls, .window-resize-handle {
visibility: hidden;
opacity: 0;
}
}
&:has(.fear-bar) {