Added new TextStyle

This commit is contained in:
Lugiad 2025-06-25 22:50:01 +02:00 committed by GitHub
parent 039e327aa2
commit 0adbad7920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ export enum TextStyle {
MESSAGE, MESSAGE,
WINDOW, WINDOW,
WINDOW_ALT, WINDOW_ALT,
WINDOW_BATTLE_COMMAND,
BATTLE_INFO, BATTLE_INFO,
PARTY, PARTY,
PARTY_RED, PARTY_RED,
@ -217,6 +218,20 @@ export function getTextStyleOptions(
case TextStyle.ME_OPTION_SPECIAL: case TextStyle.ME_OPTION_SPECIAL:
shadowXpos = 3; shadowXpos = 3;
shadowYpos = 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; break;
case TextStyle.STATS_LABEL: { case TextStyle.STATS_LABEL: {
let fontSizeLabel = "96px"; let fontSizeLabel = "96px";
@ -385,6 +400,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui
case TextStyle.MESSAGE: case TextStyle.MESSAGE:
return !shadow ? "#f8f8f8" : "#6b5a73"; return !shadow ? "#f8f8f8" : "#6b5a73";
case TextStyle.WINDOW: case TextStyle.WINDOW:
case TextStyle.WINDOW_BATTLE_COMMAND:
case TextStyle.MOVE_INFO_CONTENT: case TextStyle.MOVE_INFO_CONTENT:
case TextStyle.MOVE_PP_FULL: case TextStyle.MOVE_PP_FULL:
case TextStyle.TOOLTIP_CONTENT: case TextStyle.TOOLTIP_CONTENT: