Made the effect-hud more foundry standard to work better for modules (#1414)

This commit is contained in:
WBHarry 2025-12-13 16:10:44 +01:00 committed by GitHub
parent a8c120be8e
commit 6cb635901f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View file

@ -56,7 +56,7 @@
.effect-locked { .effect-locked {
position: absolute; position: absolute;
bottom: 2px; bottom: 2px;
right: 2px; left: 11.5px;
font-size: 12px; font-size: 12px;
color: @golden; color: @golden;
filter: drop-shadow(0 0 3px black); filter: drop-shadow(0 0 3px black);

View file

@ -46,8 +46,12 @@
</button> </button>
<div class="palette status-effects" data-palette="effects"> <div class="palette status-effects" data-palette="effects">
{{#each systemStatusEffects as |status|}} {{#each systemStatusEffects as |status|}}
<div class="effect-control-container" {{#if status.disabled}}data-tooltip="{{localize "DAGGERHEART.UI.Tooltip.immune"}}"{{else if status.title}}data-tooltip-text="{{status.title}}"{{/if}}> <div
<img class="effect-control {{status.cssClass}} {{#if (or status.disabled status.locked)}}disabled{{/if}}" src="{{status.src}}" data-action="effect" data-status-id="{{status.id}}"> class="effect-control effect-control-container {{status.cssClass}} {{#if (or status.disabled status.locked)}}disabled{{/if}}"
{{#if status.disabled}}data-tooltip="{{localize "DAGGERHEART.UI.Tooltip.immune"}}"{{else if status.title}}data-tooltip-text="{{status.title}}"{{/if}}
data-action="effect" data-status-id="{{status.id}}"
>
<img src="{{status.src}}" />
{{#if status.disabled}} {{#if status.disabled}}
<span class="effect-control-disabled-marker">/</span> <span class="effect-control-disabled-marker">/</span>
{{/if}} {{/if}}
@ -57,8 +61,12 @@
{{#if genericStatusEffects}} {{#if genericStatusEffects}}
<label class="palette-category-title">{{localize "DAGGERHEART.APPLICATIONS.HUD.tokenHUD.genericEffects"}}</label> <label class="palette-category-title">{{localize "DAGGERHEART.APPLICATIONS.HUD.tokenHUD.genericEffects"}}</label>
{{#each genericStatusEffects as |status|}} {{#each genericStatusEffects as |status|}}
<div class="effect-control-container" {{#if status.title}}data-tooltip-text="{{status.title}}"{{/if}}> <div
<img class="effect-control {{status.cssClass}} {{#if (or status.disabled status.locked)}}disabled{{/if}}" src="{{status.src}}" data-action="effect" data-status-id="{{status.id}}" > class="effect-control effect-control-container {{status.cssClass}} {{#if (or status.disabled status.locked)}}disabled{{/if}}"
{{#if status.title}}data-tooltip-text="{{status.title}}"{{/if}}
data-action="effect" data-status-id="{{status.id}}"
>
<img src="{{status.src}}" />
{{#if status.locked}}<i class="effect-locked fa-solid fa-lock"></i>{{/if}} {{#if status.locked}}<i class="effect-locked fa-solid fa-lock"></i>{{/if}}
</div> </div>
{{/each}} {{/each}}