From fd4052452354d90a88955a7d5585465e102a1df4 Mon Sep 17 00:00:00 2001 From: Lugiad <2070109+Adri1@users.noreply.github.com> Date: Thu, 26 Jun 2025 21:43:18 +0200 Subject: [PATCH] Added GROWTH_RATE_TYPE TextStyle --- src/ui/text.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ui/text.ts b/src/ui/text.ts index 1af7ce95237..2e9fcd071b6 100644 --- a/src/ui/text.ts +++ b/src/ui/text.ts @@ -29,6 +29,7 @@ export enum TextStyle { SUMMARY_STATS, SUMMARY_STATS_BLUE, SUMMARY_STATS_PINK, + GROWTH_RATE_TYPE, MONEY, // Money default styling (pale yellow) MONEY_WINDOW, // Money displayed in Windows (needs different colors based on theme) HEADER_LABEL, @@ -214,6 +215,17 @@ export function getTextStyleOptions( shadowXpos = 3; shadowYpos = 3; break; + case TextStyle.GROWTH_RATE_TYPE: { + switch (lang) { + case "ja": + styleOptions.padding = { left: 24 }; + break; + } + styleOptions.fontSize = defaultFontSize - 30; + shadowXpos = 3; + shadowYpos = 3; + break; + } case TextStyle.WINDOW_BATTLE_COMMAND: { let fontSizeLabel = "96px"; switch (lang) { @@ -530,6 +542,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui case TextStyle.SUMMARY_STATS: return !shadow ? "#f8f8f8" : "#636363"; case TextStyle.SUMMARY_ALT: + case TextStyle.GROWTH_RATE_TYPE: if (isLegacyTheme) { return !shadow ? "#f8f8f8" : "#636363"; }