From 0adbad79200b3b5c08bcab0e76045fbcafe5ba7a Mon Sep 17 00:00:00 2001 From: Lugiad <2070109+Adri1@users.noreply.github.com> Date: Wed, 25 Jun 2025 22:50:01 +0200 Subject: [PATCH] Added new TextStyle --- src/ui/text.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/text.ts b/src/ui/text.ts index 27aabf98247..9b3983b9fb6 100644 --- a/src/ui/text.ts +++ b/src/ui/text.ts @@ -11,6 +11,7 @@ export enum TextStyle { MESSAGE, WINDOW, WINDOW_ALT, + WINDOW_BATTLE_COMMAND, BATTLE_INFO, PARTY, PARTY_RED, @@ -217,6 +218,20 @@ export function getTextStyleOptions( case TextStyle.ME_OPTION_SPECIAL: shadowXpos = 3; shadowYpos = 3; + break; + case TextStyle.WINDOW_BATTLE_COMMAND: { + let fontSizeLabel = "96px"; + switch (lang) { + case "ja": + styleOptions.padding = { top: 2 }; + fontSizeLabel = "92px"; + break; + } + styleOptions.fontSize = fontSizeLabel; + break; + } + shadowXpos = 5; + shadowYpos = 5; break; case TextStyle.STATS_LABEL: { let fontSizeLabel = "96px"; @@ -385,6 +400,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui case TextStyle.MESSAGE: return !shadow ? "#f8f8f8" : "#6b5a73"; case TextStyle.WINDOW: + case TextStyle.WINDOW_BATTLE_COMMAND: case TextStyle.MOVE_INFO_CONTENT: case TextStyle.MOVE_PP_FULL: case TextStyle.TOOLTIP_CONTENT: