Merge branch 'tmrs' into 'v1.3'

Tooltips par dessus les icônes

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!153
This commit is contained in:
Leratier Bretonnien 2021-02-22 09:57:04 +00:00
commit 56090aadcc
2 changed files with 2 additions and 0 deletions

View File

@ -282,6 +282,7 @@ export const tmrTokenZIndex = {
rencontre: 50,
trounoir: 60,
demireve: 70,
tooltip: 100,
}
/* -------------------------------------------- */

View File

@ -100,6 +100,7 @@ export class PixiTMR {
addTooltip(sprite, text) {
if (text) {
sprite.tooltip = new PIXI.Text(text, tooltipStyle);
sprite.tooltip.zIndex = tmrTokenZIndex.tooltip;
sprite.isOver = false;
sprite.interactive = true;
sprite.on('pointerdown', event => this.onClickBackground(event))