mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Added EGG_SUMMARY_NAME and EGG_SUMMARY_DEX TextStyles
This commit is contained in:
parent
b77ec032be
commit
534e768d95
@ -46,6 +46,8 @@ export enum TextStyle {
|
|||||||
SETTINGS_SELECTED,
|
SETTINGS_SELECTED,
|
||||||
SETTINGS_LOCKED,
|
SETTINGS_LOCKED,
|
||||||
EGG_LIST,
|
EGG_LIST,
|
||||||
|
EGG_SUMMARY_NAME,
|
||||||
|
EGG_SUMMARY_DEX,
|
||||||
STARTER_VALUE_LIMIT,
|
STARTER_VALUE_LIMIT,
|
||||||
TOOLTIP_TITLE,
|
TOOLTIP_TITLE,
|
||||||
TOOLTIP_CONTENT,
|
TOOLTIP_CONTENT,
|
||||||
@ -432,6 +434,22 @@ export function getTextStyleOptions(
|
|||||||
case TextStyle.EGG_LIST:
|
case TextStyle.EGG_LIST:
|
||||||
styleOptions.fontSize = defaultFontSize - 34;
|
styleOptions.fontSize = defaultFontSize - 34;
|
||||||
break;
|
break;
|
||||||
|
case TextStyle.EGG_SUMMARY_NAME: {
|
||||||
|
switch (lang) {
|
||||||
|
case "ja":
|
||||||
|
styleOptions.padding = { top: -1 };
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case TextStyle.EGG_SUMMARY_DEX: {
|
||||||
|
switch (lang) {
|
||||||
|
case "ja":
|
||||||
|
styleOptions.padding = { top: 2 };
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TextStyle.STARTER_VALUE_LIMIT:
|
case TextStyle.STARTER_VALUE_LIMIT:
|
||||||
styleOptions.fontSize = defaultFontSize - 36;
|
styleOptions.fontSize = defaultFontSize - 36;
|
||||||
shadowXpos = 3;
|
shadowXpos = 3;
|
||||||
@ -591,6 +609,8 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui
|
|||||||
case TextStyle.SUMMARY_DEX_NUM:
|
case TextStyle.SUMMARY_DEX_NUM:
|
||||||
case TextStyle.SUMMARY_HEADER:
|
case TextStyle.SUMMARY_HEADER:
|
||||||
case TextStyle.SUMMARY_STATS:
|
case TextStyle.SUMMARY_STATS:
|
||||||
|
case TextStyle.EGG_SUMMARY_NAME:
|
||||||
|
case TextStyle.EGG_SUMMARY_DEX:
|
||||||
return !shadow ? "#f8f8f8" : "#636363";
|
return !shadow ? "#f8f8f8" : "#636363";
|
||||||
case TextStyle.SUMMARY_ALT:
|
case TextStyle.SUMMARY_ALT:
|
||||||
case TextStyle.GROWTH_RATE_TYPE:
|
case TextStyle.GROWTH_RATE_TYPE:
|
||||||
|
Loading…
Reference in New Issue
Block a user