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);
|
this.commandsContainer.add(this.teraButton);
|
||||||
|
|
||||||
for (let c = 0; c < commands.length; c++) {
|
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]);
|
commandText.setName(commands[c]);
|
||||||
this.commandsContainer.add(commandText);
|
this.commandsContainer.add(commandText);
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ export function getTextStyleOptions(
|
|||||||
const lang = i18next.resolvedLanguage;
|
const lang = i18next.resolvedLanguage;
|
||||||
let shadowXpos = 4;
|
let shadowXpos = 4;
|
||||||
let shadowYpos = 5;
|
let shadowYpos = 5;
|
||||||
let scale = 0.1666666667;
|
const scale = 0.1666666667;
|
||||||
const defaultFontSize = 96;
|
const defaultFontSize = 96;
|
||||||
|
|
||||||
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
||||||
@ -169,7 +169,7 @@ export function getTextStyleOptions(
|
|||||||
|
|
||||||
switch (style) {
|
switch (style) {
|
||||||
case TextStyle.SUMMARY: {
|
case TextStyle.SUMMARY: {
|
||||||
let fontSizeLabel = "96px";
|
const fontSizeLabel = "96px";
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case "ja":
|
case "ja":
|
||||||
styleOptions.padding = { top: 6, bottom: 4 };
|
styleOptions.padding = { top: 6, bottom: 4 };
|
||||||
@ -178,9 +178,9 @@ export function getTextStyleOptions(
|
|||||||
styleOptions.fontSize = fontSizeLabel;
|
styleOptions.fontSize = fontSizeLabel;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
shadowXpos = 5;
|
// shadowXpos = 5;
|
||||||
shadowYpos = 5;
|
// shadowYpos = 5;
|
||||||
break;
|
// break;
|
||||||
case TextStyle.SUMMARY_HEADER: {
|
case TextStyle.SUMMARY_HEADER: {
|
||||||
let fontSizeLabel = "96px";
|
let fontSizeLabel = "96px";
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
@ -192,9 +192,9 @@ export function getTextStyleOptions(
|
|||||||
styleOptions.fontSize = fontSizeLabel;
|
styleOptions.fontSize = fontSizeLabel;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
shadowXpos = 5;
|
// shadowXpos = 5;
|
||||||
shadowYpos = 5;
|
// shadowYpos = 5;
|
||||||
break;
|
// 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:
|
||||||
@ -223,9 +223,9 @@ export function getTextStyleOptions(
|
|||||||
styleOptions.fontSize = fontSizeLabel;
|
styleOptions.fontSize = fontSizeLabel;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
shadowXpos = 5;
|
// shadowXpos = 5;
|
||||||
shadowYpos = 5;
|
// shadowYpos = 5;
|
||||||
break;
|
// break;
|
||||||
case TextStyle.STATS_LABEL: {
|
case TextStyle.STATS_LABEL: {
|
||||||
let fontSizeLabel = "96px";
|
let fontSizeLabel = "96px";
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
@ -257,10 +257,10 @@ export function getTextStyleOptions(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TextStyle.MESSAGE:
|
case TextStyle.MESSAGE:
|
||||||
styleOptions.fontSize = defaultFontSize
|
styleOptions.fontSize = defaultFontSize;
|
||||||
break;
|
break;
|
||||||
case TextStyle.HEADER_LABEL:
|
case TextStyle.HEADER_LABEL:
|
||||||
styleOptions.fontSize = defaultFontSize
|
styleOptions.fontSize = defaultFontSize;
|
||||||
styleOptions.padding = { top: 6 };
|
styleOptions.padding = { top: 6 };
|
||||||
break;
|
break;
|
||||||
case TextStyle.SETTINGS_LABEL: {
|
case TextStyle.SETTINGS_LABEL: {
|
||||||
|
Loading…
Reference in New Issue
Block a user