Merge branch 'v1.3' of gitlab.com:LeRatierBretonnien/foundryvtt-reve-de-dragon into v1.3
This commit is contained in:
commit
05a41f6ac5
@ -282,6 +282,7 @@ export const tmrTokenZIndex = {
|
|||||||
rencontre: 50,
|
rencontre: 50,
|
||||||
trounoir: 60,
|
trounoir: 60,
|
||||||
demireve: 70,
|
demireve: 70,
|
||||||
|
tooltip: 100,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -100,6 +100,7 @@ export class PixiTMR {
|
|||||||
addTooltip(sprite, text) {
|
addTooltip(sprite, text) {
|
||||||
if (text) {
|
if (text) {
|
||||||
sprite.tooltip = new PIXI.Text(text, tooltipStyle);
|
sprite.tooltip = new PIXI.Text(text, tooltipStyle);
|
||||||
|
sprite.tooltip.zIndex = tmrTokenZIndex.tooltip;
|
||||||
sprite.isOver = false;
|
sprite.isOver = false;
|
||||||
sprite.interactive = true;
|
sprite.interactive = true;
|
||||||
sprite.on('pointerdown', event => this.onClickBackground(event))
|
sprite.on('pointerdown', event => this.onClickBackground(event))
|
||||||
|
Loading…
Reference in New Issue
Block a user