From b6396771fdd70db1c3ee4ddeec98943e7d23d070 Mon Sep 17 00:00:00 2001 From: KimJeongSun Date: Wed, 28 Aug 2024 00:48:35 +0900 Subject: [PATCH] remove button fontsize option --- src/ui/registration-form-ui-handler.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/ui/registration-form-ui-handler.ts b/src/ui/registration-form-ui-handler.ts index 2b473381a75..6a9f1dd6235 100644 --- a/src/ui/registration-form-ui-handler.ts +++ b/src/ui/registration-form-ui-handler.ts @@ -7,7 +7,6 @@ import i18next from "i18next"; interface LanguageSetting { - buttonLabelFontSize?: string, inputFieldFontSize?: string, warningMessageFontSize?: string, errorMessageFontSize?: string, @@ -65,18 +64,6 @@ export default class RegistrationFormUiHandler extends FormModalUiHandler { setup(): void { super.setup(); - this.buttonContainers.forEach((buttonContainer: Phaser.GameObjects.Container, i: number) => { - buttonContainer.each((child: Phaser.GameObjects.GameObject) => { - if (child instanceof Phaser.GameObjects.Text) { - // if buttonLabelFontSize is defined in languageSettings, set the font size to the value - const buttonLabelFontSize = languageSettings[i18next.language]?.buttonLabelFontSize; - if (buttonLabelFontSize) { - child.setFontSize(buttonLabelFontSize); - } - } - }); - }); - this.modalContainer.each((child: Phaser.GameObjects.GameObject) => { // if child is a text object, and not the title text, set the font size to 42px if (child instanceof Phaser.GameObjects.Text && child !== this.titleText) {