mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 23:43:37 +02:00
* Added the ability for effects to have stacks * Fixed effect stacking * Improved token overlay spacing * Compendium updaetes * Simplify effect click event (#1748) * Fixed a bunch of deprecations * Corrected AgileScout Beastform json data * Updated TokenHUD to the new v14 * Removed DestroyOnEmpty from consumables * Fixed so that tooltips don't get stuck (#1745) * [Feature] TagTeam Partial Rendering (#1735) * I done did it, I think * Think I fixed the partial rendering bug for gm->player * [V14] 1743 - Damage Update Error (#1746) * Fixed DamageParts causing errors on update * Fixed ActionBaseConfig error when no damage present on the action * Fix removal of damage field * Removed unneccessary default value function for parts --------- Co-authored-by: Carlos Fernandez <cfern1990@gmail.com> * Simplify effect click event --------- Co-authored-by: WBHarry <williambjrklund@gmail.com> Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com> * Fixed stacking-value pointer event * Set the stacking value in EffectsDisplay to be tabular-nums for monospacing * Made baseEffect.stacking nullable instead of having an enabled property * . * Fixed so that actor._onUpdateDescantDocuments re-renders the EffectDisplay if effects were updated --------- Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
22 lines
802 B
JavaScript
22 lines
802 B
JavaScript
export default class DHContextMenu extends foundry.applications.ux.ContextMenu {
|
|
/**
|
|
* Trigger a context menu event in response to a normal click on a additional options button.
|
|
* @param {PointerEvent} event
|
|
*/
|
|
static triggerContextMenu(event, altSelector) {
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
const { clientX, clientY } = event;
|
|
const selector = altSelector ?? '[data-item-uuid]';
|
|
const target = event.target.closest(selector) ?? event.currentTarget.closest(selector);
|
|
target?.dispatchEvent(
|
|
new PointerEvent('contextmenu', {
|
|
view: window,
|
|
bubbles: true,
|
|
cancelable: true,
|
|
clientX,
|
|
clientY
|
|
})
|
|
);
|
|
}
|
|
}
|