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.
Most of the token UI like tracking bars go over
the token in its own square.
However, the dynamic borders do the same and
conflict with them.
This script will handle moving the already existing
UI elements to free up the view of the token.
The point of the module is to allow multiple functionalities
to support our campaign.
They might not be suited all the time or to all of them.
They might be buggy !
Add a toggle setting to the dynamic borders functionality,
so that we can keep the compendium while it is fixed.
This initial version adds a custom compendium with a
macro for the tinkerer, and a dynamic token border
to track player turn status.
It has a couple of known major bugs but is needed for
an upcoming game, with fixes hopefully later.
It is only compatible with Foundry v12 at this time.