mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Apply Biome
This commit is contained in:
parent
2b19214275
commit
c24c37a40d
@ -53,7 +53,12 @@ export default class CommandUiHandler extends UiHandler {
|
||||
this.commandsContainer.add(this.teraButton);
|
||||
|
||||
for (let c = 0; c < commands.length; c++) {
|
||||
const commandText = addTextObject(c % 2 === 0 ? 0 : 55.8, c < 2 ? 0 : 16, commands[c], TextStyle.WINDOW_BATTLE_COMMAND);
|
||||
const commandText = addTextObject(
|
||||
c % 2 === 0 ? 0 : 55.8,
|
||||
c < 2 ? 0 : 16,
|
||||
commands[c],
|
||||
TextStyle.WINDOW_BATTLE_COMMAND,
|
||||
);
|
||||
commandText.setName(commands[c]);
|
||||
this.commandsContainer.add(commandText);
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ export function getTextStyleOptions(
|
||||
const lang = i18next.resolvedLanguage;
|
||||
let shadowXpos = 4;
|
||||
let shadowYpos = 5;
|
||||
let scale = 0.1666666667;
|
||||
const scale = 0.1666666667;
|
||||
const defaultFontSize = 96;
|
||||
|
||||
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
||||
@ -169,7 +169,7 @@ export function getTextStyleOptions(
|
||||
|
||||
switch (style) {
|
||||
case TextStyle.SUMMARY: {
|
||||
let fontSizeLabel = "96px";
|
||||
const fontSizeLabel = "96px";
|
||||
switch (lang) {
|
||||
case "ja":
|
||||
styleOptions.padding = { top: 6, bottom: 4 };
|
||||
@ -178,9 +178,9 @@ export function getTextStyleOptions(
|
||||
styleOptions.fontSize = fontSizeLabel;
|
||||
break;
|
||||
}
|
||||
shadowXpos = 5;
|
||||
shadowYpos = 5;
|
||||
break;
|
||||
// shadowXpos = 5;
|
||||
// shadowYpos = 5;
|
||||
// break;
|
||||
case TextStyle.SUMMARY_HEADER: {
|
||||
let fontSizeLabel = "96px";
|
||||
switch (lang) {
|
||||
@ -192,9 +192,9 @@ export function getTextStyleOptions(
|
||||
styleOptions.fontSize = fontSizeLabel;
|
||||
break;
|
||||
}
|
||||
shadowXpos = 5;
|
||||
shadowYpos = 5;
|
||||
break;
|
||||
// shadowXpos = 5;
|
||||
// shadowYpos = 5;
|
||||
// break;
|
||||
case TextStyle.SUMMARY_ALT:
|
||||
case TextStyle.SUMMARY_BLUE:
|
||||
case TextStyle.SUMMARY_RED:
|
||||
@ -223,9 +223,9 @@ export function getTextStyleOptions(
|
||||
styleOptions.fontSize = fontSizeLabel;
|
||||
break;
|
||||
}
|
||||
shadowXpos = 5;
|
||||
shadowYpos = 5;
|
||||
break;
|
||||
// shadowXpos = 5;
|
||||
// shadowYpos = 5;
|
||||
// break;
|
||||
case TextStyle.STATS_LABEL: {
|
||||
let fontSizeLabel = "96px";
|
||||
switch (lang) {
|
||||
@ -257,10 +257,10 @@ export function getTextStyleOptions(
|
||||
break;
|
||||
}
|
||||
case TextStyle.MESSAGE:
|
||||
styleOptions.fontSize = defaultFontSize
|
||||
styleOptions.fontSize = defaultFontSize;
|
||||
break;
|
||||
case TextStyle.HEADER_LABEL:
|
||||
styleOptions.fontSize = defaultFontSize
|
||||
styleOptions.fontSize = defaultFontSize;
|
||||
styleOptions.padding = { top: 6 };
|
||||
break;
|
||||
case TextStyle.SETTINGS_LABEL: {
|
||||
|
Loading…
Reference in New Issue
Block a user