From a4b7bd8b22c4452a87bb3d99fe01b86719e68706 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sun, 17 Aug 2025 12:47:36 +0200 Subject: [PATCH] Fixed minor issues --- src/ui/move-info-overlay.ts | 8 ++++---- src/ui/scrolling-text.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ui/move-info-overlay.ts b/src/ui/move-info-overlay.ts index 2358363f5a9..74a2fb50fe7 100644 --- a/src/ui/move-info-overlay.ts +++ b/src/ui/move-info-overlay.ts @@ -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( diff --git a/src/ui/scrolling-text.ts b/src/ui/scrolling-text.ts index 5d42bca2e57..7c35f61cdad 100644 --- a/src/ui/scrolling-text.ts +++ b/src/ui/scrolling-text.ts @@ -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"; /* */