mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
TextStyle adjustments
This commit is contained in:
parent
aa90758b3b
commit
4135d07e9d
@ -159,16 +159,10 @@ export function getTextStyleOptions(
|
|||||||
};
|
};
|
||||||
|
|
||||||
switch (style) {
|
switch (style) {
|
||||||
case TextStyle.SUMMARY: {
|
case TextStyle.SUMMARY:
|
||||||
let fontSizeLabel = "96px";
|
shadowXpos = 5;
|
||||||
switch (lang) {
|
shadowYpos = 5;
|
||||||
case "ja":
|
|
||||||
styleOptions.padding = { top: 6, bottom: 4 };
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
styleOptions.fontSize = fontSizeLabel;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case TextStyle.SUMMARY_ALT:
|
case TextStyle.SUMMARY_ALT:
|
||||||
case TextStyle.SUMMARY_BLUE:
|
case TextStyle.SUMMARY_BLUE:
|
||||||
case TextStyle.SUMMARY_RED:
|
case TextStyle.SUMMARY_RED:
|
||||||
@ -230,36 +224,37 @@ export function getTextStyleOptions(
|
|||||||
let fontSizeLabel = "66px";
|
let fontSizeLabel = "66px";
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case "ja":
|
case "ja":
|
||||||
styleOptions.fontFamily = "pkmnems";
|
|
||||||
styleOptions.padding = { top: -12, bottom: 4 };
|
styleOptions.padding = { top: -12, bottom: 4 };
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
styleOptions.fontFamily = "pkmnems";
|
|
||||||
fontSizeLabel = "66px";
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
styleOptions.fontSize = fontSizeLabel;
|
styleOptions.fontSize = fontSizeLabel;
|
||||||
|
styleOptions.fontFamily = "pkmnems";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TextStyle.PARTY_RED: {
|
case TextStyle.PARTY_RED: {
|
||||||
let fontSizeLabel = "30px";
|
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case "ja":
|
case "ja":
|
||||||
styleOptions.padding = { top: -12, bottom: 4 };
|
styleOptions.padding = { top: -12, bottom: 4 };
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
fontSizeLabel = "30px";
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
styleOptions.fontSize = defaultFontSize - 30;
|
styleOptions.fontSize = defaultFontSize - 30;
|
||||||
styleOptions.fontFamily = "pkmnems";
|
styleOptions.fontFamily = "pkmnems";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TextStyle.TOOLTIP_CONTENT:
|
case TextStyle.TOOLTIP_CONTENT: {
|
||||||
|
switch (lang) {
|
||||||
|
case "ja":
|
||||||
|
styleOptions.fontSize = defaultFontSize - 44;
|
||||||
|
styleOptions.padding = { top: 10, right: 10 };
|
||||||
|
break;
|
||||||
|
default:
|
||||||
styleOptions.fontSize = defaultFontSize - 32;
|
styleOptions.fontSize = defaultFontSize - 32;
|
||||||
|
break;
|
||||||
|
}
|
||||||
shadowXpos = 3;
|
shadowXpos = 3;
|
||||||
shadowYpos = 3;
|
shadowYpos = 3;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case TextStyle.MOVE_INFO_CONTENT:
|
case TextStyle.MOVE_INFO_CONTENT:
|
||||||
styleOptions.fontSize = defaultFontSize - 40;
|
styleOptions.fontSize = defaultFontSize - 40;
|
||||||
shadowXpos = 3;
|
shadowXpos = 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user