mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Added INSTRUCTIONS_TEXT TextStyle
This commit is contained in:
parent
fca9b7ce80
commit
20de6cd6ed
@ -16,6 +16,7 @@ export enum TextStyle {
|
|||||||
PARTY,
|
PARTY,
|
||||||
PARTY_RED,
|
PARTY_RED,
|
||||||
PARTY_CANCEL_BUTTON,
|
PARTY_CANCEL_BUTTON,
|
||||||
|
INSTRUCTIONS_TEXT,
|
||||||
MOVE_LABEL,
|
MOVE_LABEL,
|
||||||
SUMMARY,
|
SUMMARY,
|
||||||
SUMMARY_ALT,
|
SUMMARY_ALT,
|
||||||
@ -375,6 +376,16 @@ export function getTextStyleOptions(
|
|||||||
styleOptions.fontFamily = "pkmnems";
|
styleOptions.fontFamily = "pkmnems";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TextStyle.INSTRUCTIONS_TEXT: {
|
||||||
|
switch (lang) {
|
||||||
|
case "ja":
|
||||||
|
styleOptions.padding = { top: -3, bottom: 4 };
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
styleOptions.fontSize = defaultFontSize - 30;
|
||||||
|
styleOptions.fontFamily = "pkmnems";
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TextStyle.MOVE_LABEL: {
|
case TextStyle.MOVE_LABEL: {
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case "ja":
|
case "ja":
|
||||||
@ -535,6 +546,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.INSTRUCTIONS_TEXT:
|
||||||
case TextStyle.MOVE_LABEL:
|
case TextStyle.MOVE_LABEL:
|
||||||
return !shadow ? "#f8f8f8" : "#707070";
|
return !shadow ? "#f8f8f8" : "#707070";
|
||||||
case TextStyle.PARTY_RED:
|
case TextStyle.PARTY_RED:
|
||||||
|
Loading…
Reference in New Issue
Block a user