Fixed minor issues

This commit is contained in:
Wlowscha 2025-08-17 12:47:36 +02:00
parent 74403c73c6
commit a4b7bd8b22
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
2 changed files with 6 additions and 5 deletions

View File

@ -85,11 +85,11 @@ export class MoveInfoOverlay extends Phaser.GameObjects.Container implements Inf
const visibleY = y < 0 ? y + globalScene.game.canvas.height / GLOBAL_SCALE : y;
const globalMaskX = (visibleX + descX) * scale;
const globalMaskY = (visibleY + descY) * scale;
const globalMaskX = visibleX + descX;
const globalMaskY = visibleY + descY;
const wrapWidth = (width - (BORDER - 2) * 2 - (options?.onSide ? EFF_WIDTH : 0)) * GLOBAL_SCALE;
const visibleWidth = (width - (BORDER - 2) * 2 - (options?.onSide ? EFF_WIDTH : 0)) * scale;
const visibleHeight = (DESC_HEIGHT - (BORDER - 2) * 2) * scale;
const visibleWidth = width - (BORDER - 2) * 2 - (options?.onSide ? EFF_WIDTH : 0);
const visibleHeight = DESC_HEIGHT - (BORDER - 2) * 2;
// set up the description; wordWrap uses true pixels, unaffected by any scaling, while other values are affected
this.desc = new ScrollingText(

View File

@ -1,6 +1,7 @@
import { globalScene } from "#app/global-scene";
import { fixedInt } from "#app/utils/common";
import { addTextObject, type TextStyle } from "./text";
import type { TextStyle } from "#enums/text-style";
import { addTextObject } from "./text";
/*
*/