mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Added new TextStyle
This commit is contained in:
parent
039e327aa2
commit
0adbad7920
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user