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
bd756e1304
commit
6fadd8a0f5
@ -39,6 +39,7 @@ export enum TextStyle {
|
|||||||
SETTINGS_SELECTED,
|
SETTINGS_SELECTED,
|
||||||
SETTINGS_LOCKED,
|
SETTINGS_LOCKED,
|
||||||
EGG_LIST,
|
EGG_LIST,
|
||||||
|
STARTER_VALUE_LIMIT,
|
||||||
TOOLTIP_TITLE,
|
TOOLTIP_TITLE,
|
||||||
TOOLTIP_CONTENT,
|
TOOLTIP_CONTENT,
|
||||||
MOVE_INFO_CONTENT,
|
MOVE_INFO_CONTENT,
|
||||||
@ -362,6 +363,11 @@ export function getTextStyleOptions(
|
|||||||
case TextStyle.EGG_LIST:
|
case TextStyle.EGG_LIST:
|
||||||
styleOptions.fontSize = defaultFontSize - 34;
|
styleOptions.fontSize = defaultFontSize - 34;
|
||||||
break;
|
break;
|
||||||
|
case TextStyle.STARTER_VALUE_LIMIT:
|
||||||
|
styleOptions.fontSize = defaultFontSize - 36;
|
||||||
|
shadowXpos = 3;
|
||||||
|
shadowYpos = 3;
|
||||||
|
break;
|
||||||
case TextStyle.TOOLTIP_CONTENT: {
|
case TextStyle.TOOLTIP_CONTENT: {
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case "ja":
|
case "ja":
|
||||||
@ -471,6 +477,7 @@ export function getTextColor(textStyle: TextStyle, shadow?: boolean, uiTheme: Ui
|
|||||||
case TextStyle.MOVE_PP_FULL:
|
case TextStyle.MOVE_PP_FULL:
|
||||||
case TextStyle.EGG_LIST:
|
case TextStyle.EGG_LIST:
|
||||||
case TextStyle.TOOLTIP_CONTENT:
|
case TextStyle.TOOLTIP_CONTENT:
|
||||||
|
case TextStyle.STARTER_VALUE_LIMIT:
|
||||||
case TextStyle.SETTINGS_VALUE:
|
case TextStyle.SETTINGS_VALUE:
|
||||||
if (isLegacyTheme) {
|
if (isLegacyTheme) {
|
||||||
return !shadow ? "#484848" : "#d0d0c8";
|
return !shadow ? "#484848" : "#d0d0c8";
|
||||||
|
Loading…
Reference in New Issue
Block a user