From b950af9bac7c40095235d3cdf81abf395a796078 Mon Sep 17 00:00:00 2001 From: Matthew Olker Date: Wed, 12 Jun 2024 22:19:30 -0400 Subject: [PATCH] hotfix zh language shadows --- src/ui/text.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/ui/text.ts b/src/ui/text.ts index 715e4f02430..79d64c57fad 100644 --- a/src/ui/text.ts +++ b/src/ui/text.ts @@ -5,7 +5,6 @@ import { EggTier } from "../data/enums/egg-type"; import { UiTheme } from "../enums/ui-theme"; import { ModifierTier } from "../modifier/modifier-tier"; import Phaser from "phaser"; -import i18next from "i18next"; export enum TextStyle { MESSAGE, @@ -84,7 +83,6 @@ export function addTextInputObject(scene: Phaser.Scene, x: number, y: number, wi } function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptions?: Phaser.Types.GameObjects.Text.TextStyle): [ number, Phaser.Types.GameObjects.Text.TextStyle | InputText.IConfig, string, number, number ] { - const {resolvedLanguage} = i18next; let shadowXpos = 4; let shadowYpos = 5; const scale = 0.1666666667; @@ -144,11 +142,6 @@ function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptio break; } - if (["zh"].includes(resolvedLanguage.substring(0,2))) { - shadowXpos = 0; - shadowYpos = 0; - } - const shadowColor = getTextColor(style, true, uiTheme); if (extraStyleOptions) {