mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Add MOVE_LABEL TextStyle
This commit is contained in:
parent
6fadd8a0f5
commit
f79c645ab5
@ -16,6 +16,7 @@ export enum TextStyle {
|
|||||||
PARTY,
|
PARTY,
|
||||||
PARTY_RED,
|
PARTY_RED,
|
||||||
PARTY_CANCEL_BUTTON,
|
PARTY_CANCEL_BUTTON,
|
||||||
|
MOVE_LABEL,
|
||||||
SUMMARY,
|
SUMMARY,
|
||||||
SUMMARY_ALT,
|
SUMMARY_ALT,
|
||||||
SUMMARY_HEADER,
|
SUMMARY_HEADER,
|
||||||
@ -360,6 +361,19 @@ export function getTextStyleOptions(
|
|||||||
styleOptions.fontFamily = "pkmnems";
|
styleOptions.fontFamily = "pkmnems";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TextStyle.MOVE_LABEL: {
|
||||||
|
switch (lang) {
|
||||||
|
case "ja":
|
||||||
|
styleOptions.fontSize = defaultFontSize - 16;
|
||||||
|
styleOptions.padding = { top: -12, bottom: 4 };
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
styleOptions.fontSize = defaultFontSize - 30;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
styleOptions.fontFamily = "pkmnems";
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TextStyle.EGG_LIST:
|
case TextStyle.EGG_LIST:
|
||||||
styleOptions.fontSize = defaultFontSize - 34;
|
styleOptions.fontSize = defaultFontSize - 34;
|
||||||
break;
|
break;
|
||||||
@ -507,6 +521,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui
|
|||||||
return !shadow ? "#f8f8f8" : "#6b5a73";
|
return !shadow ? "#f8f8f8" : "#6b5a73";
|
||||||
case TextStyle.PARTY:
|
case TextStyle.PARTY:
|
||||||
case TextStyle.PARTY_CANCEL_BUTTON:
|
case TextStyle.PARTY_CANCEL_BUTTON:
|
||||||
|
case TextStyle.MOVE_LABEL:
|
||||||
return !shadow ? "#f8f8f8" : "#707070";
|
return !shadow ? "#f8f8f8" : "#707070";
|
||||||
case TextStyle.PARTY_RED:
|
case TextStyle.PARTY_RED:
|
||||||
return !shadow ? "#f89890" : "#984038";
|
return !shadow ? "#f89890" : "#984038";
|
||||||
|
Loading…
Reference in New Issue
Block a user