Ajout de zIndex pour afficher le demi-rêve devant

This commit is contained in:
Vincent Vandemeulebrouck
2021-02-12 15:01:10 +01:00
parent d700fc7b6c
commit b469461cf6
15 changed files with 87 additions and 29 deletions

View File

@ -1,6 +1,6 @@
import { Misc } from "../misc.js";
import { RollDataAjustements } from "../rolldata-ajustements.js";
import { tmrColors, tmrConstants, TMRType, TMRUtility } from "../tmr-utility.js";
import { tmrColors, tmrConstants, tmrTokenZIndex, TMRType, TMRUtility } from "../tmr-utility.js";
import { Debordement } from "./debordement.js";
import { Draconique } from "./draconique.js";
@ -36,7 +36,11 @@ export class Desorientation extends Draconique {
_createSprite(pixiTMR) {
return pixiTMR.sprite(this.code(),
{
color: tmrColors.trounoir, alpha: 1, taille: tmrConstants.full, decallage: { x: 2, y: 2 },
zIndex: tmrTokenZIndex.trounoir,
color: tmrColors.trounoir,
alpha: 1,
taille: tmrConstants.full,
decallage: { x: 2, y: 2 },
});
}