mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
hotfix zh language shadows
This commit is contained in:
parent
3b21f80043
commit
b950af9bac
@ -5,7 +5,6 @@ import { EggTier } from "../data/enums/egg-type";
|
|||||||
import { UiTheme } from "../enums/ui-theme";
|
import { UiTheme } from "../enums/ui-theme";
|
||||||
import { ModifierTier } from "../modifier/modifier-tier";
|
import { ModifierTier } from "../modifier/modifier-tier";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import i18next from "i18next";
|
|
||||||
|
|
||||||
export enum TextStyle {
|
export enum TextStyle {
|
||||||
MESSAGE,
|
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 ] {
|
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 shadowXpos = 4;
|
||||||
let shadowYpos = 5;
|
let shadowYpos = 5;
|
||||||
const scale = 0.1666666667;
|
const scale = 0.1666666667;
|
||||||
@ -144,11 +142,6 @@ function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptio
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (["zh"].includes(resolvedLanguage.substring(0,2))) {
|
|
||||||
shadowXpos = 0;
|
|
||||||
shadowYpos = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
const shadowColor = getTextColor(style, true, uiTheme);
|
const shadowColor = getTextColor(style, true, uiTheme);
|
||||||
|
|
||||||
if (extraStyleOptions) {
|
if (extraStyleOptions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user