Changed so that players can see each others actionTokens but can't interact with others.

This commit is contained in:
WBHarry 2025-07-15 19:38:28 +02:00
parent f2176c6238
commit 57a638ddb1
2 changed files with 21 additions and 11 deletions

View file

@ -2,7 +2,6 @@
.token-actions {
align-self: stretch;
display: flex;
align-items: top;
justify-content: center;
gap: 16px;
@ -26,6 +25,16 @@
opacity: 0.5;
background: transparent;
}
&.inactive {
background: var(--color-warm-2);
color: var(--color-light-1);
cursor: default;
&:hover {
filter: none;
}
}
}
}

View file

@ -31,16 +31,17 @@
</div>
{{#if ../combat.round}}
<div class="token-actions">
{{#if isOwner}}
{{#if (and (not isNPC) ../actionTokens.enabled)}}
<div class="action-tokens">
{{#times ../actionTokens.tokens}}
<button type="button" class="inline-control main icon fa-solid fa-bolt-lightning action-token {{#if (lte ../system/actionTokens this)}}used{{/if}}" data-action="setActionTokens" data-combatant-id="{{../id}}" data-token-index="{{this}}">
</button>
{{/times}}
</div>
{{/if}}
<div class="token-actions">
{{#if (and (not isNPC) ../actionTokens.enabled)}}
<div class="action-tokens">
{{#times ../actionTokens.tokens}}
<button
type="button" class="inline-control main icon fa-solid fa-bolt-lightning action-token {{#unless ../isOwner}}inactive{{/unless}} {{#if (lte ../system/actionTokens this)}}used{{/if}}" {{#if ../isOwner}}
data-action="setActionTokens"{{/if}} data-combatant-id="{{../id}}" data-token-index="{{this}}" {{#unless ../isOwner}}disabled{{/unless}}
>
</button>
{{/times}}
</div>
{{/if}}
</div>
{{/if}}