TheMillsFabula/scripts
trotFunky 22dc500801 Implement Token UI adjustments
Implement the sub-module moving the attribute bars and nameplate
to work well with our dynamic borders.

The attribute bars are moved below the token, one on
top of the other, and the nameplate is moved above.

This is done by monkey patching the `_drawBar()` and
`_refreshNameplate()` functions from the Token class.
This is vulnerable to compatibility issues with other
modules, but is the only way I found for the changes
to be shown without further input.

Indeed, those functions are called after the `drawToken`
hook, which makes it impossible to move those UI elements
there.
We can do it in the `refreshToken` hook, which works *but*
requires the canvas view to be moved at least once for
the position change to be reflected, which looks a bit
broken.

So we monkey patch the functions, but bind them
beforehand to be able to call them within our custom
function as we don't want to duplicate what they do.

Update README and translations for the added setting.
2025-06-01 18:37:22 +01:00
..
mills_fabula.mjs Initial commit - v0.1.0 2025-05-12 22:55:13 +01:00
token_combat_border.mjs v0.2.0: Add setting to disable dynamic borders 2025-05-28 18:55:08 +01:00
token_ui_adjust.mjs Implement Token UI adjustments 2025-06-01 18:37:22 +01:00