mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Changed so that players can see each others actionTokens but can't interact with others. (#355)
This commit is contained in:
parent
b40d053201
commit
3176438293
2 changed files with 21 additions and 11 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
.token-actions {
|
.token-actions {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: top;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|
||||||
|
|
@ -26,6 +25,16 @@
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.inactive {
|
||||||
|
background: var(--color-warm-2);
|
||||||
|
color: var(--color-light-1);
|
||||||
|
cursor: default;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
filter: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,16 +31,17 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if ../combat.round}}
|
{{#if ../combat.round}}
|
||||||
<div class="token-actions">
|
<div class="token-actions">
|
||||||
{{#if isOwner}}
|
{{#if (and (not isNPC) ../actionTokens.enabled)}}
|
||||||
{{#if (and (not isNPC) ../actionTokens.enabled)}}
|
<div class="action-tokens">
|
||||||
<div class="action-tokens">
|
{{#times ../actionTokens.tokens}}
|
||||||
{{#times ../actionTokens.tokens}}
|
<button
|
||||||
<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}}">
|
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}}
|
||||||
</button>
|
data-action="setActionTokens"{{/if}} data-combatant-id="{{../id}}" data-token-index="{{this}}" {{#unless ../isOwner}}disabled{{/unless}}
|
||||||
{{/times}}
|
>
|
||||||
</div>
|
</button>
|
||||||
{{/if}}
|
{{/times}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue