11.2.10 - Les expériences d'Akarlikarlikar #691

Merged
uberwald merged 5 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2023-12-11 09:34:22 +01:00
Showing only changes of commit 1c55491ac7 - Show all commits

View File

@ -58,7 +58,7 @@ export class PixiTMR {
this.sizes = new TMRConstants({ size: displaySize })
const appSize = PixiTMR.computeTMRSize(this.sizes)
this.pixiApp.renderer.resize(appSize.width, appSize.height)
this.tooltipStyle.fontSize = Math.max(this.sizes.size / 4, 16)
this.tooltipStyle.fontSize = Math.max(this.sizes.size / 3, 16)
}
get view() {
@ -199,7 +199,7 @@ export class PixiTMR {
setTooltipPosition(event) {
const oddq = this.sizes.computeEventOddq(event);
this.tooltip.x = oddq.x + (oddq.col > 7 ? -3 * this.sizes.full : this.sizes.quarter);
this.tooltip.x = oddq.x + (oddq.col > 7 ? -2.5 * this.sizes.full : this.sizes.quarter);
this.tooltip.y = oddq.y + (oddq.row > 10 ? -this.sizes.size : 0);
}