forked from public/foundryvtt-reve-de-dragon
Réduction de l'espace des TMR
This commit is contained in:
@ -20,10 +20,10 @@ export class CarteTmr extends Draconique {
|
||||
const img = PixiTMR.getImgFromCode(this.code())
|
||||
const sprite = new PIXI.Sprite(PIXI.utils.TextureCache[img]);
|
||||
// Setup the position of the TMR
|
||||
sprite.x = 0;
|
||||
sprite.y = 0;
|
||||
sprite.width = 722;
|
||||
sprite.height = 860;
|
||||
sprite.x = pixiTMR.pixiApp.screen.x;
|
||||
sprite.y = pixiTMR.pixiApp.screen.y;
|
||||
sprite.width = pixiTMR.pixiApp.screen.width;
|
||||
sprite.height = pixiTMR.pixiApp.screen.height;
|
||||
// Rotate around the center
|
||||
sprite.anchor.set(0);
|
||||
sprite.buttonMode = true;
|
||||
@ -31,9 +31,5 @@ export class CarteTmr extends Draconique {
|
||||
return sprite;
|
||||
}
|
||||
|
||||
computeTooltip(coordTMR) {
|
||||
const tmr = TMRUtility.getTMR(coordTMR)
|
||||
return tmr? TMRUtility.getTMRLabel(coordTMR) : '';
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user