From a66fb7988e603d10ffd581c0812b11634221eb79 Mon Sep 17 00:00:00 2001 From: Lugiad <2070109+Adri1@users.noreply.github.com> Date: Sun, 29 Jun 2025 15:49:39 +0200 Subject: [PATCH] Add LUCK_VALUE TextStyle --- src/ui/text.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ui/text.ts b/src/ui/text.ts index 03e61951f4f..ba546982b51 100644 --- a/src/ui/text.ts +++ b/src/ui/text.ts @@ -33,6 +33,7 @@ export enum TextStyle { SUMMARY_STATS_BLUE, SUMMARY_STATS_PINK, SUMMARY_STATS_GOLD, + LUCK_VALUE, STATS_HEXAGON, GROWTH_RATE_TYPE, MONEY, // Money default styling (pale yellow) @@ -247,6 +248,18 @@ export function getTextStyleOptions( shadowXpos = 3; shadowYpos = 3; break; + case TextStyle.LUCK_VALUE: { + let fontSizeLabel = "96px"; + switch (lang) { + case "ja": + styleOptions.padding = { top: -6 }; + break; + } + styleOptions.fontSize = fontSizeLabel; + shadowXpos = 3; + shadowYpos = 4; + break; + } case TextStyle.GROWTH_RATE_TYPE: { switch (lang) { case "ja": @@ -611,6 +624,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui case TextStyle.SUMMARY_STATS: case TextStyle.EGG_SUMMARY_NAME: case TextStyle.EGG_SUMMARY_DEX: + case TextStyle.LUCK_VALUE: return !shadow ? "#f8f8f8" : "#636363"; case TextStyle.SUMMARY_ALT: case TextStyle.GROWTH_RATE_TYPE: